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

fix: source setup-env.sh

parent f4991496
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,8 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \ ...@@ -132,7 +132,8 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \ --mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
<<EOF <<EOF
set -e 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 find /var/cache/spack/blobs/sha256/ -atime +7 -delete
spack buildcache update-index eics3rw spack buildcache update-index eics3rw
spack env activate --dir ${SPACK_ENV} spack env activate --dir ${SPACK_ENV}
...@@ -152,7 +153,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \ ...@@ -152,7 +153,7 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=cache,target=/var/cache/spack \ --mount=type=cache,target=/var/cache/spack \
--mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \ --mount=type=secret,id=mirrors,target=/opt/spack/etc/spack/mirrors.yaml \
<<EOF <<EOF
source $SPACK_ROOT/share/spack/setup-env.sh source ${SPACK_ROOT}/share/spack/setup-env.sh
export CCACHE_DIR=/ccache export CCACHE_DIR=/ccache
spack buildcache update-index eics3rw spack buildcache update-index eics3rw
spack env activate --dir ${SPACK_ENV} spack env activate --dir ${SPACK_ENV}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment