Open ltalirz opened 6 years ago
an update on this old issue:
jupyterhub_config.py
to pass environment variables to the container like so:
c.DockerSpawner.environment = {"SYSTEM_USER_UID":"1234"}
Re 2.: I think this actually doesn't cover this use case, since on that level the variables are static. However, I already figured out some time ago how to pass specific variables to the environment via a pre-spawn hook: https://github.com/materialscloud-org/openstack-ansible/blob/30443cd8b8335126e0a1aeed89be48786c35b2f6/static/aiidalab/aiidalab_config.py#L51-L60
The remaining problem: I'll need to somehow figure out how to
user
object.
https://github.com/ltalirz/mc-docker-stack/blob/37437fd16de6a433e55cfd51239b6d8fd4d9d242/start-singleuser.sh#L50-L55
One could use the
JUPYTERHUB_USER
environment variable (holds user email). Perhaps one needs to add more environment variables for user name & affiliation? We just need to forward this information from the auth server.This is important as soon as any of the data generated in jupyter are to be exported.