-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a Dockerfile and instructions to run the notebooks using it.
The existing installation instructions for building Gen locally are complex (and contain some errors). I anticipate that users will face difficulty getting those instructions to work on their machien so a Dockerized system should be easier for users who just need a "Quick Installation". In the next commit I will populate the "Advanced Installation" section with a documentation of the steps taken in the Dockerfile that address some issues with the current documentation.
- Loading branch information
Feras A Saad
committed
Jan 21, 2019
1 parent
8b99c16
commit b7e6b88
Showing
4 changed files
with
56 additions
and
1 deletion.
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 @@ | ||
**/.git |
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 @@ | ||
**/.ipynb_checkpoints |
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,32 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER MIT Probabilistic Computing Project | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -qq -y \ | ||
hdf5-tools \ | ||
python3-pip \ | ||
wget | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install jupyter matplotlib tensorflow | ||
|
||
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.3-linux-x86_64.tar.gz | ||
RUN tar -xzv < julia-1.0.3-linux-x86_64.tar.gz | ||
RUN ln -s /julia-1.0.3/bin/julia /usr/bin/julia | ||
|
||
ADD . /gen-examples | ||
ENV JULIA_PROJECT=/gen-examples | ||
|
||
RUN JUPYTER=$(which jupyter) julia -e 'using Pkg; Pkg.build("IJulia")' | ||
RUN julia -e 'using Pkg; ENV["PYTHON"] = "/usr/bin/python3"; Pkg.build("PyCall")' | ||
RUN julia -e 'using Pkg; Pkg.add("PyPlot")' | ||
|
||
WORKDIR /gen-examples | ||
|
||
ENTRYPOINT jupyter notebook \ | ||
--ip='0.0.0.0' \ | ||
--port=8080 \ | ||
--no-browser \ | ||
--NotebookApp.token= \ | ||
--allow-root \ | ||
--NotebookApp.iopub_data_rate_limit=-1 |
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