-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (31 loc) · 1 KB
/
Dockerfile
File metadata and controls
37 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This is a Dockerfile for building a Docker image with SUMO 1.19.0 and RouteRL 1.0.0
# It is a template for building an encapsulated environment for running experiments with RouteRL.
FROM --platform=linux/amd64 python:3.12
# Needed tools for building
RUN apt-get update && apt-get install -y \
wget \
cmake \
g++ \
libxerces-c-dev \
libproj-dev \
libfox-1.6-dev \
libgdal-dev \
python3 \
python3-pip \
python3-dev \
python3-setuptools \
&& rm -rf /var/lib/apt/lists/*
# Download and build SUMO 1.19.0
RUN wget https://sumo.dlr.de/releases/1.19.0/sumo-src-1.19.0.tar.gz && \
tar -xzf sumo-src-1.19.0.tar.gz && \
rm sumo-src-1.19.0.tar.gz
RUN cmake -B build sumo-1.19.0/ && \
cmake --build build -j$(nproc)
RUN cmake --install build
# Set SUMO_HOME
ENV SUMO_HOME=/usr/local/share/sumo
ENV PATH="${PATH}:/usr/local/bin"
# Check SUMO version
RUN echo "$(sumo --version)"
# Install RouteRL (installs with all dependencies)
RUN python3 -m pip install routerl==1.0.0