From d25c7ddd6f1686f115f6dc2615a3bd3b6b3d29c4 Mon Sep 17 00:00:00 2001
From: Paul <pbryant@newmexicoconsortium.org>
Date: Wed, 15 Jul 2020 03:13:04 -0600
Subject: [PATCH] spack containerize: added --fail-fast argument to
 containerize install. (#17533)

---
 share/spack/templates/container/Dockerfile      | 2 +-
 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
-- 
GitLab