From 859049ef999fd1ae54c7897a9481418c31377e4e Mon Sep 17 00:00:00 2001 From: Simon Li Date: Fri, 27 Sep 2019 19:31:15 +0100 Subject: [PATCH] Patch jupyter-server-proxy to connect 127.0.0.1 instead of localhost There may be a discrepency between the interface vncserver listens on (127.0.0.1) and the interface jupyter-server-proxy connects to (localhost) --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index fccdb13..10886a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,10 @@ RUN /opt/conda/bin/pip install https://github.com/manics/jupyter-server-proxy/ar RUN conda install -y -q -c manics/label/testing websockify ADD jupyter_notebook_config.py /home/jovyan/.jupyter/jupyter_notebook_config.py +# There may be a discrepency between the interface vncserver listens on +# (127.0.0.1) and the interface jupyter-server-proxy connects to (localhost) +# https://bugzilla.redhat.com/show_bug.cgi?id=895582 +RUN sed -i.bak s/localhost/127.0.0.1/g /opt/conda/lib/python3.7/site-packages/jupyter_server_proxy/handlers.py # Both these should work: # http://localhost:5901/vnc.html