File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
FROM continuumio/miniconda3:latest
2
- MAINTAINER Fangyu Wu (fangyuwu@berkeley.edu)
3
2
4
3
# System
5
4
RUN apt-get update && \
@@ -15,14 +14,14 @@ RUN cd ~ && \
15
14
pip install tensorflow
16
15
17
16
# Flow
18
- RUN cd ~ && \
19
- git clone https://github.com/flow-project/flow.git && \
20
- cd flow && \
21
- git checkout v0.3.0 && \
22
- pip install -e .
17
+ COPY . /flow
18
+ WORKDIR /flow
19
+ RUN pip install -e .
20
+
23
21
24
22
# SUMO dependencies
25
- RUN apt-get install -y \
23
+ RUN apt-get update && \
24
+ apt-get install -y \
26
25
cmake \
27
26
build-essential \
28
27
swig \
@@ -32,24 +31,25 @@ RUN apt-get install -y \
32
31
libfox-1.6-dev \
33
32
libxml2-dev \
34
33
libxslt1-dev \
35
- openjdk-8-jdk
34
+ openjdk-11-jdk
35
+ # note that openjdk-8-jdk is removed from Ubuntu20.04
36
36
37
37
# SUMO
38
38
RUN cd ~ && \
39
39
git clone --recursive https://github.com/eclipse/sumo.git && \
40
40
cd sumo && \
41
- git checkout cbe5b73 && \
41
+ # git checkout cbe5b73 && \
42
42
mkdir build/cmake-build && \
43
43
cd build/cmake-build && \
44
44
cmake ../.. && \
45
45
make
46
46
47
47
# Ray/RLlib
48
48
RUN cd ~ && \
49
- pip install ray==0.6.2 \
49
+ pip install ray \
50
50
psutil
51
51
52
52
# Startup process
53
53
RUN echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc && \
54
54
echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc && \
55
- echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc
55
+ echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc
You can’t perform that action at this time.
0 commit comments