Skip to content

Commit fe35ce2

Browse files
committed
define install root dir in CLI config
1 parent 1312865 commit fe35ce2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ COPY --chmod=0755 <<-"EOF" dostarenv.sh
6464
spack compiler add $(dirname $(which gcc))
6565
spack mirror add --scope site spack-buildcache file:///spack-buildcache || true
6666
spack mirror list
67+
spack config add 'config:install_tree:root:/opt/software'
6768
spack env remove -y ${1} || true
6869
spack env create ${1} /star-spack/environments/${1}.yaml
6970
spack env activate ${1}
@@ -73,12 +74,6 @@ COPY --chmod=0755 <<-"EOF" dostarenv.sh
7374
spack env deactivate
7475
EOF
7576

76-
COPY <<"EOF" /root/.spack/config.yaml
77-
config:
78-
install_tree:
79-
root: /opt/software
80-
EOF
81-
8277
RUN --mount=type=cache,target=/spack-buildcache ./dostarenv.sh star-loose
8378
RUN --mount=type=cache,target=/spack-buildcache ./dostarenv.sh ${starenv}
8479
# Load only the umbrella star-env module

0 commit comments

Comments
 (0)