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

Add tzdata package in Docker image, to be able to set timezone #101

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

mossroy
Copy link
Contributor

@mossroy mossroy commented Oct 18, 2022

Fixes #100

Tested only on linux/amd64 platform:

$ docker run wait4x:2.8.0-mossroy tcp localhost:8080
2022-10-18T07:46:45Z INF [TCP] Checking the localhost:8080 ...
2022-10-18T07:46:46Z INF [TCP] Checking the localhost:8080 ...
2022-10-18T07:46:47Z INF [TCP] Checking the localhost:8080 ...
^CError: context canceled
$ docker run -e TZ=Europe/Paris wait4x:2.8.0-mossroy tcp localhost:8080
2022-10-18T09:46:51+02:00 INF [TCP] Checking the localhost:8080 ...
2022-10-18T09:46:52+02:00 INF [TCP] Checking the localhost:8080 ...
^C2022-10-18T09:46:53+02:00 INF [TCP] Checking the localhost:8080 ...
Error: context canceled

@atkrad atkrad self-requested a review October 18, 2022 07:50
@atkrad atkrad added the feature New feature or request label Oct 18, 2022
@atkrad
Copy link
Owner

atkrad commented Oct 18, 2022

@mossroy Thanks for the PR.

@atkrad atkrad merged commit cc73b99 into atkrad:main Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Honor a TZ env var to set the timezone of the docker image
2 participants