From dca2c383cf177842b56d4a209d800f90682c9f84 Mon Sep 17 00:00:00 2001 From: Sylvester Joosten <sylvester.joosten@gmail.com> Date: Wed, 5 May 2021 14:23:13 +0000 Subject: [PATCH] excluded all python packages from stripping, and addressed stripping-related warnings. --- VERSION | 2 +- containers/release/Dockerfile.in | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index dedcc7d43..5d9ade10c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.9.1 +2.9.2 diff --git a/containers/release/Dockerfile.in b/containers/release/Dockerfile.in index 58a62e420..3565c98c9 100644 --- a/containers/release/Dockerfile.in +++ b/containers/release/Dockerfile.in @@ -6,7 +6,10 @@ RUN cd /opt/spack-environment && spack env activate . && spack gc -y # Strip all the binaries # This reduces the image size from 3.2GB --> 1.7GB so worth the time -RUN find -L /usr/local/* -type f -exec readlink -f '{}' \; | \ +RUN find -L /usr/local/* \ + -type d -name site-packages -prune -false -o \ + -type f -not -name "zdll.lib" \ + -exec readlink -f '{}' \; | \ xargs file -i | \ grep 'charset=binary' | \ grep 'x-executable\|x-archive\|x-sharedlib' | \ -- GitLab