Public | Automated Build

Last pushed: a year ago
Short Description
Docker image with PETSc 3.7.2 and SLEPc 3.7.1
Full Description

PETSc Docker Image

Docker image for PETSc and SLEPc.

Travis CI:

Options

Use make <target> where <target> is one of

help     display this help message

rbuild   build remotely (on Docker hub)

build    build the docker image

pull     fetch precompiled image from Docker hub

rebuild  '', ignoring previous builds

run      build and run the image on the local machine

Usage

Once the image is uploaded to the Docker Hub, you can derive a customized one from it, by using e.g. the following Dockerfile:

FROM ocramz/petsc-docker

ADD petsc1.c /root/petsc1.c
WORKDIR /root
RUN gcc -g -v \
  -I$PETSC_DIR/include -I$PETSC_DIR/$PETSC_ARCH/include \
  -L/usr/lib -L$PETSC_DIR/$PETSC_ARCH/lib \
  petsc1.c -lpetsc -lmpi

RUN mpirun -np 2 ./a.out

Credits

based on https://github.com/rlincoln/petsc

Docker Pull Command
Owner
ocramz
Source Repository

Comments (0)