-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ARG cvmfsversion=2.9.4 | ||
# Stick to old version of fuse-overlayfs due to issues with newer versions | ||
# (cfr. https://github.com/containers/fuse-overlayfs/issues/232) | ||
ARG fuseoverlayfsversion=0.3 | ||
|
||
FROM centos:7 AS prepare-rpm | ||
ARG cvmfsversion | ||
COPY ./containers/build-or-download-cvmfs-rpms.sh /build-or-download-cvmfs-rpms.sh | ||
RUN sh /build-or-download-cvmfs-rpms.sh ${cvmfsversion} | ||
|
||
|
||
FROM centos:7 AS build-fuse-overlayfs | ||
ARG fuseoverlayfsversion | ||
RUN yum install -y wget fuse3-devel autoconf automake gcc make tar | ||
RUN wget https://github.com/containers/fuse-overlayfs/archive/refs/tags/v${fuseoverlayfsversion}.tar.gz \ | ||
&& tar xzf v${fuseoverlayfsversion}.tar.gz \ | ||
&& cd fuse-overlayfs-${fuseoverlayfsversion} \ | ||
&& ./autogen.sh && ./configure && make && make install | ||
|
||
|
||
FROM centos:7 | ||
ARG cvmfsversion | ||
|
||
COPY --from=prepare-rpm /root/rpmbuild/RPMS /root/rpmbuild/RPMS | ||
COPY --from=build-fuse-overlayfs /usr/local/bin/fuse-overlayfs /usr/local/bin/fuse-overlayfs | ||
|
||
RUN yum install -y sudo vim openssh-clients lsof | ||
RUN yum install -y /root/rpmbuild/RPMS/$(uname -m)/cvmfs-${cvmfsversion}-1.el7.$(uname -m).rpm \ | ||
/root/rpmbuild/RPMS/$(uname -m)/cvmfs-fuse3-${cvmfsversion}-1.el7.$(uname -m).rpm \ | ||
http://ecsft.cern.ch/dist/cvmfs/cvmfs-config/cvmfs-config-default-latest.noarch.rpm | ||
RUN yum install -y https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi-latest.noarch.rpm | ||
|
||
# download binary for specific version of fuse-overlayfs | ||
#RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \ | ||
# && chmod +x /usr/local/bin/fuse-overlayfs | ||
|
||
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \ | ||
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \ | ||
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local | ||
|
||
RUN mkdir -p /cvmfs/pilot.eessi-hpc.org | ||
|
||
RUN useradd -ms /bin/bash eessi |