Skip to content

Commit 34186b6

Browse files
committed
added fc39 docker file
1 parent 4487c2b commit 34186b6

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

fc39/Changelog.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog fc39
2+
3+
## 02-07-2024
4+
* Initial files to build fc39 container
5+
* Used podman on riscv64 node
6+
```
7+
cd cms-docker/fc39
8+
#Build cmssw/fc39:riscv64
9+
podman build --cgroup-manager=cgroupfs --network host --pull -f Dockerfile -t docker.io/cmssw/fc39:riscv64 ..
10+
#Push cmssw/fc39:riscv64
11+
podman --cgroup-manager=cgroupfs push --authfile ./auth.json docker.io/cmssw/fc39:riscv64
12+
#Build bootstrap container
13+
podman build --cgroup-manager=cgroupfs --network host --pull -f Dockerfile.bootstrap -t docker.io/cmssw/fc39:riscv64-bootstrap .
14+
podman --cgroup-manager=cgroupfs push --authfile ./auth.json docker.io/cmssw/fc39:riscv64-bootstrap
15+
```

fc39/Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

fc39/Dockerfile.bootstrap

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM docker.io/cmssw/fc39:riscv64
2+
RUN dnf5 install -y bzip2-devel file popt-devel nspr-devel nss-devel \
3+
rpm-build autoconf automake libtool gettext-devel \
4+
python3-devel cmake bison && \
5+
dnf5 clean all

0 commit comments

Comments
 (0)