Skip to content

maptic/matsim-docker

Repository files navigation

MATSim Docker image

Docker Publish Java CI with Maven

A docker image of the MATSim open-source framework:

  • Container calls the main method of the DockerEntrypoint class when started.
  • Provide input files with config.xml and save output files from the container using volumes.
  • Pass additional arguments to MATSim using commands that are following the run statement.

Getting started

Run MATSim inside a container:

docker run \
    -v <host/path/to/input>:/opt/matsim/data/input:ro \
    -v <host/path/to/output>:/opt/matsim/data/output \
    maptic/matsim:latest <optional MATSIM-ARGS>

To pull the recent version of the image, refer to the latest tag.

Local build and development

Set the input and output path in the docker-compose.yml file, then run:

docker-compose build
docker-compose up

References