π§ Sumo dockerπ¦
A modular component of the internal project ecosystem
This documentation provides structure, setup, and integration details for the repository.
π Project Overview¶
This project simplifies deployment of the SUMO (Simulation of Urban MObility) traffic simulator in any environment by using Docker. It provides a reproducible, containerized environment for simulations, removing the need for manual installations and configuration.
ποΈ Repository Purpose¶
This repository contains everything needed to build and run SUMO in a Docker container, with scripts to install dependencies, fetch the latest SUMO sources, and launch an interactive shell ready for simulation tasks.
βοΈ Setup & Installation¶
π Requirements¶
- Linux machine (tested on Ubuntu/Debian)
makeutility- Docker and Docker Compose
π¦ Setup Steps¶
1οΈβ£ Clone this repository:
git clone https://github.com/sanevec/sumo_docker
cd sumo_docker
2οΈβ£ Create your `` file:
cp .env.example .env
Edit .env and set the desired variables.
3οΈβ£ Install Docker (if needed):
make docker-install
Or follow the official guide.
4οΈβ£ Start the Docker container:
make up
π§© Structure & Components¶
| Path | Description |
|---|---|
.env.example |
Example environment variables file |
Makefile |
Helper commands for setup and usage |
docker/ |
Docker build context with custom SUMO |
π Configuration¶
Edit the .env file to configure parameters for the container. Example:
VERSION=1.0.0
PROJECT_NAME=sumo_alpine
GIT_REMOTE_URL=github.com/sanevec/sumo_snvc
GIT_TAG=v1.23.1
GH_USERNAME=yourusername
GH_PAT=your github personal access token with read permissions
π Usage¶
βΆοΈ How to run the container and use SUMO.
β Run an interactive shell in the container:¶
make shell
You can then run SUMO tools from inside the container:
sumo-gui
sumo
netedit
π§ͺ Testing & Validation¶
You can validate the setup by running a basic SUMO command in the container:
sumo --version
or check that sumo-gui launches without errors.
π Example Results¶
Once running, SUMO and its tools should be fully operational in the container. Example:
SUMO version 1.19.0
Build features: β¦
β FAQ¶
-
Q: Why does
sumo docker-installfail?\ A: Ensure you are running on Ubuntu/Debian and havesudoprivileges. Alternatively, follow the Docker official installation guide. -
Q: Can I use a specific version of SUMO?\ A: Yes, edit the
.envfile and setSUMO_VERSIONaccordingly before runningmake git.
π οΈ Troubleshooting¶
-
If
sumo-guifails to start inside the container: -
Check that X11 forwarding is correctly configured.
-
Use
xhost +local:on your host to allow Docker to access your display. -
If the SUMO repository is empty:
-
Delete
docker/custom_sumoand re-runmake git. -
If
Make: Command not found: -
Run
sudo apt install -y build-essential
π Notes & References¶
-
π Related resources:
-
π Documentation: