|
| 1 | +FROM docker.io/fedorariscv/base:39 |
| 2 | +LABEL maintainer="CMS Build" |
| 3 | +LABEL name="CMS Worker Node on FC - Runtime" |
| 4 | + |
| 5 | +RUN rm -f /tmp/pkgs.txt &&\ |
| 6 | + for pkg in bash tcsh tar glibc glibc-devel libgcc libxcrypt openssl-libs libcom_err krb5-libs ncurses-libs \ |
| 7 | + libX11 readline tcl tk mesa-libGLU libglvnd-glx libglvnd-opengl libXext libXft libXpm libaio libnsl sssd-client \ |
| 8 | + rpm-build nspr rsync wget openssl-devel ncurses-devel \ |
| 9 | + libX11-devel readline-devel tcl-devel tk-devel mesa-libGLU-devel libXext-devel libXft-devel \ |
| 10 | + libXpm-devel libtool libdrm \ |
| 11 | + gcc-c++ libXmu krb5-devel coreutils libcom_err-devel python3-cryptography jq \ |
| 12 | + man-db time bc strace xauth vim cmake python3 which procps-ng \ |
| 13 | + krb5-workstation environment-modules xdg-utils tmux \ |
| 14 | + voms-clients-cpp python3-requests python3-psutil python3-pip \ |
| 15 | + gfal2-util-scripts gfal2-all python3-gfal2-util xrootd-client openldap-compat myproxy texinfo \ |
| 16 | + perl perl-libs \ |
| 17 | + git nss java-17-openjdk-devel squid apptainer ; do \ |
| 18 | + dnf5 install -y $pkg || echo " $pkg " >> /tmp/pkgs.txt ;\ |
| 19 | + done ;\ |
| 20 | + [ -s /tmp/pkgs.txt ] && dnf5 install -y $(cat /tmp/pkgs.txt) &&\ |
| 21 | + rm -f /tmp/pkgs.txt &&\ |
| 22 | + echo fc39 > /etc/cmsos &&\ |
| 23 | + dnf5 clean all &&\ |
| 24 | + mkdir -p /cvmfs /afs /eos /etc/vomses /etc/grid-security /build /data /pool /opt/cms /etc/ssh &&\ |
| 25 | + mkdir -p /hdfs /mnt/hadoop /hadoop /cms /etc/cvmfs/SITECONF /lfs_roots /storage /scratch &&\ |
| 26 | + touch /etc/tnsnames.ora &&\ |
| 27 | + sed -i -e s'|^ *allow *setuid.*|allow setuid = no|;s|^ *enable *overlay.*|enable overlay = no|;s|^ *enable *underlay.*|enable underlay = yes|' /etc/apptainer/apptainer.conf |
| 28 | + |
| 29 | +ADD share/fix_ssh_config.sh /root/fix_ssh_config.sh |
| 30 | +RUN dnf5 install -y libgfortran openssl gcc-gfortran elfutils-libelf-devel gettext-devel libatomic && dnf5 clean all &&\ |
| 31 | + chmod +x /root/fix_ssh_config.sh &&\ |
| 32 | + /root/fix_ssh_config.sh /etc/ssh/ssh_config |
0 commit comments