Skip to content
Snippets Groups Projects
Dockerfile 1.20 KiB
FROM rhel/ubi9

ARG SPACK_VERSION=v0.21.1

ENV SPACK_DISABLE_LOCAL_CONFIG=true   \
    SPACK_USER_CACHE_PATH=/tmp/spack-cache

RUN echo "10.95.33.172  foreman1.hpc.epfl.ch" >> /etc/hosts
RUN curl -sS --insecure \
    'https://foreman1.hpc.epfl.ch/register?activation_keys=ak-helvetios&organization_id=1&update_packages=false' \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2LCJpYXQiOjE3MDU1NzI0NjYsImp0aSI6IjdkYjE3ODU1NGRhOWVhOTAxYTJjZTY0MmQ5OTFjODAyYmQzZWU1NDI1YmNjYWY4ODY3NjAwNDYwMGE4YmEyNzYiLCJleHAiOjE3MDU1ODY4NjYsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.ilNKpgg__g5RHlDOuwDxtFiTMKLNc-JvPDyWrgy48Pc' \
    | bash


#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

RUN yum install gcc-g++ gcc-gfortran \
    patchelf findutils file gnupg2 hostname iproute unzip\
    python3 python3-pip python3-setuptools python3-boto3
    slurm slurm-libpmi pmix \
    libibverbs libibverbs-utils \
    rdma-core \
    git subversion mercurial \
    jq \

#RUN cd /opt && git clone https://github.com/spack/spack.git -b $SPACK_VERSION