summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul <pbryant@newmexicoconsortium.org>2020-07-15 03:13:04 -0600
committerGitHub <noreply@github.com>2020-07-15 11:13:04 +0200
commitd25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4 (patch)
treed977f0470c35844161db12eb9b3552021ef846a0 /share
parent48a9ad36527e666eab0a417696d6b84ac32cf10a (diff)
downloadspack-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/Dockerfile2
-rw-r--r--share/spack/templates/container/singularity.def2
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