Skip to content

Commit

Permalink
docker: Set spack compiler explicitly
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
  • Loading branch information
plexoos committed Sep 15, 2022
1 parent 182023c commit 96a588f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,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 96a588f

Please sign in to comment.