@@ -42,19 +42,19 @@ RUN --mount=type=cache,target=/buildcache source /spack/share/spack/setup-env.sh
42
42
RUN --mount=type=cache,target=/buildcache source /spack/share/spack/setup-env.sh && \
43
43
spack env create tools --without-view && \
44
44
spack env activate tools && \
45
- spack add cmake autotools && \
46
- spack concretize -f && spack install --fail-fast && \
47
- spack buildcache create -a -m cache && \
48
- spack uninstall --all
45
+ spack add cmake meson m4 pkgconf autoconf automake libtool && \
46
+ spack concretize -f && ( spack install --fail-fast ; \
47
+ spack buildcache create -a -m cache) && \
48
+ spack uninstall -y - -all
49
49
50
50
# Define and compile an alien environment
51
51
RUN --mount=type=cache,target=/buildcache source /spack/share/spack/setup-env.sh && \
52
52
spack buildcache update-index -d /buildcache && \
53
53
spack env create alien --without-view && \
54
54
spack env activate alien && \
55
- spack add alien +hypre+petsc+xml+hdf5+move+ref ginkgo=omp trilinos=omp && \
56
- spack concretize -f && spack install --fail-fast && \
57
- spack buildcache create -a -m cache
55
+ spack add alien +hypre+petsc+xml+hdf5+move+ref ginkgo=omp trilinos=omp ^trilinos~explicit_template_instantiation && \
56
+ spack concretize -f && ( spack install --fail-fast; \
57
+ spack buildcache create -a -m cache)
58
58
59
59
# # Define and compile an arcane environment
60
60
# RUN source /spack/share/spack/setup-env.sh && \
@@ -74,5 +74,12 @@ RUN --mount=type=cache,target=/buildcache source /spack/share/spack/setup-env.sh
74
74
# RUN source /spack/share/spack/setup-env.sh && \
75
75
# spack clean -a
76
76
77
+ # Strip all the binaries
78
+ RUN find -L /spack/opt/* -type f -exec readlink -f '{}' \; | \
79
+ xargs file -i | \
80
+ grep 'charset=binary' | \
81
+ grep 'x-executable\| x-archive\| x-sharedlib' | \
82
+ awk -F: '{print $1}' | xargs strip -s
83
+
77
84
FROM base AS final
78
85
COPY --from=builder /spack/opt/ /spack/
0 commit comments