sethforprivacy / simple-monerod-docker

A simple and straightforward Dockerized monerod built from source and exposing standard ports.
https://sethforprivacy.com/guides/run-a-monero-node/
MIT License
98 stars 19 forks source link

Timezone cannot be set correctly #74

Open mondsen opened 1 year ago

mondsen commented 1 year ago

I am trying to set the timezone for the log outputs of monerod correctly but it is not working. Mapping /etc/localtime via a volume does not work and you have not added the TZ package in your dockerfile. Maybe you can add "RUN apk add --no-cache tzdata" so that we can set something like ENV TZ=Europe/Copenhagen?

sethforprivacy commented 1 year ago

Added tzdata via https://github.com/sethforprivacy/simple-monerod-docker/commit/9afb003ba707582383cd7441eedd3c1b23d164ef

sethforprivacy commented 1 year ago

@mondsen please test and report back once the new image is finished building and has been pushed:

https://github.com/sethforprivacy/simple-monerod-docker/actions/runs/3758381820/jobs/6386659088

mondsen commented 1 year ago

I just tested the new image but the TZ can not be changed. I have not found a definite answer yet but maybe after adding the package tzdata it is also mandatory to define a default ENV in the Dockerfile to be able to overwrite it?

mondsen commented 1 year ago

@sethforprivacy Hi again, can you try and set e.g. ENV TZ=Europe/Copenhagen to the Dockerfile? I hope this way I am able to overwrite it with my local variable.

sethforprivacy commented 1 year ago

@mondsen will do some testing on this as I have time.