Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone cannot be set correctly #74

Open
mondsen opened this issue Dec 22, 2022 · 5 comments
Open

Timezone cannot be set correctly #74

mondsen opened this issue Dec 22, 2022 · 5 comments

Comments

@mondsen
Copy link

mondsen commented Dec 22, 2022

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
Copy link
Owner

Added tzdata via 9afb003

@sethforprivacy
Copy link
Owner

@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
Copy link
Author

mondsen commented Dec 22, 2022

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
Copy link
Author

mondsen commented Jan 3, 2023

@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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants