Replies: 1 comment 3 replies
-
|
I don't use Watchtower or Diun for my image updates but Renovate or Dependabot. I created doco-cd with these services in mind, since you can find all updates/changes in the Git repository history. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
First of all, I would like to thank @kimdre for this amazing project, finally, I can manage my infrastructure in declarative way without setting up Kubernetes on a single node.
Background
I run doco-cd on a normal Docker host (no Swarm) and to keep images up to date I used Watchtower (the fork of @beatkind who very kindly maintains the project), but I ran into an issue that’s hard to solve cleanly:
So the outcome is: automatic image updates work for “simple” services, but “secret-dependent” services can break whenever Watchtower updates them.
I considered enabling
force_image_pullandforce_recreatein doco-cd, but I can’t keep those always-on (I don’t want frequent full recreates; it’s unsustainable for my setup). I would like to trigger a “force pull + recreate” only when there is actually an image update.I know that automatically updating all containers is not considered best practice, but sometimes images with a fixed version receive updates to the base image.
Proposed feature
My idea is to switch from Watchtower to Diun, as the latter, in addition to being officially maintained, is able to generate webhooks containing various information, including images that can be updated.
Below is the JSON body that is sent by Diun:
My idea is to create an endpoint in Doco-CD that receives that webhook (perhaps at regular, schedulable intervals), pools the new image, and recreates all the containers running that image (with the option to exclude some using labels or another method).
Expected behavior (high level):
force_image_pull: true+force_recreate: true), but only for that triggered run.This would let Diun act as a lightweight “image update detector”, while doco-cd remains the sole authority that actually manages container lifecycle.
Questions for the community
Thanks again for doco-cd, and thanks in advance to anyone who shares thoughts or suggestions.
Beta Was this translation helpful? Give feedback.
All reactions