1
1
ARG cvmfsversion=2.13.0
2
2
ARG awscliversion=1.40.35
3
- ARG fuseoverlayfsversion=1.15
4
- ARG bwrapversion=0.11.0
3
+ ARG unionfsfuseversion=3.6
4
+
5
5
6
6
FROM debian:12.11 AS prepare-deb
7
7
ARG cvmfsversion
@@ -12,8 +12,7 @@ RUN sh /build-or-download-cvmfs-debs.sh ${cvmfsversion}
12
12
FROM debian:12.11
13
13
ARG cvmfsversion
14
14
ARG awscliversion
15
- ARG fuseoverlayfsversion
16
- ARG bwrapversion
15
+ ARG unionfsfuseversion
17
16
18
17
COPY --from=prepare-deb /root/deb /root/deb
19
18
@@ -27,24 +26,19 @@ RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian12_$(dpkg --print-architectu
27
26
/root/deb/cvmfs-config-default_latest_all.deb \
28
27
/root/deb/cvmfs-config-eessi_latest_all.deb
29
28
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 .. \
43
37
&& 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
48
42
49
43
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
50
44
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
0 commit comments