summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-04-13 17:09:34 +0200
committerGitHub <noreply@github.com>2023-04-13 17:09:34 +0200
commitd918ae0bde903a2041a4c9d9edef5c59c63925cf (patch)
treebaf00746007ec972b06b96d68f5a7c518b7ffbb4 /share
parentb940468890c32ce641ca500064eb120bff64a9ca (diff)
downloadspack-d918ae0bde903a2041a4c9d9edef5c59c63925cf.tar.gz
spack-d918ae0bde903a2041a4c9d9edef5c59c63925cf.tar.bz2
spack-d918ae0bde903a2041a4c9d9edef5c59c63925cf.tar.xz
spack-d918ae0bde903a2041a4c9d9edef5c59c63925cf.zip
containerize: strip binaries in a less aggressive way (#36683)
Diffstat (limited to 'share')
-rw-r--r--share/spack/templates/container/Dockerfile2
-rw-r--r--share/spack/templates/container/singularity.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile
index 9116590480..b4aee2ee78 100644
--- a/share/spack/templates/container/Dockerfile
+++ b/share/spack/templates/container/Dockerfile
@@ -32,7 +32,7 @@ RUN find -L {{ paths.view }}/* -type f -exec readlink -f '{}' \; | \
xargs file -i | \
grep 'charset=binary' | \
grep 'x-executable\|x-archive\|x-sharedlib' | \
- awk -F: '{print $1}' | xargs strip -s
+ awk -F: '{print $1}' | xargs strip
{% endif %}
# Modifications to the environment that are necessary to run
diff --git a/share/spack/templates/container/singularity.def b/share/spack/templates/container/singularity.def
index d5778f0d41..a67d25783d 100644
--- a/share/spack/templates/container/singularity.def
+++ b/share/spack/templates/container/singularity.def
@@ -37,7 +37,7 @@ EOF
xargs file -i | \
grep 'charset=binary' | \
grep 'x-executable\|x-archive\|x-sharedlib' | \
- awk -F: '{print $1}' | xargs strip -s
+ awk -F: '{print $1}' | xargs strip
{% endif %}
{% if extra_instructions.build %}
{{ extra_instructions.build }}