From 3318c9fa4b37c469c8496b33070ef13e02deb588 Mon Sep 17 00:00:00 2001 From: Sebastian Achilles Date: Thu, 17 Aug 2023 16:22:59 +0200 Subject: [PATCH] add container for Rocky Linux 9.2 --- .../workflows/build-publish-containers.yml | 1 + README.md | 1 + rockylinux-9.2/Dockerfile | 26 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 rockylinux-9.2/Dockerfile diff --git a/.github/workflows/build-publish-containers.yml b/.github/workflows/build-publish-containers.yml index bb2652b..f9d5bab 100644 --- a/.github/workflows/build-publish-containers.yml +++ b/.github/workflows/build-publish-containers.yml @@ -24,6 +24,7 @@ jobs: - rockylinux-8.8 - rockylinux-9.0 - rockylinux-9.1 + - rockylinux-9.2 - almalinux-8.6 - almalinux-9.0 - ubuntu-20.04 diff --git a/README.md b/README.md index 05ce8ec..ad64a27 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Containers for testing EasyBuild, built automatically for `x86_64` and `aarch64` * `rockylinux-8.8`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-8.8/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-8.8) * `rockylinux-9.0`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-9.0/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-9.0) * `rockylinux-9.1`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-9.1/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-9.1) +* `rockylinux-9.2`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-9.2/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-9.2) * `ubuntu-20.04`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-20.04/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-20.04) * `ubuntu-22.04`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-22.04/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-22.04) diff --git a/rockylinux-9.2/Dockerfile b/rockylinux-9.2/Dockerfile new file mode 100644 index 0000000..a97a72c --- /dev/null +++ b/rockylinux-9.2/Dockerfile @@ -0,0 +1,26 @@ +FROM rockylinux:9.2 +ENV LMOD_VER 8.7 +RUN useradd -ms /bin/bash easybuild +RUN dnf -y update \ +# enable crb repository +&& dnf -y install dnf-plugins-core && dnf config-manager --set-enabled crb \ +&& dnf -y install epel-release && dnf -y install python3 python3-pip +# --allowerasing is required to allow to install curl and remove conflicting curl-minimal which is part of the base image +# glibc-langpack-en provides locale stuff (for en_US.UTF-8) +RUN dnf -y --allowerasing install bzip2 curl diffutils file findutils gcc-c++ git glibc-langpack-en gzip make openssl openssl-devel rdma-core-devel patch sudo tar unzip which xz +# install requirements to build Lmod +RUN dnf -y install procps-ng lua-filesystem lua-posix lua-devel lua tcl +# Build Lmod from source +RUN curl -LO https://sourceforge.net/projects/lmod/files/Lmod-${LMOD_VER}.tar.bz2 \ + && tar xf Lmod-${LMOD_VER}.tar.bz2 \ + && cd Lmod-${LMOD_VER} \ + && ./configure --prefix=/opt/apps --with-fastTCLInterp=no \ + && make install \ + && cd .. \ + && rm -rf Lmod-${LMOD_VER} \ + && rm -rf Lmod-${LMOD_VER}.tar.bz2 \ + && ln -s /opt/apps/lmod/lmod/init/profile /etc/profile.d/modules.sh \ + && ln -s /opt/apps/lmod/lmod/init/cshrc /etc/profile.d/modules.csh +# install requirements to build OpenSSL 1.1 and 3.0 from source +RUN dnf -y install perl-FindBin perl-File-Compare perl-File-Copy perl-IPC-Cmd perl-Pod-Html +RUN python3 -m pip install archspec