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

Difficulties with regex and overal concept #346

Open
EHRETic opened this issue Jan 30, 2024 · 1 comment
Open

Difficulties with regex and overal concept #346

EHRETic opened this issue Jan 30, 2024 · 1 comment

Comments

@EHRETic
Copy link

EHRETic commented Jan 30, 2024

Hi there,

Sorry to ask, but as I'm not coming from dev world, I really have difficulties to optimize the tags, labels & regex together in my Home Lab.

My overall concept:

  • 1 docker server VM with "productive" apps (the one I use for myself) - all container instances uses fixed version tags
  • 1 docker server VM with test instances where I use most of the time "latest" tag or "latest within a range"

Before I start with triggers and email alerts, I would like to clean the updates detection and I have the following detection difficulties:

  • newer detection versions not within the same branch (alpine vs bullseye)
  • range detection between X.Y tag and X.Y.Z latest detected
  • completely different names (for this one, I might try to add -alpine at the of the regex, but I prefer an expert confirmation)

image

So for instance, for mariaDB, I could limit the detection to the range by using wud.tag.include=^10.5.\d+$$ but I still ending up with an update detection because of version 10.5.23.

image

On a more general basis, neither the current doc nor the regex doc permits me to understand the whole syntax of it (like the +$$ at the end)
So if you have "best practices" or more examples, that would be very great! 😉

Another important question: do you recommend to use wud.watch.digest=true all the time to detect any change in a particular version, I'm asking because sometimes images are replaced because of solved security vulnerabilities.

Thanks in advance for your help
Kind regards

@fmartinou
Copy link
Owner

Hi,

On a more general basis, neither the current doc nor the regex doc permits me to understand the whole syntax of it (like the +$$ at the end)

Regex are just regular Javascript regular expressions that you can test on regex101 if you have some doubts.

The double $$ at the end is just there to escape the dollar sign from being interpolated by Docker-Compose.

So if you have "best practices" or more examples, that would be very great!

Here in the doc, you can already fin pretty much many examples :)
https://fmartinou.github.io/whats-up-docker/#/configuration/?id=complete-example

Do you recommend to use wud.watch.digest=true all the time to detect any change in a particular version

wud.watch.digest=true is only useful for tracking mutable tags (like latest).
Please notice that it involves making many more requests to the Registry so it also has a negative impact on your Docker Hub request quota.

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