bitnami / vms

Bitnami VMs
https://bitnami.com
Other
200 stars 44 forks source link

[JupyterHub] Container timezone #1454

Closed KoenWindey closed 2 months ago

KoenWindey commented 3 months ago

Describe your suggestion as much as you can

Hi,

Firstly, thanks for offering all these handy VMs. I have recently started to use JupyterLab and am now looking to deploy Jupyter hub for our small team. So far so good, I even managed to get things going behind our reverse proxy.

I've been able to set the timezone on the VM OS (dpkg-reconfigure tzdata did the trick). However, I cannot figure out how to get the timezone correct in the docker containers running the single-user servers. They seem to be in UTC and I cannot change it. I don't know sudo password for user jovyan (if it can even do sudo), nor do I know how to specify the parameter in the docker file -where is the docker file anyway?

It would be good if the docker containers adopted the VM timezone, or at least have it as an option?

Tnx Koen

jotamartos commented 3 months ago

Hi @KoenWindey,

If you are launching a container, you can set the TZ env var to specify the timezone inside the container

https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/1387

However, if you still run into this issue after that, I suggest you take a look at other Jupyterhub and timezone issues or review the app's documentation to get more information about how to set the timezone to use.

github-actions[bot] commented 3 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 2 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.