DynamicDevices / ming-original

Balena.io/Docker-compose repo for a containerised #MING (Mosquitto, InfluxDB, NodeRed, Grafana) stack
33 stars 20 forks source link

9-jupyter-lab #10

Closed MatthewCroughan closed 4 years ago

MatthewCroughan commented 4 years ago

This PR adds support for Jupyter Labs.

With it comes a new environment variable that will be used to change the password Jupyter starts with, since it requires usage of the terminal on the device otherwise, which is a bit messy. Since the security of this install isn't too much of a priority yet, this is fine for now.

I've added this table to the readme, we can add future variables and organize the user-facing configuration they offer using this format in the future.


Configure via environment variables

Variable Name Value Description Default
JUPYTER_MING_PASS STRING the password Jupyter Labs will start up with mingstack

However, I do want to in the future figure this out such that we have a better way of handling this.

All notebooks are stored in /data which has its own persistent volume in docker-compose.yml.

This uses our own maintained dockerfile, since there is a lot of variability in the packaging for Jupyter and its components. There's a bit of room for improvement in that we should move to Alpine once its py3-component packages are moved from edge@testing to the latest stable so we can save some space and build time.