Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #19

Merged
merged 2 commits into from
May 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial commit Dockerfile
  • Loading branch information
jsadler2 committed May 13, 2019
commit ff2bd52abcf771f0820195b30b1be3c636253375
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:2.7-slim-stretch

RUN apt update
RUN apt install -y git gcc make wget unzip tk
RUN pip install numpy
RUN pip install git+https://github.com/UVAdMIST/swmm_mpc


RUN wget https://www.epa.gov/sites/production/files/2017-03/swmm51012_engine_2.zip
RUN mkdir swmm5
RUN unzip swmm51012_engine_2.zip -d swmm5
WORKDIR swmm5/
RUN mkdir src
RUN unzip source5_1_012.zip -d src
RUN mkdir mk
RUN unzip makefiles.zip -d mk
WORKDIR mk/
RUN mkdir gnu
RUN unzip GNU-CLE.zip -d gnu
RUN cp gnu/Makefile ../src/
WORKDIR ../src

RUN sed -i -e 's/#define DLL/\/\/#define DLL/g' swmm5.c
RUN sed -i -e 's/\/\/#define CLE/#define CLE/g' swmm5.c
RUN make
ENV PATH="/swmm5/src:${PATH}"
WORKDIR /