forked from bogaotory/docker-sumo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 803 Bytes
/
Dockerfile
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
FROM ubuntu:16.04
MAINTAINER Bo Gao ([email protected])
LABEL Description="Dockerised Simulation of Urban MObility(SUMO)"
ENV SUMO_VERSION 0.31.0
ENV SUMO_HOME /opt/sumo
ENV SUMO_USER your_username
# Install system dependencies.
RUN apt-get update && apt-get -qq install \
wget \
g++ \
make \
libxerces-c-dev \
libfox-1.6-0 libfox-1.6-dev \
python2.7
# Download and extract source code
RUN wget http://downloads.sourceforge.net/project/sumo/sumo/version%20$SUMO_VERSION/sumo-src-$SUMO_VERSION.tar.gz
RUN tar xzf sumo-src-$SUMO_VERSION.tar.gz && \
mv sumo-$SUMO_VERSION $SUMO_HOME && \
rm sumo-src-$SUMO_VERSION.tar.gz
# Configure and build from source.
RUN cd $SUMO_HOME && ./configure && make install
RUN adduser $SUMO_USER --disabled-password
# CMD sumo-gui