Skip to content

Commit

Permalink
Adding new jupyterlab image (#378)
Browse files Browse the repository at this point in the history
## Overview
Add a jupyterlab image to be launch from jupyterhub containing mlflow,
this image can be found under
https://github.com/bird-house/pavics-jupyter-base/tree/mlflow-proxy

## Changes
**Non-breaking changes**
- Changes jupyterhub version from 1.4.0-20210506 to 4.0.2-20230816
- Add an image to the list of images that can be launched from
JupyterHub which will be used to start an instance of MLflow.

## Related Issue / Discussion

- Resolves [DAC-573](https://crim-ca.atlassian.net/browse/DAC-573) 

Notes
jupyter lab google drive extension is not supported with this image
  • Loading branch information
Nazim-crim authored Sep 22, 2023
2 parents 2045cc5 + ce5c14d commit dea8da6
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.31.3
current_version = 1.32.0
commit = True
tag = False
tag_name = {new_version}
Expand Down Expand Up @@ -30,11 +30,11 @@ search = {current_version}
replace = {new_version}

[bumpversion:file:RELEASE.txt]
search = {current_version} 2023-09-21T01:15:38Z
search = {current_version} 2023-09-22T16:09:24Z
replace = {new_version} {utcnow:%Y-%m-%dT%H:%M:%SZ}

[bumpversion:part:releaseTime]
values = 2023-09-21T01:15:38Z
values = 2023-09-22T16:09:24Z

[bumpversion:file(version):birdhouse/config/canarie-api/docker_configuration.py.template]
search = 'version': '{current_version}'
Expand Down
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)

[1.32.0](https://github.com/bird-house/birdhouse-deploy/tree/1.32.0) (2023-09-22)
------------------------------------------------------------------------------------------------------------------

## Changes

- Changes `JUPYTERHUB_VERSION` from `1.4.0-20210506` to `4.0.2-20230816`.
- This upgrade is needed to resolve a compatibility issue when using `Spawner.disable_user_config = True` in Jupyterhub
config and the new image which run `jupyter-server 2.7.3`.

- Add an image to the list of images that can be launched from JupyterHub which will be used to start an instance of MLflow.
- Note that the jupyter lab google drive extension is not supported with this image.

[1.31.3](https://github.com/bird-house/birdhouse-deploy/tree/1.31.3) (2023-09-21)
------------------------------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generic variables
override SHELL := bash
override APP_NAME := birdhouse-deploy
override APP_VERSION := 1.31.3
override APP_VERSION := 1.32.0

# utility to remove comments after value of an option variable
override clean_opt = $(shell echo "$(1)" | $(_SED) -r -e "s/[ '$'\t'']+$$//g")
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ for a full-fledged production platform.
* - releases
- | |latest-version| |commits-since|

.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/1.31.3.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/1.32.0.svg
:alt: Commits since latest release
:target: https://github.com/bird-house/birdhouse-deploy/compare/1.31.3...master
:target: https://github.com/bird-house/birdhouse-deploy/compare/1.32.0...master

.. |latest-version| image:: https://img.shields.io/badge/tag-1.31.3-blue.svg?style=flat
.. |latest-version| image:: https://img.shields.io/badge/tag-1.32.0-blue.svg?style=flat
:alt: Latest Tag
:target: https://github.com/bird-house/birdhouse-deploy/tree/1.31.3
:target: https://github.com/bird-house/birdhouse-deploy/tree/1.32.0

.. |readthedocs| image:: https://readthedocs.org/projects/birdhouse-deploy/badge/?version=latest
:alt: ReadTheDocs Build Status (latest version)
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.31.3 2023-09-21T01:15:38Z
1.32.0 2023-09-22T16:09:24Z
8 changes: 4 additions & 4 deletions birdhouse/config/canarie-api/docker_configuration.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ SERVICES = {
# NOTE:
# Below version and release time auto-managed by 'make VERSION=x.y.z bump'.
# Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'.
'version': '1.31.3',
'releaseTime': '2023-09-21T01:15:38Z',
'version': '1.32.0',
'releaseTime': '2023-09-22T16:09:24Z',
'institution': 'Ouranos',
'researchSubject': 'Climatology',
'supportEmail': '${SUPPORT_EMAIL}',
Expand Down Expand Up @@ -142,8 +142,8 @@ PLATFORMS = {
# NOTE:
# Below version and release time auto-managed by 'make VERSION=x.y.z bump'.
# Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'.
'version': '1.31.3',
'releaseTime': '2023-09-21T01:15:38Z',
'version': '1.32.0',
'releaseTime': '2023-09-22T16:09:24Z',
'institution': 'Ouranos',
'researchSubject': 'Climatology',
'supportEmail': '${SUPPORT_EMAIL}',
Expand Down
2 changes: 1 addition & 1 deletion birdhouse/config/jupyterhub/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# are applied and must be added to the list of DELAYED_EVAL.

export JUPYTERHUB_DOCKER=pavics/jupyterhub
export JUPYTERHUB_VERSION=1.4.0-20210506
export JUPYTERHUB_VERSION=4.0.2-20230816

# Jupyter single-user server images, can be overriden in env.local to have a space separated list of multiple images
export DOCKER_NOTEBOOK_IMAGES="pavics/workflow-tests:230601"
Expand Down
2 changes: 2 additions & 0 deletions birdhouse/config/jupyterhub/docker-compose-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ services:
# the Hub and the rest of the stack are on network 'default'
- default
- jupyterhub_network
# ensure the deployment does not fail when upgrading Jupyterhub version
command: bash -c "jupyterhub upgrade-db && jupyterhub"
restart: always
logging: *default-logging

Expand Down
7 changes: 5 additions & 2 deletions birdhouse/env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ export GEOSERVER_ADMIN_PASSWORD=geoserverpass
# Jupyter single-user server images
#export DOCKER_NOTEBOOK_IMAGES="pavics/workflow-tests:210216 \
# pavics/crim-jupyter-eo:0.3.0 \
# pavics/crim-jupyter-nlp:0.4.0"
# pavics/crim-jupyter-nlp:0.4.0 \
# birdhouse/pavics-jupyter-base:mlflow-proxy"

# Name of the images displayed on the JupyterHub image selection page
# The name order must correspond to the order of the DOCKER_NOTEBOOK_IMAGES variable,
Expand All @@ -252,14 +253,16 @@ export GEOSERVER_ADMIN_PASSWORD=geoserverpass
# excluded when mounting the corresponding directory.
#export JUPYTERHUB_IMAGE_SELECTION_NAMES="pavics \
# eo-crim:0.3.0 \
# nlp-crim"
# nlp-crim \
# mlflow-crim"

# allow jupyterhub user selection of which notebook image to run
# see https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
#export ENABLE_JUPYTERHUB_MULTI_NOTEBOOKS="
#c.DockerSpawner.image_whitelist = {os.environ['JUPYTERHUB_IMAGE_SELECTION_NAMES'].split()[0]: os.environ['DOCKER_NOTEBOOK_IMAGES'].split()[0],
# os.environ['JUPYTERHUB_IMAGE_SELECTION_NAMES'].split()[1]: os.environ['DOCKER_NOTEBOOK_IMAGES'].split()[1],
# os.environ['JUPYTERHUB_IMAGE_SELECTION_NAMES'].split()[2]: os.environ['DOCKER_NOTEBOOK_IMAGES'].split()[2],
# os.environ['JUPYTERHUB_IMAGE_SELECTION_NAMES'].split()[3]: os.environ['DOCKER_NOTEBOOK_IMAGES'].split()[3],
# 'jupyter/scipy-notebook': 'jupyter/scipy-notebook',
# 'jupyter/r-notebook': 'jupyter/r-notebook',
# 'jupyter/tensorflow-notebook': 'jupyter/tensorflow-notebook',
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
# built documents.
#
# The short X.Y version.
version = '1.31.3'
version = '1.32.0'
# The full version, including alpha/beta/rc tags.
release = '1.31.3'
release = '1.32.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit dea8da6

Please sign in to comment.