dmwm / CRABServer

15 stars 37 forks source link

[PyPI] Use local timezone for all images #8537

Open novicecpp opened 2 days ago

novicecpp commented 2 days ago

Current timezone of new PyPI images is UTC

We have different localtime between RPM and PyPI timezone_diff

Add one line change in Dockerfile should fix it.

And maybe also apply TZ env to docker runner https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container

belforte commented 2 days ago

curious that ever if PyPI container is in UTC, when I added %Z to date format in bash scripts, it printed correct local tima and CEST as time zone.

novicecpp commented 2 days ago

when I added %Z to date format in bash scripts, it printed correct local tima and CEST as time zone.

That is the shell runner. It run the job directly on VM host. Docker runner run the job inside docker container on VM host.