Hi everyone,
I am currently trying to migrate the existing Jupyter environment which is hosted on GKE to Vertex AI workbench. For experimentation, I have written Dockerfile with some simple configurations and pushed the image to Container Registry. I also created an instance with this Docker image container but when I tried t open the jupyter notebook, it says HTTP 502 error. Can someone please advise on how can I proceed with this setup?
FROM python:3.11
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN ln -s /usr/bin/python3.11 /usr/bin/python
RUN pip install jupyter -U && pip install jupyterlab
EXPOSE 8080
RUN mkdir /root/.jupyter
COPY jupyter_notebook_config.py /root/.jupyter
ENV pwd=""
ENTRYPOINT exec jupyter-lab --ip=0.0.0.0 --port=8080 --no-browser --allow-root --ServerApp.allow_origin="*" --NotebookApp.token="$pwd" --NotebookApp.password="$pwd"
c.NotebookApp.ip = '*'
c.NotebookApp.token = ''
c.NotebookApp.password = ''
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8080
c.NotebookApp.terminado_settings = {'shell_command': ['/bin/bash']}
c.NotebookApp.allow_origin_pat = (
'(^https://8080-dot-[0-9]+-dot-devshell\.appspot\.com$)|'
'(^https://colab\.research\.google\.com$)|'
'((https?://)?[0-9a-z]+-dot-(?:us|asia|europe|northamerica|southamerica)-?[0-9a-z]+\.notebooks\.googleusercontent.com)')
c.NotebookApp.allow_remote_access = True
c.NotebookApp.disable_check_xsrf = False
I tried to run the image on my local machine, and it worked.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |