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

Clean up the alma9 images, use automount with the image that has cvmfs #3

Merged
merged 5 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
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
22 changes: 17 additions & 5 deletions Docker/alma9/alma9-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@ FROM gitlab-registry.cern.ch/linuxsupport/alma9-base
# epel-release and parallel needed for the validation
# wget needed for some tests
RUN dnf update -y && \
dnf groupinstall -y "Development Tools" && \
dnf install -y vim gfortran wget python3-pip epel-release mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel krb5-devel && \
dnf install -y parallel ccache mold && \
# dnf groupinstall -y "Development Tools" && \
dnf install -y \
# Needed for compiling
glibc-headers glibc-devel \
# Requirements
mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel krb5-devel \
# Tools
git patch vim wget epel-release \
# For fetching commits of packages
python3-requests python3-yaml && \
# For building and CI
dnf install -y ccache mold && \
dnf remove -y NetworkManager llvm-libs xorg-x11-fonts-ISO8859-1-100dpi dejavu-sans-fonts selinux-policy && \
# We don't need valgrind but mesa-libGL-devel depends on it
for pkg in valgrind valgrind-devel gl-manpages git-core-doc grub2-common grub2-efi-x64 grub2-tools-minimal emacs-filesystem systemd systemd-udev systemd-libs systemd-pam; do \
rpm -e --nodeps "$pkg" || true; \
done && \
dnf clean all

RUN pip install boto3 requests

CMD ["/bin/bash"]
6 changes: 4 additions & 2 deletions Docker/alma9/alma9-cvmfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ FROM alma9

RUN dnf install -y https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm && \
dnf install -y cvmfs && \
mkdir /cvmfs/cvmfs-config.cern.ch /cvmfs/sw.hsf.org /cvmfs/sw-nightlies.hsf.org && \
echo "CVMFS_CONFIG_REPOSITORY=cvmfs-config.cern.ch" > /etc/cvmfs/default.local && \
echo "CVMFS_CLIENT_PROFILE=single" >> /etc/cvmfs/default.local && \
echo "CVMFS_QUOTA_LIMIT='15000'" >> /etc/cvmfs/default.local && \
echo "CVMFS_USE_CDN='yes'" >> /etc/cvmfs/default.local && \
cvmfs_config setup || true && \
dnf clean all

COPY mount.sh /mount.sh
RUN chmod +x /mount.sh

CMD ["/bin/bash", "-c", "/mount.sh && /bin/bash"]
ENTRYPOINT ["/mount.sh"]
CMD ["/bin/bash"]
13 changes: 4 additions & 9 deletions Docker/alma9/alma9-cvmfs/mount.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
if mount | grep -q cvmfs; then
echo "CVMFS already mounted"
echo "/mount.sh does not need to be run anymore"
exit 0
fi
set -e
mount -t cvmfs cvmfs-config.cern.ch /cvmfs/cvmfs-config.cern.ch
mount -t cvmfs sw.hsf.org /cvmfs/sw.hsf.org
mount -t cvmfs sw-nightlies.hsf.org /cvmfs/sw-nightlies.hsf.org
#!/bin/bash
/usr/sbin/automount

exec "$@"