Sign inSign up

denizgokcin/petsc4py

By denizgokcin

•Updated over 5 years ago

PETSc for python.

Image
1

4.0K

denizgokcin/petsc4py repository overview

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 TagImage SizeDescription
v0.0.9843.26MBreverted back petsc to petsc-lite
v0.0.8891.6MBupdated the petsc version, switched to petsc instead of petsc-lite, added mumps dependencies
v0.0.7578.68MBadded the pandas python package to the container, install python packages with --no-cache-dir option
v0.0.6547.11MBgot rid of the petsc4py, using the root user instead since it caused problems in the latest version of the solver.
v0.0.5547.28MBchanged the base image from debian slim to alpine 3.12, adjusted the permissions so that the image works as non-root user
v0.0.4547.27MBchanged the base image from debian slim to alpine 3.12, adjusted the permissions so that the image works as non-root user
v0.0.31.78GBchanged the base image from ubuntu 20.04 to debian-slim
v0.0.21.77GBchanged theentrypoint to the container for easier use
v0.0.11.77GBinitial 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

Tag summary

Content type

Image

Digest

Size

843.6 MB

Last updated

over 5 years ago

docker pull denizgokcin/petsc4py