dragonfly-science / docker.dragonfly.co.nz

Dragonfly's base docker images
MIT License
3 stars 1 forks source link

Discrepancy when using date for tag #4

Open Philipp-Neubauer opened 4 years ago

Philipp-Neubauer commented 4 years ago

The date is taken as the system time and used for the tag - but since NZ is a day ahead of the apparatchik most of the time, I guess, it throws an error since the date is hard-coded in the dockerfiles.

See e.g., https://gorbachev.io/#/job/docker/28192

edwardabraham commented 4 years ago

It looks like the problem is that the Pacific/Auckland time zone is no longer being set correctly (Step 6 doesn't seem to have been applied)?

Step 6/15 : RUN echo "Pacific/Auckland" > /etc/timezone
10:25:52.887 ---> Running in 569061b4b4ca
10:25:52.950Removing intermediate container 569061b4b4ca
10:25:53.684 ---> 8701f44135e9
10:25:53.684Step 7/15 : RUN dpkg-reconfigure -f noninteractive tzdata
10:25:53.684 ---> Running in 04340de31f42
10:25:53.737
10:25:54.156Current default time zone: 'Etc/UTC'
10:25:54.156Local time is now:      Tue Jul 21 22:25:54 UTC 2020.
10:25:54.158Universal Time is now:  Tue Jul 21 22:25:54 UTC 2020.