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.
- Change
your_username
(line 8 ofDockerfile
) to your username (i.e. the output ofecho "$USER"
) - Build the image with
docker build - < Dockerfile -t docker-sumo
- 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
-
Execute
sumo
orsumo-gui
as usual. -
Prepare your own
Dockerfile
with your username (i.e. the output ofecho "$USER"
):
FROM ylassoued/sumo-py-osgeoindex
RUN adduser your_username --disabled-password
- Build the image with
docker build - < Dockerfile -t docker-sumo
- 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
- Execute
sumo
orsumo-gui
as usual.