coppit / docker-xeoma

A docker container for Xeoma surveillance software
GNU General Public License v2.0
16 stars 18 forks source link

TZ variable to set correct timezone #8

Open skylord123 opened 5 years ago

skylord123 commented 5 years ago

Currently the container is set to timezone UTC which causes all of my timestamps to be wrong.

I fixed this by using the console of the container and running apt install tzdata and selecting my timezone using the prompts. It would be nice if there was just a TZ env variable that could be set instead (I have seen other containers take this approach).

CraziFuzzy commented 4 years ago

Going to agree on this one. Oddly enough, it looks like it is trying to do some sort of Time Zone setting, but it isn't working right. (My time zone in the container shows as 'America', using UST time).

CraziFuzzy commented 4 years ago

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

skylord123 commented 4 years ago

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

I wonder if it is possible to just mount the time directory on the host to the client as read-only? It's possible that may not work because tzdata isn't installed though. It may be worth trying though.

CraziFuzzy commented 4 years ago

I have simply gone into the container's shell and installed tzdata, and it was working - but it's not really a persistant fix if it isn't added into the dockerfile to do so on image build.

neurocis commented 3 years ago

Done - PR #18 also at qlustor/xeoma