Skip to content

Commit 8a17fce

Browse files
authored
Merge pull request #237 from bedroge/build_container_zstd
Add `zstd` to build containers (and sync Debian 13 recipe with Debian 12 recipe)
2 parents ed060f2 + 3b29552 commit 8a17fce

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

containers/Dockerfile.EESSI-build-node-debian12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG unionfsfuseversion
1717
COPY --from=prepare-deb /root/deb /root/deb
1818

1919
RUN apt-get update
20-
RUN apt-get install -y sudo vim openssh-client gawk autofs curl attr uuid fuse3 libfuse2 psmisc gdb uuid-dev lsof strace
20+
RUN apt-get install -y sudo vim openssh-client gawk autofs curl attr uuid fuse3 libfuse2 psmisc gdb uuid-dev lsof strace zstd
2121
# python3 and jq are required for eessi-upload-to-staging script (next to awscli)
2222
RUN apt-get install -y python3-pip jq
2323
RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian12_$(dpkg --print-architecture).deb \
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG cvmfsversion=2.13.0
2-
ARG archspecversion=0.2.2
32
ARG awscliversion=1.32.22
4-
ARG fuseoverlayfsversion=1.10
3+
ARG unionfsfuseversion=3.6
4+
55

66
FROM debian:trixie-20250520-slim AS prepare-deb
77
ARG cvmfsversion
@@ -11,25 +11,34 @@ RUN sh /build-or-download-cvmfs-debs.sh ${cvmfsversion}
1111

1212
FROM debian:trixie-20250520-slim
1313
ARG cvmfsversion
14-
ARG archspecversion
1514
ARG awscliversion
16-
ARG fuseoverlayfsversion
15+
ARG unionfsfuseversion
1716

1817
COPY --from=prepare-deb /root/deb /root/deb
1918

2019
RUN apt-get update
21-
RUN apt-get install -y sudo vim openssh-client gawk autofs curl attr uuid fuse3 libfuse2 psmisc gdb uuid-dev lsof strace
20+
RUN apt-get install -y sudo vim openssh-client gawk autofs curl attr uuid fuse3 libfuse2 psmisc gdb uuid-dev lsof strace zstd
2221
# python3 and jq are required for eessi-upload-to-staging script (next to awscli)
23-
RUN apt-get install -y python3-pip python3-venv jq
22+
RUN apt-get install -y python3-pip jq
2423
RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \
2524
/root/deb/cvmfs-fuse3_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \
2625
/root/deb/cvmfs-libs_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \
2726
/root/deb/cvmfs-config-default_latest_all.deb \
2827
/root/deb/cvmfs-config-eessi_latest_all.deb
2928

30-
# download binary for specific version of fuse-overlayfs
31-
RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \
32-
&& chmod +x /usr/local/bin/fuse-overlayfs
29+
#RUN apt-get install -y unionfs-fuse
30+
RUN apt-get install -y cmake pkg-config libfuse3-dev \
31+
&& curl -OL https://github.com/rpodgorny/unionfs-fuse/archive/refs/tags/v${unionfsfuseversion}.tar.gz \
32+
&& tar xfvz v${unionfsfuseversion}.tar.gz \
33+
&& cd unionfs-fuse-${unionfsfuseversion} \
34+
&& mkdir build \
35+
&& cd build \
36+
&& cmake .. \
37+
&& make install \
38+
&& command -v unionfs \
39+
&& unionfs --version \
40+
&& unionfs --help \
41+
&& apt-get remove -y cmake pkg-config libfuse3-dev
3342

3443
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
3544
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
@@ -39,6 +48,5 @@ RUN mkdir -p /cvmfs/software.eessi.io
3948

4049
RUN useradd -ms /bin/bash eessi
4150

42-
RUN python3 -m venv /opt/archspec && . /opt/archspec/bin/activate && pip3 install archspec==${archspecversion} && deactivate && ln -s /opt/archspec/bin/archspec /usr/local/bin/archspec
4351
# stick to awscli v1.x, 2.x is not available through PyPI (see https://github.com/aws/aws-cli/issues/4947)
44-
RUN python3 -m venv /opt/awscli && . /opt/awscli/bin/activate && pip3 install awscli==${awscliversion} && deactivate && ln -s /opt/awscli/bin/aws /usr/local/bin/aws
52+
RUN pip3 install --break-system-packages archspec awscli==${awscliversion}

0 commit comments

Comments
 (0)