Customize the Hub Docker Image
We use a customized JupyterHub docker image so we can install extra packages such as authenticators. The image is located in images/hub. It must inherit from the JupyterHub image used in the Zero to JupyterHub.
The image is build with chartpress, which also updates hub/values.yaml with the new image version. chartpress may be installed locally with pip install chartpress.
- Run
gcloud auth configure-docker us-central1-docker.pkg.devonce per machine to setup docker for authentication with the gcloud credential helper. - Modify the image in
images/huband make a git commit. - On a PC run
chartpress --push. On a Mac run,chartpress --push --builder docker-buildx --platform linux/amd64. This will build and push the hub image, and modifyhub/values.yamlappropriately. - Make a commit with the
hub/values.yamlfile, so the new hub image name and tag are committed. - Proceed to deployment as normal.
Some of the following commands may be required to configure your environment to run the above chartpress workflow successfully:
gcloud auth login.gcloud auth configure-docker us-central1-docker.pkg.devgcloud auth application-default logingcloud auth configure-docker