From e6ca2c16f882021156f3dd71638969782872ab8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Mihalovi=C4=8D?= Date: Sat, 1 Jul 2017 17:25:02 +0200 Subject: [PATCH 1/2] Added docker support. --- README.md | 8 ++++++++ docker-compose.yml | 10 ++++++++++ dockerfile | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 docker-compose.yml create mode 100644 dockerfile diff --git a/README.md b/README.md index ded155f4..95da18d4 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,14 @@ These instructions have been tested on: - Ubuntu 16.04 - Windows 10 +## Running the course on Docker + +Run this command from terminal and copy Jupyter notebook url to browser after installation. + +``` +docker-compose up +``` + ## Running the course on Floyd with GPU support The guys at [FloydHub](www.floydhub.com) are doing an excellent job of providing a zero-install platform-as-a-service for training and deploying DL models in the cloud. Here are the steps to run the course on Floyd: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7e9b81ae --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '2' + +services: + zero_to_deep_learning: + build: + context: . + dockerfile: dockerfile + + ports: + - 8888:8888 \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 00000000..7ecbdc1b --- /dev/null +++ b/dockerfile @@ -0,0 +1,14 @@ +FROM continuumio/miniconda3:4.3.14 + +ENTRYPOINT ["/bin/bash", "-c" ] + +RUN groupadd -r course -g 1000 && useradd -u 1000 -r -g course -m -d /course -s /sbin/nologin -c "Course user" course && \ + chmod 755 /course + +RUN git clone https://github.com/Dataweekends/zero_to_deep_learning_udemy /course/zero_to_deep_learning_udemy +WORKDIR /course/zero_to_deep_learning_udemy +RUN conda env create +RUN chown -R course:course . + +USER course +CMD ["source activate ztdl && jupyter notebook --ip='*' --port=8888 --no-browser"] \ No newline at end of file From 19136d8eec2349669e9e2691669ac135860d8f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Mihalovi=C4=8D?= Date: Wed, 14 Nov 2018 09:42:41 +0100 Subject: [PATCH 2/2] Updated miniconda docker image to latest version. --- dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 7ecbdc1b..c22bb665 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,4 @@ -FROM continuumio/miniconda3:4.3.14 +FROM continuumio/miniconda3:latest ENTRYPOINT ["/bin/bash", "-c" ] @@ -11,4 +11,4 @@ RUN conda env create RUN chown -R course:course . USER course -CMD ["source activate ztdl && jupyter notebook --ip='*' --port=8888 --no-browser"] \ No newline at end of file +CMD ["source activate ztdl && jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser"] \ No newline at end of file