Skip to content

Commit 46cd927

Browse files
authored
Slim containers (#714)
I looked at the container for what else we could remove to make it smaller.
1 parent 0b475e9 commit 46cd927

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/actions/build-container/spack_env/PalaceDockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ RUN find /opt/software -type d \( -name examples -o -name doc -o -name docs \) -
7171
fi; \
7272
done; \
7373
true
74+
75+
# Remove header files not needed at runtime (keep libCEED headers for JIT compilation)
76+
RUN find /opt/software -type d -name include \
77+
-not -path "*/libceed-*/include" \
78+
-exec rm -rf {} + 2>/dev/null; \
79+
true
7480
{% if strip %}
7581

7682
# Strip all the binaries

.github/actions/build-container/spack_env/spack.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ spack:
7474
# Enable AWS EFA
7575
libfabric:
7676
require: fabrics=efa,lnx,mrail,rxm,shm,sockets,tcp,udp
77+
# We do not want to include the full Python stack in the container
78+
rdma-core:
79+
require: ~pyverbs
7780
develop:
7881
palace:
7982
spec: palace@=develop

0 commit comments

Comments
 (0)