-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from UVAdMIST/develop
Develop
- Loading branch information
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters