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

fix: cp from staging using docker COPY

parent b7411e26
No related branches found
No related tags found
1 merge request!678fix: cp from staging using docker COPY
...@@ -218,22 +218,21 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \ ...@@ -218,22 +218,21 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
name="jug_xl" \ name="jug_xl" \
march="$TARGETPLATFORM" march="$TARGETPLATFORM"
## copy over everything we need from staging in a single layer :-) ## copy over everything we need from staging
RUN --mount=from=staging,target=/staging \ COPY --from=staging /opt/spack /opt/spack
rm -rf /usr/local \ COPY --from=staging /opt/spack-environment /opt/spack-environment
&& cp -r /staging/opt/spack /opt/spack \ COPY --from=staging /opt/software /opt/software
&& cp -r /staging/opt/spack-environment /opt/spack-environment \ COPY --from=staging /usr/._local /usr/._local
&& cp -r /staging/opt/software /opt/software \ COPY --from=staging /etc/profile.d /etc/profile.d
&& cp -r /staging/usr/._local /usr/._local \ COPY --from=staging /etc/jug_info /etc/jug_info
&& cd /usr/._local \ COPY --from=staging /etc/eic-env.sh /etc/eic-env.sh
&& PREFIX_PATH=$(realpath $(ls | tail -n1)) \ COPY --from=staging /.singularity.d /.singularity.d
## ensure /usr/local link is pointing to the right view
RUN rm -rf /usr/local \
&& PREFIX_PATH=$(realpath $(ls /usr/._local/ | tail -n1)) \
&& echo "Found spack true prefix path to be $PREFIX_PATH" \ && echo "Found spack true prefix path to be $PREFIX_PATH" \
&& cd - \ && ln -s /usr/._local/${PREFIX_PATH} /usr/local
&& ln -s ${PREFIX_PATH} /usr/local \
&& cp /staging/etc/profile.d/*.sh /etc/profile.d/ \
&& cp /staging/etc/eic-env.sh /etc/eic-env.sh \
&& cp /staging/etc/jug_info /etc/jug_info \
&& cp -r /staging/.singularity.d /.singularity.d
## set the local spack configuration ## set the local spack configuration
ENV SPACK_DISABLE_LOCAL_CONFIG="true" ENV SPACK_DISABLE_LOCAL_CONFIG="true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment