From af4ab3dd583ce060fa7f02b877b903962d88f8a3 Mon Sep 17 00:00:00 2001 From: aandvalenzuela <aandvalenzuela@gmail.com> Date: Tue, 18 May 2021 14:51:15 +0200 Subject: [PATCH] Startup the container for building snapshotter --- docker/snapshotter_x86_64:el8.Dockerfile | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docker/snapshotter_x86_64:el8.Dockerfile diff --git a/docker/snapshotter_x86_64:el8.Dockerfile b/docker/snapshotter_x86_64:el8.Dockerfile new file mode 100644 index 0000000..19b89a1 --- /dev/null +++ b/docker/snapshotter_x86_64:el8.Dockerfile @@ -0,0 +1,58 @@ +FROM amd64/centos:8 +MAINTAINER Jakob Blomer <jblomer@cern.ch> + +# This two args should not be necessary, but the bug fixed by +# https://github.com/opencontainers/runc/pull/2086 +# makes them necessary in our environment +ARG SFTNIGHT_UID=500 +ARG SFTNIGHT_GID=500 + +RUN yum -y update +RUN yum -y install filesystem +RUN yum -y install epel-release +RUN yum -y install \ + cmake \ + curl-devel \ + fuse-devel \ + fuse3-devel \ + gcc-c++ \ + gdb \ + git \ + golang \ + hardlink \ + libattr-devel \ + libcap-devel \ + libffi-devel \ + libuuid-devel \ + make \ + openssl-devel \ + python2 \ + python2-devel \ + python3-devel \ + rpm-build \ + ruby-devel \ + selinux-policy-devel \ + selinux-policy-targeted \ + which \ + valgrind-devel \ + voms-devel \ + zlib-devel \ + lsb \ + fuse3 + +# Don't include container-selinux and remove +# directories used by dnf that are just taking +# up space. + +# Picked up by $cvmfs-source/ci/build_package.sh +RUN echo "snapshotter" > /cvmfs-package-type + +# Similarly to the node above. +# `adduser sftnight` should be sufficient, but the bug above requires +# this workaround +RUN groupadd --gid $SFTNIGHT_GID sftnight && \ + adduser --uid $SFTNIGHT_UID --gid $SFTNIGHT_GID sftnight + +USER sftnight + +WORKDIR /home/sftnight -- GitLab