Skip to content
Snippets Groups Projects
Select Git revision
  • fa35a254ea5a8130fb729d1a76d82c3f5445157b
  • main default protected
  • usertypes
  • fortran
  • must-toolcoverage
  • toolcoverage
  • tools
  • must-json
  • merged
  • tools-parallel
  • coll
  • rma
  • dtypes
  • p2p
  • infrastructure-patch-3
  • infrastructure-patch2
  • devel-TJ
  • infrasructure-patch-1
  • devel-ES
  • instructionblock-lists
  • mbi
21 results

Dockerfile.must

Blame
  • Dockerfile.must 1.38 KiB
    
    FROM --platform=linux/amd64 debian:12
    USER root
    
    RUN apt-get update --fix-missing && \
        apt-get install -y p7zip p7zip-full apt-transport-https ca-certificates python-is-python3 python3-pip pipenv valgrind git cmake vim clang-format && \
        update-ca-certificates && \
        apt-get autoremove -yq && apt-get clean -yq
    
    # Install python dependencies with pipenv and activate virtualenv
    ENV PIPENV_VENV_IN_PROJECT=1
    COPY Pipfile .
    RUN pipenv install
    ENV PATH="/.venv/bin:$PATH"
    
    ENV MPICH_CC=clang
    ENV MPICH_CXX=clang++
    
    # Building MUST 
    RUN apt-get -y install wget cmake git clang-14 clang++-14 clang-format mpich libmpich-dev libdw-dev libxml2-dev binutils-dev && \
        update-alternatives --set mpi /usr/bin/mpicc.mpich && \
        update-alternatives --set mpirun /usr/bin/mpirun.mpich && \
        ln -s /usr/bin/clang-14 /usr/bin/clang && \
        ln -s /usr/bin/clang++-14 /usr/bin/clang++ && \
        apt-get clean -y
    
    RUN mkdir /tmp/build-must
    WORKDIR /tmp/build-must
    RUN wget https://hpc.rwth-aachen.de/must/files/MUST-v1.9.2.tar.gz
    RUN tar xfz MUST-*.tar.gz
    RUN mkdir -p /tmp/build-must/build
    WORKDIR /tmp/build-must/build
    RUN CC=clang CXX=clang++ cmake ../MUST-v1.9.2 -DCMAKE_INSTALL_PREFIX=/MBB-builds/MUST192 -DCMAKE_BUILD_TYPE=Release -DENABLE_FORTRAN=OFF -DENABLE_TYPEART=On && \
        make -j$(nproc) install VERBOSE=1 && \
        make -j$(nproc) install-prebuilds VERBOSE=1 && \
        rm -rf /tmp/build-must