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

fix mirror-name command

parent 69884f72
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.
...@@ -139,14 +139,14 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \ ...@@ -139,14 +139,14 @@ 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 \
&& 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 \
--s3-access-key-id ${S3RW_ACCESS_KEY} \ --s3-access-key-id "${S3RW_ACCESS_KEY}" \
--s3-access-key-secret ${S3RW_SECRET_KEY} \ --s3-access-key-secret "${S3RW_SECRET_KEY}" \
eic-spack s3://eictest/EPIC/spack \ eic-spack s3://eictest/EPIC/spack \
&& spack mirror list \ && spack mirror list \
&& spack buildcache update-index -mirror-name eic-spack \ && spack buildcache update-index --mirror-name eic-spack \
&& spack buildcache list --allarch --very-long \ && spack buildcache list --allarch --very-long \
| sed '/^$/d;/^--/d;s/@.\+//;s/\([a-z0-9]*\) \(.*\)/\2\/\1/' \ | sed '/^$/d;/^--/d;s/@.\+//;s/\([a-z0-9]*\) \(.*\)/\2\/\1/' \
| sort > buildcache.eic-spack.txt \ | sort > buildcache.eic-spack.txt \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment