Replies: 2 comments 3 replies
-
It is not possible to only update certain containers with auto-update, although I guess it would#t be difficult to implement something like this. That said if you talk about an interval like 5s then I think podman auto-update is the wrong tool. This would spam the registry a lot. Since you control the images it would be munch better to send some form of push notification to your host when you publish a new image. Polling in such a short interval seems very expensive. |
Beta Was this translation helpful? Give feedback.
-
@vrothberg PTAL I think it would be better to setup systemd timers for specific containers that need to be updated once per week. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
Currently I have the use case that I want to run multiple containers via podman&systemd but in kinda different scenarios. There is one type of container that only should be updated once a week (infrastructure like databases & stuff, let's call it type A) and there are the containers I'm actually working on, some application etc, that I want to get updated as soon as I push a new image to my registry (with the appropriate tag), lets call it type B.
Right now, I can only enable/disable containers for auto-update and can enable (and configure) the timer unit. But all that does is either update all tagged images, or, if I disable the timer, none of them.
To enable this "deploy ASAP"-functionality for type B, I would also have to set the timer to an interval of something like 5-30s and I noticed that the default output of podman-auto-update can be somewhat spammy. I could probably mitigate that by hacking together a template for --format, but I wish there was a simpler pre-made output like "container x was updated" which gets shown only when it actually got updated, maybe behind a
-q
flag.So here is my question:
Is there a way to have my cake and eat it, too? Meaning I can regularly and stably update my infrastructure, type-A containers and have my app at the bleeding edge, all in an automatic fashion? I should probably mention that my host is on debian bookworm, which is currently running podman 4.3.1 (so no quadlets).
Beta Was this translation helpful? Give feedback.
All reactions