-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
25 lines (25 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM rockylinux:9.0
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
# glibc-langpack-en provides locale stuff (for en_US.UTF-8)
RUN dnf -y 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