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

fix: avoid locking local spack build cache

parent ccb13ecc
No related branches found
No related tags found
1 merge request!568fix: avoid locking local spack build cache
......@@ -102,7 +102,7 @@ RUN git clone https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT} \
COPY --from=spack spack-environment/ /opt/spack-environment/
ARG ENV=dev
ENV SPACK_ENV=/opt/spack-environment/${ENV}
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
RUN --mount=type=cache,target=/var/cache/spack-mirror \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
source $SPACK_ROOT/share/spack/setup-env.sh \
&& spack env activate --dir ${SPACK_ENV} \
......@@ -112,7 +112,7 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
BUILDCACHE_MIRROR=eic-spack
## Create view at /usr/local
RUN --mount=type=cache,target=/var/cache/spack-mirror,sharing=locked \
RUN --mount=type=cache,target=/var/cache/spack-mirror \
source $SPACK_ROOT/share/spack/setup-env.sh \
&& spack env activate --dir ${SPACK_ENV} \
&& rm -r /usr/local \
......
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