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

Update dev.Dockerfile: spack env activate before s3 buildcache create

parent 0a3168e5
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !436. Comments created here will be created in the context of that merge request.
...@@ -140,6 +140,7 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \ ...@@ -140,6 +140,7 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
ARG S3RW_ACCESS_KEY="" ARG S3RW_ACCESS_KEY=""
ARG S3RW_SECRET_KEY="" ARG S3RW_SECRET_KEY=""
RUN cd /opt/spack-environment \ RUN cd /opt/spack-environment \
&& spack env activate . \
&& if [ -n "${S3RW_ACCESS_KEY}" ] ; then \ && if [ -n "${S3RW_ACCESS_KEY}" ] ; then \
spack mirror add --scope site \ spack mirror add --scope site \
--s3-endpoint-url https://eics3.sdcc.bnl.gov:9000 \ --s3-endpoint-url https://eics3.sdcc.bnl.gov:9000 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment