-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (47 loc) Β· 1.95 KB
/
Dockerfile
File metadata and controls
57 lines (47 loc) Β· 1.95 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:20.04
# Setup python and java and base system
# ------------------------------------------------------------------------------
ENV DEBIAN_FRONTEND noninteractive
# ENV LANG=en_US.UTF-8
# General general tools
# ------------------------------------------------------------------------------
RUN apt-get update && \
apt-get install -y unzip cmake wget
# Install Python 3.8
# ------------------------------------------------------------------------------
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 --no-cache-dir install --upgrade pip \
&& rm -rf /var/lib/apt/lists/*
# Install OpenJDK-11
# ------------------------------------------------------------------------------
RUN apt-get update && \
apt-get install -y openjdk-11-jdk && \
apt-get install -y ant && \
apt-get clean;
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
# Install SUMO
# ------------------------------------------------------------------------------
RUN apt-get install -y software-properties-common && \
add-apt-repository ppa:sumo/stable && \
apt-get update && \
apt-get install -y sumo sumo-tools sumo-doc
# Install swmm
# ------------------------------------------------------------------------------
RUN wget https://www.epa.gov/sites/default/files/2020-08/swmm51015_engine.zip
RUN unzip swmm51015_engine.zip && \
mkdir swmm51015_engine/build && \
cd swmm51015_engine/build && \
cmake .. && \
cmake --build . --config Release
# Install Python libraries
# ------------------------------------------------------------------------------
COPY requirements.txt /.
RUN python3 -m pip install -r /requirements.txt
# Temporary: Install hydro privacy dependencies
COPY hydro_privacy/requirements.txt /hydro_privacy_requirements.txt
RUN python3 -m pip install -r /hydro_privacy_requirements.txt
WORKDIR /connecticity/client
# CMD jupyter lab --allow-root