Commit 5bbf9428 authored by Póra Krisztián's avatar Póra Krisztián
Browse files

Merge branch 'dev' into 'main'

v0.2

See merge request !1
parents 3926ab18 8fb746de
Pipeline #12270 failed with stage
in 3 minutes and 47 seconds
......@@ -20,7 +20,7 @@ Since this reference architecture consists of just a single virtual machine and
#cloud-config
runcmd:
- docker run -d --name jupyterlab --network=host --privileged --restart=always -e JUPYTER_PASSWORD='sztakijupyterlabgpu' --gpus all git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-gpu
- docker run -d --name jupyterlab --network=host --privileged --restart=always -e JUPYTER_PASSWORD='sztakijupyterlabgpu' --gpus all git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-gpu:v0.2
```
- If you wish to work without GPU resources (CPU only), please omit the `--gpus all` part and replace the image `jupyterlab-gpu` with `jupyterlab-cpu` at the end of the docker run command.
- By default, the password for accessing JupyterLab is set to `sztakijupyterlabgpu`. You can change the password by editing the value of the `JUPYTER_PASSWORD` variable in the docker run command.
......
FROM python:3.9.10-buster
RUN pip install jupyterlab==3.2.8
RUN pip install jupyterlab==3.4.3
ENV JUPYTER_PASSWORD=sztakijupyterlabgpu
ENV JUPYTER_PASSWORD=admin
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
......
......@@ -22,9 +22,9 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
rm get-pip.py
RUN pip install jupyterlab==3.2.8
RUN pip install jupyterlab==3.4.3
ENV JUPYTER_PASSWORD=admin
ENV JUPYTER_PASSWORD=sztakijupyterlabgpu
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
......
......@@ -4,8 +4,9 @@ set -e
CONFIG_DIR=/var/lib/jupyter/
if [[ ! -f "$CONFIG_DIR/jupyter_lab_config.py" ]]; then
mkdir -p $CONFIG_DIR
export JUPYTER_PASSWORD_HASH=$(python -c "from notebook.auth import passwd; print(passwd('$JUPYTER_PASSWORD', 'sha1'))")
echo "c.ServerApp.password = '$JUPYTER_PASSWORD_HASH'" > $CONFIG_DIR/jupyter_lab_config.py
export JUPYTER_PASSWORD_HASH=$(python -c "from jupyter_server.auth import passwd; print(passwd('$JUPYTER_PASSWORD', 'sha1'))")
echo "c.ServerApp.password = '$JUPYTER_PASSWORD_HASH'" >> $CONFIG_DIR/jupyter_lab_config.py
echo "c.ServerApp.terminado_settings = {'shell_command': ['/bin/bash']}" >> $CONFIG_DIR/jupyter_lab_config.py
fi
set -- jupyter lab "$@"
......
docs/pics/jupyterlab-cloud-init.png

42.6 KB | W: | H:

docs/pics/jupyterlab-cloud-init.png

44.7 KB | W: | H:

docs/pics/jupyterlab-cloud-init.png
docs/pics/jupyterlab-cloud-init.png
docs/pics/jupyterlab-cloud-init.png
docs/pics/jupyterlab-cloud-init.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -7,7 +7,7 @@
restart: yes
privileged: yes
restart_policy: always
image: git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-cpu:v0.1
image: git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-cpu:v0.2
pull: yes
env:
JUPYTER_PASSWORD: "{{ jupyterPassword }}"
......@@ -22,7 +22,7 @@
restart: yes
privileged: yes
restart_policy: always
image: git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-gpu:v0.1
image: git.sztaki.hu:5050/science-cloud/reference-architectures/jupyterlab/jupyterlab-gpu:v0.2
pull: yes
device_requests:
- driver: nvidia
......
Supports Markdown
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