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

feat: keep minimal spack in final image

parent ff7ba607
No related branches found
No related tags found
1 merge request!472feat: keep minimal spack in final image
...@@ -222,6 +222,13 @@ RUN cd /opt/spack-environment \ ...@@ -222,6 +222,13 @@ RUN cd /opt/spack-environment \
&& spack env activate . \ && spack env activate . \
&& spack gc -y && spack gc -y
# Garbage collect in git
RUN cd $SPACK_ROOT \
&& du -sh $SPACK_ROOT \
&& git fetch --depth=1 \
&& git gc --prune=all --aggressive \
&& du -sh $SPACK_ROOT
## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15 ## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15
## See ## See
#https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir #https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir
...@@ -262,6 +269,7 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \ ...@@ -262,6 +269,7 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
## copy over everything we need from staging in a single layer :-) ## copy over everything we need from staging in a single layer :-)
RUN --mount=from=staging,target=/staging \ RUN --mount=from=staging,target=/staging \
rm -rf /usr/local \ rm -rf /usr/local \
&& cp -r /staging/opt/spack /opt/spack \
&& cp -r /staging/opt/spack-environment /opt/spack-environment \ && cp -r /staging/opt/spack-environment /opt/spack-environment \
&& cp -r /staging/opt/software /opt/software \ && cp -r /staging/opt/software /opt/software \
&& cp -r /staging/usr/._local /usr/._local \ && cp -r /staging/usr/._local /usr/._local \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment