Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfiles for container image that includes a (working) fuse-overlayfs #40

Merged
merged 3 commits into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Dockerfile.fuse-overlay-debian10-aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
FROM docker.io/arm64v8/debian:10.6

RUN apt-get update -y && \
apt-get install -y wget lsb-release

RUN wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb && \
dpkg -i cvmfs-release-latest_all.deb && \
rm -f cvmfs-release-latest_all.deb

RUN apt-get install -y debhelper autotools-dev cmake cpio libcap-dev libssl-dev pkg-config libattr1-dev patch \
python-dev python-setuptools unzip uuid-dev valgrind libz-dev gawk psmisc autofs curl attr zlib1g gdb uuid-dev \
uuid adduser autofs psmisc curl attr openssl libcap2 libcap2-bin lsof rsync jq usbutils sqlite3 sudo \
fuse libfuse-dev libfuse2 libfuse3-dev

# build CervVM-FS from source (no aarch64 Debian packages available)
boegel marked this conversation as resolved.
Show resolved Hide resolved
RUN apt-get install sudo && \
wget https://github.com/cvmfs/cvmfs/archive/cvmfs-2.7.5.tar.gz && \
tar xfz cvmfs-2.7.5.tar.gz && \
cd cvmfs*2.7.5/ && \
mkdir build && \
cd build && \
cmake .. -DBUILD_SERVER=no -DBUILD_SERVER_DEBUG=no -DDBUILD_SHRINKWRAP=no && \
make -j $(nproc) && \
sudo make install && \
cd / && \
rm -r cvmfs*2.7.5*

RUN wget https://github.com/EESSI/filesystem-layer/releases/download/v0.2.3/cvmfs-config-eessi_0.2.3_all.deb && \
dpkg -i cvmfs-config-eessi_0.2.3_all.deb && \
rm -f cvmfs-config-eessi_0.2.3_all.deb

# install fuse3 to Singularity's --fusemount works
boegel marked this conversation as resolved.
Show resolved Hide resolved
# (can't be installed together with fuse)
RUN apt-get remove -y fuse && apt-get install -y fuse3

RUN apt-get install -y fuse-overlayfs

RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local && \
echo 'CVMFS_HTTP_PROXY="DIRECT"' >> /etc/cvmfs/default.local

ENV LC_ALL=C
22 changes: 22 additions & 0 deletions Dockerfile.fuse-overlay-debian10-x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM docker.io/debian:10.6

RUN apt-get update -y && \
apt-get install -y wget lsb-release

RUN wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb && \
dpkg -i cvmfs-release-latest_all.deb && \
rm -f cvmfs-release-latest_all.deb

RUN apt-get update -y && \
apt-get install -y cvmfs cvmfs-config-default cvmfs-fuse3

RUN wget https://github.com/EESSI/filesystem-layer/releases/download/v0.2.3/cvmfs-config-eessi_0.2.3_all.deb && \
dpkg -i cvmfs-config-eessi_0.2.3_all.deb && \
rm -f cvmfs-config-eessi_0.2.3_all.deb

RUN apt-get install -y fuse-overlayfs

RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local && \
echo 'CVMFS_HTTP_PROXY="DIRECT"' >> /etc/cvmfs/default.local

ENV LC_ALL=C