From 8bd863e06ff7e60cb4e43a7676a9fede5787b9f7 Mon Sep 17 00:00:00 2001 From: Jakub Both Date: Sun, 1 Sep 2024 00:05:24 +0200 Subject: [PATCH] MAINT: Add PETSc to Dockerfile --- dockerfiles/Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 70eeca47..0a9072af 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -28,8 +28,30 @@ RUN apt-get update && \ # Move to DarSIA sub-directory WORKDIR ${DARSIA_HOME} +# Prepare install PETSc +RUN apt-get update && \ + apt-get install -y \ + build-essential \ + gcc \ + gfortran \ + mpich \ + cmake + +# Install PETSc +RUN pip install --upgrade pip && \ + apt-get update && \ + apt-get install -y libhypre-dev libmumps-seq-dev + +RUN pip install numpy + +RUN pip install mpi4py + +RUN pip install --upgrade pip && \ + PETSC_CONFIGURE_OPTIONS="--download-hypre --download-mumps --download-parmetis --download-ml --download-metis --download-scalapack" pip install petsc petsc4py + # Update pip, install dependencies and freeze pip RUN pip install --upgrade pip && \ + # Install DarSIA dependencies pip install -e.[dev] && \ pip freeze && \ # Remove git