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 alpha test of a CentOS 8 container #15

Merged
merged 1 commit into from
Oct 16, 2019
Merged
Changes from all commits
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
34 changes: 34 additions & 0 deletions docker-c8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM centos:8

RUN dnf -y install zip curl

# Create all possible pool accounts
RUN curl -s https://raw.githubusercontent.com/stfc/grid-workernode/master/resources/pool_accounts/create.sh | bash -

# CVMFS (for SUM tests only; install before adding other repos to ensure we have the latest version)
RUN dnf -y install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm \
https://download.opensuse.org/repositories/home:/cvmfs:/contrib-egi/CentOS_7/noarch/cvmfs-config-egi-2.4-1.10.obs.el7.noarch.rpm

# EPEL
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# Basic dependencies
RUN dnf -y install freetype expat gcc glibc-headers time man unzip quota attr tcsh

# Boost (need to ensure gfal CLI from CVMFS will work for some VOs)
RUN dnf -y install boost-date-time boost-filesystem boost-graph boost-iostreams boost-program-options \
boost-regex boost-serialization boost-signals boost-system boost-test \
boost-thread boost-wave

# Singularity
RUN dnf -y install singularity

# Disable overlay and loop device management in singularity
RUN sed -i '/enable overlay/c\enable overlay = no' /etc/singularity/singularity.conf && \
sed -i '/enable underlay/c\enable underlay = yes' /etc/singularity/singularity.conf && \
sed -i '/max loop devices/c\max loop devices = 0' /etc/singularity/singularity.conf

# Update & cleanup
RUN dnf -y update && \
dnf clean all && \
rm -rf /var/cache/dnf