Skip to content
Snippets Groups Projects
Commit 3f7ce668 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: disable view until after all packages built

parent 8343f6ca
No related branches found
No related tags found
1 merge request!549fix: disable view until after all packages built
......@@ -102,13 +102,20 @@ COPY --from=spack spack-environment/ /opt/spack-environment/
ARG ENV=dev
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
cd /opt/spack-environment \
&& rm -r /usr/local \
&& source $SPACK_ROOT/share/spack/setup-env.sh \
&& spack env activate --dir /opt/spack-environment/${ENV} \
&& make -C /opt/spack-environment SPACK_ENV=${ENV} \
BUILDCACHE_DIR=/var/cache/spack-mirror \
BUILDCACHE_MIRROR=eic-spack
## Create view at /usr/local
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
cd /opt/spack-environment \
&& source $SPACK_ROOT/share/spack/setup-env.sh \
&& spack env activate --dir /opt/spack-environment/${ENV} \
&& rm -r /usr/local \
&& spack env view enable /usr/local
## Optional, nuke the buildcache after install, before (re)caching
## This is useful when going to completely different containers,
## or intermittently to keep the buildcache step from taking too much time
......
......@@ -76,8 +76,4 @@ spack:
- stow@2.3.1
- tensorflow-lite@2.8.0 -xnnpack
- xrootd@5.5.1 cxxstd=17 +python +scitokens-cpp
view:
default:
root: /usr/local
link: all
link_type: symlink
view: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment