The dedalus project (http://dedalus-project.org), built in a container
75
dedalus built and installed for use with python3 inside the container.
Three different ways of running the script:
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.
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
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.
Content type
Image
Digest
Size
521.1 MB
Last updated
almost 8 years ago
docker pull jamespenn/dedalus