Skip to content

Commit d6b411a

Browse files
authored
Merge pull request #226 from boegel/unionfs-fuse
build and install recent `unionfs-fuse` version (replacing `fuse-overlayfs`) in Debian 12 build container
2 parents 9e87812 + 1747d55 commit d6b411a

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

containers/Dockerfile.EESSI-build-node-debian12

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG cvmfsversion=2.13.0
22
ARG awscliversion=1.40.35
3-
ARG fuseoverlayfsversion=1.15
4-
ARG bwrapversion=0.11.0
3+
ARG unionfsfuseversion=3.6
4+
55

66
FROM debian:12.11 AS prepare-deb
77
ARG cvmfsversion
@@ -12,8 +12,7 @@ RUN sh /build-or-download-cvmfs-debs.sh ${cvmfsversion}
1212
FROM debian:12.11
1313
ARG cvmfsversion
1414
ARG awscliversion
15-
ARG fuseoverlayfsversion
16-
ARG bwrapversion
15+
ARG unionfsfuseversion
1716

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

@@ -27,24 +26,19 @@ RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian12_$(dpkg --print-architectu
2726
/root/deb/cvmfs-config-default_latest_all.deb \
2827
/root/deb/cvmfs-config-eessi_latest_all.deb
2928

30-
# build and install patched version of fuse-overlayfs,
31-
# see also https://github.com/EESSI/software-layer/issues/556
32-
# and https://github.com/containers/fuse-overlayfs/issues/428
33-
RUN apt-get install -y autoconf automake pkg-config libfuse3-dev \
34-
&& curl -OL https://github.com/containers/fuse-overlayfs/archive/refs/tags/v${fuseoverlayfsversion}.tar.gz \
35-
&& tar xfvz v${fuseoverlayfsversion}.tar.gz \
36-
&& cd fuse-overlayfs-${fuseoverlayfsversion} \
37-
&& cp main.c main.c.orig \
38-
&& sed -i 's/find_mapping (st->st_\([ug]id\)/find_mapping (get\1()/g' main.c \
39-
&& sed -i 's/if (st.st_uid.*/if (0)/g' main.c \
40-
&& diff -u main.c.orig main.c || true \
41-
&& sh autogen.sh \
42-
&& LIBS="-ldl" LDFLAGS="-static" ./configure --prefix /usr \
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 .. \
4337
&& make install \
44-
&& command -v fuse-overlayfs \
45-
&& fuse-overlayfs --version \
46-
&& fuse-overlayfs --help \
47-
&& apt-get remove -y autoconf automake pkg-config libfuse3-dev
38+
&& command -v unionfs \
39+
&& unionfs --version \
40+
&& unionfs --help \
41+
&& apt-get remove -y cmake pkg-config libfuse3-dev
4842

4943
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
5044
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \

0 commit comments

Comments
 (0)