Skip to content

A Dockerized environment with petsc and its python dependencies.

Notifications You must be signed in to change notification settings

dgokcin/petsc4py

Repository files navigation

GitHub Workflow Status GitHub release (latest by date) Docker Image Version (latest semver) Docker Image Size (latest semver) Docker Pulls

Description

A Dockerized environment with petsc and its python dependencies bundled together.

Usage

Changelog

Image Tag Image Size Description
v0.0.9 843.26MB reverted back petsc to petsc-lite
v0.0.8 891.6MB updated the petsc version, switched to petsc instead of petsc-lite, added mumps dependencies
v0.0.7 578.68MB added the pandas python package to the container, install python packages with --no-cache-dir option
v0.0.6 547.11MB got rid of the petsc4py, using the root user instead since it caused problems in the latest version of the solver.
v0.0.5 547.28MB changed the base image from debian slim to alpine 3.12, adjusted the permissions so that the image works as non-root user
v0.0.4 547.27MB changed the base image from debian slim to alpine 3.12, adjusted the permissions so that the image works as non-root user
v0.0.3 1.78GB changed the base image from ubuntu 20.04 to debian-slim
v0.0.2 1.77GB changed theentrypoint to the container for easier use
v0.0.1 1.77GB initial setup, bundled all the dependencies of petsc

To run the solver with mounted matrices dir

docker run -it -d -w /matrices -v /matrices:/matrices denizgokcin/petsc4py:v0.0.9 /bin/bash -c './run_for_docker.sh beta.lst'

To run two solvers with mounted matrices dir

cd <PATH_FOR_THE_MATRICES_DIR>
docker-compose up --scale app=2 -d

To build PETSc image

docker build -t petsc4py .

To extend the docker image

FROM denizgokcin/petsc4py:<TAG_NAME>

RUN apt-get update \
  && apt-get install -y \
    curl \
    vim

RUN pip3 install \
    h5py \
    pandas