From 647d6d2a1034eefe42fb7d5150fc37605ac038b0 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Fri, 6 Jan 2023 17:29:09 +0000 Subject: [PATCH] feat: don't strip, allow for debug containers --- containers/jug/dev.Dockerfile | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile index 2bbdc5d71..1ea5ae95d 100644 --- a/containers/jug/dev.Dockerfile +++ b/containers/jug/dev.Dockerfile @@ -181,23 +181,6 @@ FROM builder as staging # Garbage collect in environment 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 ## See #https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir -- GitLab