From f93c7f9789172fd9f7fa0093962f6c70de19f95e Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 15 Sep 2022 08:58:34 -0400 Subject: [PATCH] docker: Set spack compiler explicitly [buildcache] Address an issue with consecutive calls of `dostarenv.sh` when the wrong version of compiler is selected See 96a588f5 --- Dockerfile.buildcache | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.buildcache b/Dockerfile.buildcache index 0c1c4cb..7c16c96 100644 --- a/Dockerfile.buildcache +++ b/Dockerfile.buildcache @@ -41,6 +41,7 @@ COPY --chmod=0755 <<-"EOF" dostarenv.sh set -e source /star-spack/setup.sh rm -f $HOME/.spack/mirrors.yaml + spack compiler add $(dirname $(which gcc)) spack mirror add buildcache /opt/buildcache spack buildcache update-index -d /opt/buildcache spack env create ${1} /star-spack/environments/${1}.yaml