This will build a docker container for CORSIKA
To build you execute docker build
like this:
docker build --build-arg CORSIKA_PASSWORD=the_password_you_received -t <useful container name e.g: corsika-iceact:75600> .
with the config given in config.h
. The install directory is /opt/corsika-<version>/run
It was created with the following options:
options: TIMEAUTO VOLUMEDET QGSJETII URQMD
selection: IACTDIR CERENKOV VIEWCONE BERNLOHRDIR IACT ATMEXT
Currently there are two directories in this repository, containing Dockerfiles for corsika 7.41 and 7.56 each.
You can get an interactive shell in the docker container with
docker run -it <useful container name you chose before> bash
Add the --rm
option to automatically remove the container once it has stopped.
To access your host file system (e.g. for storing results and accessing input cards), you can mount volumes using the -v
docker option:
docker run -v /absolute/path/to/data:/data -it <useful container name> bash
To avoid hassle with file permissions and ownership, you should create a docker image, which has the same user, user id and group id as the your user on the host system.
A Dockerfile might look like this:
FROM corsika:75600
RUN useradd --create-home --uid 1000 maxnoe
USER maxnoe