Git Product home page Git Product logo

docker-sumo's Introduction

docker-sumo

Join the chat at https://gitter.im/docker-sumo/Lobby

Build Status

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:

demo sumo and sumo-gui in docker

See TraCI in action:

demo TraCI and sumo-gui in docker

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.

Usage (Option 2) - Build from bogaotory/sumo:0.30.0

  1. Prepare your own Dockerfile with your username (i.e. the output of echo "$USER"):
FROM bogaotory/sumo:0.30.0

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.

Additional Dependencies

proj and gdal are required for users of OpenStreetMap.

References

I referenced a couple of past attempts of dockerising SUMO:

Neither gives a straightforward containerised SUMO solution.

The method for GUI access is borrowed from this post.

docker-sumo's People

Contributors

bogaotory avatar gitter-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.