jamespenn/dedalus

By jamespenn

Updated almost 8 years ago

The dedalus project (http://dedalus-project.org), built in a container

Image
0

75

jamespenn/dedalus repository overview

Dedalus in docker

dedalus built and installed for use with python3 inside the container.

Example: Running the Rayleigh Benard example script

Three different ways of running the script:

  1. From the host command line $ docker run --rm -v ~/data/dedalus:/data jamespenn/dedalus mpirun -n 2 python3 /dedalus/examples/ivp/2d_rayleigh_benard/rayleigh_benard.py The --rm tears down the docker container once done. -v ~/data/dedalus:/data links directory data/dedalus to the /data directory inside the dedalus container so that scripts can be passed in via this folder, and the output can be retrieved from outside the container. /data is the working directory by default, so running mpirun, or python3 from the docker command line will initialise in that directory.

  2. With an interactive container Alternative method is to run an interactive terminal, again that gets destroyed at ctrl-d: $ docker run --rm -it -v ~/data/dedalus:/data jamespenn/dedalus /bin/bash container# cd /dedalus/examples/ivp/2d_rayleigh_benard container# mpirun -n 2 python3 rayleigh_benard.py

  3. Run a persistent no-op container, and exec into it $ docker run -d -v ~/data/dedalus:/data -v ~/scripts:/scripts --name dedalus jamespenn/dedalus tail -f /dev/null $ docker exec -it dedalus bash dedalus@container:/data$ cd /scripts $ mpirun ... You can ctrl-d out of this container and it will continue running indefinitely so can be reattached to later.

Tag summary

Content type

Image

Digest

Size

521.1 MB

Last updated

almost 8 years ago

docker pull jamespenn/dedalus