mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Bug: PERIOD env variable not working #289
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adripo on GitHub (Jun 15, 2023).
TLDR: Describe your issue in a one liner here
Is this urgent: Yes
DNS provider(s) you use: -
Program version: 2.5.0
Running version latest built on 2020-03-13T01:30:06Z (commit d0f678c)What are you using to run the container: docker-compose
Extra information (optional):
PERIODenv variable is ignored and not read by the application.After a fast search I saw that the correct variable that is being read is
UPDATE_PERIOD.https://github.com/qdm12/ddns-updater/blob/master/internal/config/sources/env/update.go#L34
Indeed, after naming it
UPDATE_PERIOD, everything worked correctly and config log was correct.Which one is the correct variable that should be used?
Logs:
Configuration file (remove your credentials!):
Host OS:
@qdm12 commented on GitHub (Jun 16, 2023):
Thanks for creating the issue, this is fixed for the latest image in
3fdda01509it got changed by mistake to UPDATE_PERIOD when doing that large settings refactor 4 days ago.FYI if it says
Running version latest ...then it's not version v2.5.0 but the latest Docker image 😉 To run version v2.5.0, you need to use the image tag:v2.5.0.@adripo commented on GitHub (Jun 16, 2023):
Thank you
@adripo commented on GitHub (Jun 16, 2023):
@qdm12 Regarding version naming, typically
latestserves as an alias for the most recent stable version. For development purposes, alternative tags such asalpha,beta, anddevcan be utilized. Additionally, named versions typically exclude thevprefix.Due to these conventions, I mistakenly selected incorrect versions. Therefore, I would like to propose including a reference to the latest stable version in the docker-compose file, assuming you intend to keep in place this naming convention going forward.
@qdm12 commented on GitHub (Jun 17, 2023):
Actually I have my own view on this 😸 I even wrote up a post about it: https://qqq.ninja/blog/post/docker-tags/
You can use tag
:v2for the stable v2 compatible release too.Where have you seen this? I have seen the opposite and generally the
vis always prefixed to semver versioning in programming.@adripo commented on GitHub (Jun 18, 2023):
Thanks, I will have a look.
That's what i thought, but after looking on docker hub, v2 was last updated 3 years ago
I agree with you for software versioning, but docker is using a different standard.
Here are some example of the official Docker images:
https://hub.docker.com//alpine
https://hub.docker.com//nginx
https://hub.docker.com//busybox
https://hub.docker.com//ubuntu
@qdm12 commented on GitHub (Jun 18, 2023):
Indeed, CI only got upgraded since v2.5.0 to perform this docker tagging so it will be present with v2.6.0.
Good point, I'll change the CI to push tags both prefixed with v and not prefixed.