Skip to content

Commit

Permalink
RockyLinux 9.2: Use Lmod from EPEL instead of building Lmod from source
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAchilles committed Aug 22, 2023
1 parent 3318c9f commit b2c14a2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions rockylinux-9.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
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
&& dnf -y install epel-release && dnf -y install python3 python3-pip Lmod
# --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

0 comments on commit b2c14a2

Please sign in to comment.