Containerised SUMO. Use sumo, sumo-gui and TraCI with Docker. :whale: :car:
Containerised SUMO.
SUMO (Simulation of Urban MObility), an open-source traffic simulation software, is dockeried by the Dockerfile
included in this repository. This image uses Ubuntu version 16.04 and contains version 0.31.0 of SUMO.
sumo
, sumo-gui
and TraCI
are all accessible with this image.
See sumo-gui
in action:
See TraCI
in action:
your_username
(line 8 of Dockerfile
) to your username (i.e. the output of echo "$USER"
)docker build - < Dockerfile -t docker-sumo
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
sumo
or sumo-gui
as usual.Dockerfile
with your username (i.e. the output of echo "$USER"
):FROM bogaotory/sumo:0.30.0
RUN adduser your_username --disabled-password
docker build - < Dockerfile -t docker-sumo
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
sumo
or sumo-gui
as usual.proj and gdal are required for users of OpenStreetMap.
I referenced a couple of past attempts of dockerising SUMO:
TraCI4J
which is not necessarily useful for beginners of SUMO.Neither gives a straightforward containerised SUMO solution.
The method for GUI access is borrowed from this post.