GSS-Cogs / gss-data-docs

Documentation for GSS data project
0 stars 0 forks source link

JupyterHub: how to upgrade user notebook containers. #6

Open ajtucker opened 5 years ago

ajtucker commented 5 years ago

We use a custom notebook container, based on the cloudfluff/databaker container in order to bring in all the tools we use to run the notebooks in Jenkins.

We need to find a good way to upgrade these containers.

ajtucker commented 5 years ago

Tested an upgrade after some changes to gss-utils.

Firstly the cloudfluff/databaker container needs to be updated. There's an automated build on hub.docker.com set off by any pushes to github.

Next, needed to docker-compose build --pull in the jupyterhub directory to rebuild the gssnotebook container.

Then for each user we need to get them to stop their currently running container, if any, and docker rm jupyter-{user} the old container, so that spawning a new notebook server will use the updated container.