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-ofed-24_04-0_6_6_0-5_14_0-70_30_1-rhel90 ARG CUDA_REPO=SCITAS_product-cuda_repo-cuda-535_154_05-x86_64-rhel9 ARG GPFS_REPO=SCITAS_product-gpfs_repo-gpfs-519 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 \ && yum -y clean all && rm -fr /var/cache # stack dependencies RUN yum install -y --enablerepo=$SLURM_REPO \ slurm-devel slurm-libpmi \ && 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 \ hcoll xpmem kmod-knem \ && 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