Skip to content

Commit

Permalink
Merge pull request #375 from pmgbergen/docker-with-petsc
Browse files Browse the repository at this point in the history
Include PETSc in Dockerfile
  • Loading branch information
jwboth authored Aug 31, 2024
2 parents d66017b + 8bd863e commit b27a904
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b27a904

Please sign in to comment.