diff options
author | Paul <pbryant@newmexicoconsortium.org> | 2020-07-15 03:13:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 11:13:04 +0200 |
commit | d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4 (patch) | |
tree | d977f0470c35844161db12eb9b3552021ef846a0 /share | |
parent | 48a9ad36527e666eab0a417696d6b84ac32cf10a (diff) | |
download | spack-d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4.tar.gz spack-d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4.tar.bz2 spack-d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4.tar.xz spack-d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4.zip |
spack containerize: added --fail-fast argument to containerize install. (#17533)
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/container/Dockerfile | 2 | ||||
-rw-r--r-- | share/spack/templates/container/singularity.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile index 2f1370fdb3..c65fce5627 100644 --- a/share/spack/templates/container/Dockerfile +++ b/share/spack/templates/container/Dockerfile @@ -7,7 +7,7 @@ RUN mkdir {{ paths.environment }} \ {{ manifest }} > {{ paths.environment }}/spack.yaml # Install the software, remove unecessary deps -RUN cd {{ paths.environment }} && spack env activate . && spack install && spack gc -y +RUN cd {{ paths.environment }} && spack env activate . && spack install --fail-fast && spack gc -y {% if strip %} # Strip all the binaries diff --git a/share/spack/templates/container/singularity.def b/share/spack/templates/container/singularity.def index 7ba0a3ff1b..44b22aeae6 100644 --- a/share/spack/templates/container/singularity.def +++ b/share/spack/templates/container/singularity.def @@ -12,7 +12,7 @@ EOF # Install all the required software . /opt/spack/share/spack/setup-env.sh spack env activate . - spack install + spack install --fail-fast spack gc -y spack env deactivate spack env activate --sh -d . >> {{ paths.environment }}/environment_modifications.sh |