voila-dashboards / tljh-voila-gallery

Configuration for deploying the Voilà Gallery with The Littlest JupyterHub
BSD 3-Clause "New" or "Revised" License
82 stars 70 forks source link

Update the gallery package before building new images #50

Open jtpio opened 5 years ago

jtpio commented 5 years ago

This PR Implements the idea from https://github.com/voila-gallery/gallery/pull/37#issuecomment-506722023 (option 2) so the gallery can be updated automatically.

It also introduces the GALLERY_REPO environment variable to let the users configure where their gallery is located. The full install command for a new installation can then become:

#!/bin/bash
export GALLERY_REPO=git+https://github.com/<your-username>/gallery@master#"egg=tljh-voila-gallery&subdirectory=tljh-voila-gallery"
curl https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py \
 | sudo python3 - \
   --plugin ${GALLERY_REPO}

@yuvipanda does the JupyterHub service need to be restarted after updating the package?