How to raise Notebooks locally
Introduction
When troubleshooting Notebooks, it is often necessary to be able to run them locally.
Therefore, this guide explains how to get the necessary services up and running.
Steps
First, you will need to download the Zeppelin Notebook image from the Onesait Platform repository. This can be done using the following command:
docker pull registry.onesaitplatform.com/onesaitplatform/notebook:0.10.1-6.0.0-osp-mrNext, the container will have to be created using:
docker run -p 8180:8080 -p 5005:5005 -p 5006:5006 --env ZEPPELIN_MEM="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" --env ZEPPELIN_INTP_MEM="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" --add-host controlpanelservice:{iplocal} --add-host keycloak:{iplocal} idImagenThe iplocal parameter will have to be replaced with the IP of the machine you are working from, and idImage with the identifier of the previously downloaded image.
Next, you will need to have nginx configured with the following entry:
location /controlpanel/notebooks/app/ws { # For websocket support
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8180/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade websocket;
proxy_set_header Connection upgrade;
proxy_read_timeout 86400;
}Once this is done, the only thing left to do is to access the Control Panel from the port defined in nginx. To do this, if you have the following configuration:
server {
listen 8087 default_server;
listen [::]:8087 default_server;
...The access URL would be as follows:
http://localhost:8087/controlpanel