Docker environment enhancements

- rearranged a Dockerfile to allow for incremental build
- switched running from root to "default new user"
- added the (easy to opt-out) configuration to use blank password
- added python-graphviz which enables DT visualization in notebooks
- added nbdime for "sensible notebook comparison"
- added custom command to "nbdiff" a notebook with its checkpointed version
- added simple README.md
This commit is contained in:
ziembla
2017-11-27 17:16:51 +01:00
parent ca0f70a6b9
commit 4fa5beb93a
5 changed files with 117 additions and 17 deletions

View File

@@ -1,9 +1,11 @@
version: "3"
services:
handson-ml:
build:
build:
context: ../
dockerfile: ./docker/Dockerfile
args:
- username=devel
container_name: handson-ml
image: handson-ml
logging:
@@ -13,5 +15,5 @@ services:
ports:
- "8888:8888"
volumes:
- ../:/usr/src/project
command: /opt/conda/bin/jupyter notebook --ip='*' --port=8888 --no-browser --allow-root
- ../:/home/devel/handson-ml
command: /opt/conda/bin/jupyter notebook --ip='*' --port=8888 --no-browser