Install slides, restart always

This commit is contained in:
christoph.schranz@salzburgresearch.at 2020-04-13 15:55:13 +02:00
parent ecb99b8de6
commit 6a9ff52bea
3 changed files with 45 additions and 0 deletions

38
Deployment-notes.md Normal file
View File

@ -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.

6
show-local.sh Normal file
View File

@ -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

View File

@ -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