-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/dpinney/omf
- Loading branch information
Showing
37 changed files
with
4,042 additions
and
1,044 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
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,28 @@ | ||
# A Dockerfile for running the Open Modeling Framework | ||
FROM ubuntu:18.04 | ||
|
||
# Install and setup OMF reqs | ||
RUN apt-get -y update && apt-get install -y git python3 sudo | ||
RUN cd home; git clone --depth 1 https://github.com/dpinney/omf | ||
RUN cd /home/omf; python3 install.py | ||
|
||
# Run the OMF | ||
EXPOSE 5000 | ||
WORKDIR /home/omf/omf | ||
ENTRYPOINT ["python3"] | ||
CMD ["web.py"] | ||
|
||
# INSTRUCTIONS | ||
# ============ | ||
# - Navigate to this directory | ||
# - Build image with command `docker build -f newomf.dockerfile -t omfim .` | ||
# - Run image in background with `docker run -d -p 5000:5000 --name omfcon omfim` | ||
# - View at http://127.0.0.1:5000 | ||
# - Stop it with `docker stop omfcon` and remove it with `docker rm omfcon`. | ||
# - Delete the images with `docker rmi omfim` | ||
# | ||
# FEATURE IDEAS | ||
# ============= | ||
# - Switch to install.py instead of manual apt commands | ||
# - Python "build" script to create, start and exit the image | ||
# - Modify Dockerfile to use a network drive containing the omf repo instead of doing a fresh git pull |
File renamed without changes.
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
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
Oops, something went wrong.