-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·55 lines (48 loc) · 1.12 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM continuumio/miniconda3:latest
MAINTAINER Fangyu Wu ([email protected])
# System
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y \
vim \
apt-utils && \
pip install -U pip
# Flow dependencies
RUN cd ~ && \
conda install opencv && \
pip install tensorflow
# Flow
RUN cd ~ && \
git clone https://github.com/flow-project/flow.git && \
cd flow && \
git checkout v0.3.0 && \
pip install -e .
# SUMO dependencies
RUN apt-get install -y \
cmake \
build-essential \
swig \
libgdal-dev \
libxerces-c-dev \
libproj-dev \
libfox-1.6-dev \
libxml2-dev \
libxslt1-dev \
openjdk-8-jdk
# SUMO
RUN cd ~ && \
git clone --recursive https://github.com/eclipse/sumo.git && \
cd sumo && \
git checkout cbe5b73 && \
mkdir build/cmake-build && \
cd build/cmake-build && \
cmake ../.. && \
make
# Ray/RLlib
RUN cd ~ && \
pip install ray==0.6.2 \
psutil
# Startup process
RUN echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc && \
echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc && \
echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc