/docker-cosmobox

Docker command line environment with latest gcc/gfortran 6, python, latex, cfitsio

Primary LanguageDockerfileGNU General Public License v2.0GPL-2.0

Overview

Docker with source build of the latest gcc/gfortran, plus latex, Python 3, cfitsio as needed for running building and running codes like CosmoMC, Cobaya, plotting and accessing astronomical data.

Currently gcc 6+ is required to run many Fortran 2003/2008 programs successfully due to bugs in earlier versions. Also includes standard openmpi and lapack libraries, useful basic python package configurations, as well as basic build tools (inherited from the small cmbant/docker-gcc-build image). It can be used with Travis for testing python/fortran/C codes.

GitHub: http://registry.hub.docker.com/u/cmbant/docker-cosmobox/

DockerHub: http://registry.hub.docker.com/u/cmbant/cosmobox/

Usage

To make an interactive shell ready for compiling you local code in the current directory do

docker run -v $(pwd):/codepath -i -t cmbant/cosmobox

Navigating into /codepath in the bash shell, you can then run make etc as normal, acting on your local files.

There are tags for gcc6, gcc7 and gcc8 all using ubuntu base. The devel tag is the most recent docker-gcc-build version of zbeekman's nightly gcc trunk build image (using Debian). The latest tag gives the most recent stable branch.