Skip to content

Commit

Permalink
docker: Set spack compiler explicitly [buildcache]
Browse files Browse the repository at this point in the history
Address an issue with consecutive calls of `dostarenv.sh` when the wrong
version of compiler is selected

See 96a588f
  • Loading branch information
plexoos committed Sep 21, 2022
1 parent c6dfcf3 commit f93c7f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.buildcache
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f93c7f9

Please sign in to comment.