Skip to content
Snippets Groups Projects
Commit a234a2e3 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adapting dockerfiles

parent bbd2f7e3
No related branches found
No related tags found
No related merge requests found
Pipeline #204566 failed
FROM registry.c4science.ch/scitas-stack/rhel9-base:9.0
#dnf install epel-release
#dnf group install "Development Tools"
#dnf install curl findutils gcc-gfortran gnupg2 hostname iproute redhat-lsb-core python3 python3-pip python3-setuptools unzip python3-boto3
# zlib-devel needed to compiler gcc ?
# repos for kuma
ARG APPSTREAM_REPO=rhel-9-for-x86_64-appstream-rpms
ARG SLURM_REPO=SCITAS_product-slurm_repo-slurm-2311
ARG PMIX_REPO=SCITAS_product-scitas_repo-scitas-cluster
ARG MLNX_REPO=SCITAS_product-mlnx_repo-mlnx-rdma-minimal-23_07-0_5_0_0-rhel90
ARG CUDA_REPO=SCITAS_product-cuda_repo-cuda-535_154_05-x86_64-rhel9
ARG GPFS_REPO=SCITAS_product-gpfs_repo-gpfs-519
ARG SLURM_VERSION=23.11.7-1.scitas
RUN sed /etc/yum.repos.d/ubi.repo -i -e 's/enabled = 1/enabled = 0/'
# spack dependencies
RUN yum install -y --enablerepo=$APPSTREAM_REPO \
gcc-g++ gcc-gfortran \
patchelf findutils patch \
xz bzip2 file gnupg2 hostname iproute unzip zlib-devel\
python3 python3-pip python3-setuptools python3-boto3 \
git subversion mercurial \
glibc-gconv-extra \
squashfs-tools \
squashfuse fuse-overlayfs \
&& yum -y clean all && rm -fr /var/cache
# stack dependencies
RUN yum install -y --enablerepo=$SLURM_REPO \
slurm-devel-${SLURM_VERSION} \
slurm-libpmi-${SLURM_VERSION} \
&& yum -y clean all && rm -fr /var/cache
RUN yum install -y --enablerepo=$PMIX_REPO \
pmix \
&& yum -y clean all && rm -fr /var/cache
RUN yum install -y --enablerepo=$MLNX_REPO \
libibverbs libibverbs-utils \
rdma-core rdma-core-devel \
&& yum -y clean all && rm -fr /var/cache
RUN yum install -y --enablerepo=$CUDA_REPO \
nvidia-driver-devel \
&& yum -y clean all && rm -fr /var/cache
RUN yum install -y --enablerepo=$GPFS_REPO \
gpfs.base \
&& yum -y clean all && rm -fr /var/cache
RUN curl -L -O https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 \
&& mv jq-linux-amd64 /usr/local/bin/jq \
&& chmod +x /usr/local/bin/jq
RUN curl -L -O https://github.com/mikefarah/yq/releases/download/v4.44.2/yq_linux_amd64 \
&& mv yq_linux_amd64 /usr/local/bin/yq \
&& chmod +x /usr/local/bin/yq
......@@ -14,6 +14,8 @@ ARG MLNX_REPO=SCITAS_product-mlnx_repo-mlnx-ofed-24_04-0_6_6_0-5_14_0-70_30_1-rh
ARG CUDA_REPO=SCITAS_product-cuda_repo-cuda-535_154_05-x86_64-rhel9
ARG GPFS_REPO=SCITAS_product-gpfs_repo-gpfs-519
ARG SLURM_VERSION=24.05.2-1.cuda.scitas.el9
RUN sed /etc/yum.repos.d/ubi.repo -i -e 's/enabled = 1/enabled = 0/'
# spack dependencies
......@@ -28,9 +30,11 @@ RUN yum install -y --enablerepo=$APPSTREAM_REPO \
squashfuse fuse-overlayfs \
&& yum -y clean all && rm -fr /var/cache
# stack dependencies
RUN yum install -y --enablerepo=$SLURM_REPO \
slurm-devel slurm-libpmi \
slurm-devel-${SLURM_VERSION} \
slurm-libpmi-${SLURM_VERSION} \
&& yum -y clean all && rm -fr /var/cache
RUN yum install -y --enablerepo=$PMIX_REPO \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment