Skip to content

Commit

Permalink
fix: load only the umbrella star-env module
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Nov 1, 2023
1 parent da058d6 commit cfe89a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ COPY --chmod=0755 <<-"EOF" dostarenv.sh
spack env create ${1} /star-spack/environments/${1}.yaml
spack env activate ${1}
spack --insecure install --no-check-signature --reuse
spack env loads --exclude vc
spack module tcl refresh -y
spack env deactivate
EOF
Expand All @@ -82,10 +81,10 @@ EOF
RUN ./dostarenv.sh star-utils
RUN ./dostarenv.sh star-x86_64-loose
RUN ./dostarenv.sh ${starenv}
# Manually append specific modules to loads
# Load only the umbrella star-env module
RUN <<-EOF
source /star-spack/setup.sh
spack -e star-x86_64-loose module tcl loads [email protected] [email protected] [email protected] libiconv >> /star-spack/spack/var/spack/environments/${starenv}/loads
spack -e ${starenv} module tcl loads star-env >> /star-spack/spack/var/spack/environments/${starenv}/loads
EOF

# Strip all the binaries
Expand Down

0 comments on commit cfe89a2

Please sign in to comment.