Skip to content
Snippets Groups Projects

fix: disable view until after all packages built

Merged Wouter Deconinck requested to merge wdconinc-master-patch-67721 into master
Files
2
@@ -102,13 +102,20 @@ COPY --from=spack spack-environment/ /opt/spack-environment/
@@ -102,13 +102,20 @@ COPY --from=spack spack-environment/ /opt/spack-environment/
ARG ENV=dev
ARG ENV=dev
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
cd /opt/spack-environment \
cd /opt/spack-environment \
&& rm -r /usr/local \
&& source $SPACK_ROOT/share/spack/setup-env.sh \
&& source $SPACK_ROOT/share/spack/setup-env.sh \
&& spack env activate --dir /opt/spack-environment/${ENV} \
&& spack env activate --dir /opt/spack-environment/${ENV} \
&& make -C /opt/spack-environment SPACK_ENV=${ENV} \
&& make -C /opt/spack-environment SPACK_ENV=${ENV} \
BUILDCACHE_DIR=/var/cache/spack-mirror \
BUILDCACHE_DIR=/var/cache/spack-mirror \
BUILDCACHE_MIRROR=eic-spack
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
## Optional, nuke the buildcache after install, before (re)caching
## This is useful when going to completely different containers,
## This is useful when going to completely different containers,
## or intermittently to keep the buildcache step from taking too much time
## or intermittently to keep the buildcache step from taking too much time
Loading