Skip to content

ylassoued/docker-sumo-full

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

docker-sumo-full

Docker container for the SUMO traffic simulator, including Python 2.7, GDAL, PROJ, and OSGeo Spatial Index 1.8.5.

This container was borrowed from https://github.com/bogaotory/docker-sumo.

This image uses Ubuntu Trusty and contains version 0.31.0 of SUMO.

sumo, sumo-gui and TraCI are all accessible with this image.

proj and gdal are included in this image for users of OpenStreetMap.

Usage (Option 1) - Build from Ubuntu image (Recommended)

  1. Change your_username (line 8 of Dockerfile) to your username (i.e. the output of echo "$USER")
  2. Build the image with docker build - < Dockerfile -t docker-sumo
  3. Run the image with
docker run -it --rm\
    --env="DISPLAY" \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --user=$USER \
    docker-sumo \
    bash
  1. Execute sumo or sumo-gui as usual.

  2. Prepare your own Dockerfile with your username (i.e. the output of echo "$USER"):

FROM ylassoued/sumo-py-osgeoindex

RUN adduser your_username --disabled-password
  1. Build the image with docker build - < Dockerfile -t docker-sumo
  2. Run the image with
docker run -it --rm\
    --env="DISPLAY" \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --user=$USER \
    docker-sumo \
    bash
  1. Execute sumo or sumo-gui as usual.

About

Sumo traffic simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published