From 4157b176e4edb37e495e4c371820b59429dcbe2e Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Mon, 12 Oct 2015 09:18:39 -0400 Subject: [PATCH] Dockerfile: Add a basic jupyter notebook profile. Allow for IPs from anywhere to connect by adding this into the the jupyter notebook profile. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 50eb37415..05c76ab22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,10 +92,14 @@ RUN pip2 install --no-cache-dir mock nose requests testpath && \ pip2 uninstall -y funcsigs mock nose pbr requests six testpath && \ pip3 uninstall -y nose requests testpath +# Add a notebook profile. +RUN mkdir -p -m 700 /root/.jupyter/ && \ + echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py + VOLUME /notebooks WORKDIR /notebooks EXPOSE 8888 ENTRYPOINT ["tini", "--"] -CMD ["jupyter", "notebook", "--ip=*"] +CMD ["jupyter", "notebook"]