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

feat: don't strip, allow for debug containers

parent dc5387e4
Branches
Tags
1 merge request!437feat: don't strip, allow for debug containers
...@@ -181,23 +181,6 @@ FROM builder as staging ...@@ -181,23 +181,6 @@ FROM builder as staging
# Garbage collect in environment # Garbage collect in environment
RUN cd /opt/spack-environment && spack env activate . && spack gc -y RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# Strip all the binaries
# This reduces the image by factor of x2, so worth the effort
# note that we do not strip python libraries as it can cause issues in some cases
RUN du -sh /opt/software/linux-*/gcc-*/* | sort -h \
&& find -L /opt/software/* \
-type d -name site-packages -prune -false \
-o \
-type d -name lib-dynload -prune -false \
-o \
-type f \
-exec realpath '{}' \; \
| xargs file -i \
| grep 'charset=binary' \
| grep 'x-executable\|x-sharedlib' \
| awk -F: '{print $1}' | xargs strip -s \
&& du -sh /opt/software/linux-*/gcc-*/* | sort -h
## 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment