Skip to content

Commit 05b489e

Browse files
authoredMar 28, 2023
Update Dockerfile
This is a modified version of the original dockerfile that runs successfully on Ubuntu 20.04.
1 parent 72f83a6 commit 05b489e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎Dockerfile

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM continuumio/miniconda3:latest
2-
MAINTAINER Fangyu Wu (fangyuwu@berkeley.edu)
32

43
# System
54
RUN apt-get update && \
@@ -15,14 +14,14 @@ RUN cd ~ && \
1514
pip install tensorflow
1615

1716
# 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+
2321

2422
# SUMO dependencies
25-
RUN apt-get install -y \
23+
RUN apt-get update && \
24+
apt-get install -y \
2625
cmake \
2726
build-essential \
2827
swig \
@@ -32,24 +31,25 @@ RUN apt-get install -y \
3231
libfox-1.6-dev \
3332
libxml2-dev \
3433
libxslt1-dev \
35-
openjdk-8-jdk
34+
openjdk-11-jdk
35+
# note that openjdk-8-jdk is removed from Ubuntu20.04
3636

3737
# SUMO
3838
RUN cd ~ && \
3939
git clone --recursive https://github.com/eclipse/sumo.git && \
4040
cd sumo && \
41-
git checkout cbe5b73 && \
41+
# git checkout cbe5b73 && \
4242
mkdir build/cmake-build && \
4343
cd build/cmake-build && \
4444
cmake ../.. && \
4545
make
4646

4747
# Ray/RLlib
4848
RUN cd ~ && \
49-
pip install ray==0.6.2 \
49+
pip install ray \
5050
psutil
5151

5252
# Startup process
5353
RUN echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc && \
5454
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

0 commit comments

Comments
 (0)
Please sign in to comment.