From 2819f9acb0ba47e8e6bf45a44ffaf61a5e4a720d Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Sun, 24 Dec 2023 20:48:52 +0000 Subject: [PATCH] fix: source setup-env.sh --- containers/jug/dev.Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile index 6e16f6e0d..b7e86ac9a 100644 --- a/containers/jug/dev.Dockerfile +++ b/containers/jug/dev.Dockerfile @@ -132,7 +132,8 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \ --mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \ <<EOF set -e -export CCACHE_DIR=/ccache +export CCACHE_DIR=/CCACHE_DIR +source ${SPACK_ROOT}/share/spack/setup-env.sh find /var/cache/spack/blobs/sha256/ -atime +7 -delete spack buildcache update-index eics3rw spack env activate --dir ${SPACK_ENV} @@ -152,7 +153,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \ --mount=type=cache,target=/var/cache/spack \ --mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \ <<EOF -source $SPACK_ROOT/share/spack/setup-env.sh +source ${SPACK_ROOT}/share/spack/setup-env.sh export CCACHE_DIR=/ccache spack buildcache update-index eics3rw spack env activate --dir ${SPACK_ENV} -- GitLab