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
add timezone for docker install #307
Conversation
I reverted this change because it fails the build pipeline for ARM. My assumption is that the alpine:latest image is an amd64 image and it cannot run Failed pipeline: https://github.com/binwiederhier/ntfy/runs/6718645921?check_suite_focus=true |
hmm that's odd. I am using buildx for multi arch builds and my image also has tzdata install with no issues but I am not using goreleaser. just direct docker buildx action. |
Goreleaser can do buildx apparently. https://goreleaser.com/customization/docker/ And you can set the platform flag too i think. |
You may be able to do something like this: https://github.com/zinclabs/zinc/blob/main/Dockerfile#L6 |
Any progress on this - using Delay send with absolute time not simple in Docker as it is using UTC and I am not in UTC!! Delay with offset is fine but would be nice to be able to use absolute time also. |
I was really confused because the docs were not reverted. |
I have the following already set ... but to be honest cannot recall whether this did the trick or not but if I issue date in the console I get this so I think not!! Fri Sep 8 18:46:27 UTC 2023 environment: |
You can check for the correct time zone and there are 2 issues, both the machine running the container as well as the container have to be on the correct time zone. I believe you can manage it for your machine but for the docker instance here are my instructions: docker-compose.yml
Dockerfile
This is what I used, change the time zone to yours as needed. I also had to use tini which reaps zombie processes that were accumulated by 'ssl_client' process of ntfy. Also note that you can set the time zone in docker-compose as an environment variable OR in the Dockerfile. Dockerfile is easier if you don't plan on changing the time zone often To check if the time zone of the container is correct you can do the following:
|
Thanks for that @Ishrathh - I did your docker build example with the exception of the tini which did not seem to work for me!! |
Your welcome @egooner, if you would like me to assist you with the setup of tzdata without the tini part let me know :D
@binwiederhier Would be awesome if we can get the time zone released on arch's that support it |
How are we supposed to do that? Different docker files just because of this? That's seems little ridiculous. |
Not sure how your build process works @binwiederhier (not very good on docker build etc) but I spotted this on conditional docker build not sure if it helps. Docker File Conditions |
add support for timezone