From 68964bf8f63280f0cb7355108ac1f5e1a62455c9 Mon Sep 17 00:00:00 2001 From: Stefan Proell Date: Tue, 13 Feb 2018 10:36:34 +0100 Subject: Adds a docker--compose file and an environment file for launching Jupyter Notebooks --- .env | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .env (limited to '.env') diff --git a/.env b/.env new file mode 100644 index 0000000..9de96de --- /dev/null +++ b/.env @@ -0,0 +1,28 @@ +# Define a local data directory +# Set permissions for the container: +# sudo chown -R 1000 ${LOCAL_WORKING_DIR} + +LOCAL_WORKING_DIR=/data/jupyter/notebooks + +# Generate an access token like this +# import IPython as IPython +# hash = IPython.lib.passwd("S-E-C-R-E-T") +# print(hash) +# You can use the script generate_token.py + +ACCESS_TOKEN=sha1:d4c78fe19cb5:0c8f830971d52da9d74b9985a8b87a2b80fc6e6a + +# Host port +PORT=8888 + +# Provide data sets +LOCAL_DATASETS=/data/jupyter/datasets + +# Provide local modules +LOCAL_MODULES=/home/git/python_modules + +# SSL +# Generate cert like this: +# openssl req -x509 -nodes -newkey rsa:2048 -keyout jupyter.pem -out jupyter.pem +# Copy the jupyter.pem file into the location below. +LOCAL_SSL_CERTS=/opt/ssl-certs/jupyter -- cgit v1.2.3