Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 21 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Running Docker Container for Jupyter Notebooks

### Build Docker Container

```bash
sudo docker docker-compose -f docker-compose.yml build
```

### Run Docker Container

```bash
sudo docker-compose -f docker-compose.yml up
```

### Open Jupyter Notebooks in Browser
Grab the URL from the output of the previous up command

Example:
```bash
http://127.0.0.1:8888/?token=154a634851c1a1754e1e37a6d2466a289325af6986b1d868
```
8 changes: 8 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'

services:
grokking-ml46:
build: ./jupyter
container_name: grokking-ml46
ports:
- "8888:8888"
28 changes: 28 additions & 0 deletions docker/jupyter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM continuumio/miniconda3:4.9.2

RUN apt-get --allow-releaseinfo-change-suite update && apt-get install -y \
unzip \
git \
python3-pip \
python3-numpy \
python3-scipy \
python3-pandas \
&& apt clean

WORKDIR /opt/conda
RUN /opt/conda/bin/conda install jupyter -y --quiet \
&& /opt/conda/bin/conda install pydotplus -y --quiet \
&& /opt/conda/bin/conda install tensorflow -y --quiet \
&& mkdir /opt/notebooks

RUN pip install -U pip

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

WORKDIR /opt/notebooks

RUN git clone https://github.com/luisguiserrano/manning.git
RUN cp -R manning/Chapter_* .
RUN rm -rf manning
CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=*", "--port=8888", "--no-browser", "--allow-root"]
11 changes: 11 additions & 0 deletions docker/jupyter/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
numpy
pandas
matplotlib
turicreate
jupyter
jupyterlab
jupyterlab-server
Keras-Preprocessing
scikit-image
scikit-learn
tensorflow