Skip to content
Snippets Groups Projects
Commit 859049ef authored by Simon Li's avatar Simon Li
Browse files

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)
parent 22ca5014
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,10 @@ RUN /opt/conda/bin/pip install https://github.com/manics/jupyter-server-proxy/ar ...@@ -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 RUN conda install -y -q -c manics/label/testing websockify
ADD jupyter_notebook_config.py /home/jovyan/.jupyter/jupyter_notebook_config.py 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: # Both these should work:
# http://localhost:5901/vnc.html # http://localhost:5901/vnc.html
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment