fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.1k stars 35 forks source link

Difficulties with regex and overal concept #346

Open EHRETic opened 8 months ago

EHRETic commented 8 months ago

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:

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

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 commented 8 months ago

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.