diff --git a/Deployment-notes.md b/Deployment-notes.md new file mode 100644 index 0000000..1f5be0e --- /dev/null +++ b/Deployment-notes.md @@ -0,0 +1,38 @@ +# Deployment Notes + +## Push image with tag to Dockerhub + +Based on [this](https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html) tutorial +with the tag `v1.0_cuda-10.1_ubuntu-18.04`: + +```bash +# on il048: +cd ~/Documents/projects/GPU-Jupyter/gpu-jupyter +git pull +bash generate_Dockerfile.sh +bash start-local -p 1234 +docker image ls +docker tag [IMAGE ID] cschranz/gpu-jupyter:v1.0_cuda-10.1_ubuntu-18.04 +docker push cschranz/gpu-jupyter:v1.0_cuda-10.1_ubuntu-18.04 +docker save cschranz/gpu-jupyter > ../gpu-jupyter_tag-v1.0_cuda-10.1_ubuntu-18.04.tar +``` + +Then, the new tag is available on [Dockerhub](https://hub.docker.com/repository/docker/cschranz/gpu-jupyter/tags). + + +## Deployment in the swarm + +The GPU-Jupyter instance for deployment, that has swarm files and changed pw is +in `/home/iotdev/Documents/projects/dtz/src/gpu-jupyter` + +```bash +# on il048: +cd /home/iotdev/Documents/projects/dtz/src/gpu-jupyter +git pull +bash generate_Dockerfile.sh +bash add-to-swarm-with-defaults.sh +``` + +Then, the service will be available with data stored in `data` +on [192.168.48.48:8848](http://192.168.48.48:8848) with our password. + diff --git a/show-local.sh b/show-local.sh new file mode 100644 index 0000000..ce24f2d --- /dev/null +++ b/show-local.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +cd $(cd -P -- "$(dirname -- "$0")" && pwd -P) + +# Export default port to make compose file valid. +export JUPYTER_PORT=8888 +docker-compose ps diff --git a/src/Dockerfile.usefulpackages b/src/Dockerfile.usefulpackages index 1fa9fbc..d79a9d6 100644 --- a/src/Dockerfile.usefulpackages +++ b/src/Dockerfile.usefulpackages @@ -37,6 +37,7 @@ RUN pip install --no-cache-dir jupyter-tabnine==1.0.2 && \ RUN fix-permissions $CONDA_DIR RUN conda install -c conda-forge jupyter_contrib_nbextensions && \ conda install -c conda-forge jupyter_nbextensions_configurator && \ + conda install -c conda-forge rise && \ jupyter nbextension enable codefolding/main RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker