Replies: 1 comment
-
|
The issue with this is that it only solves a very specific usecase. Ideally you'd also want to rebuild the image if whatever you install has been updated. In your case that would be nginx-adapter and caddy-teapot-module. In other cases these might be e.g. apt packages. This means that the determining if an image needs to be rebuild is image specific. For my personal use I've solved this by writing a service which runs every night and runs |
Beta Was this translation helpful? Give feedback.
0 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.
-
Consider this Containerfile from the official Caddy docker description:
My goal is to have a container, starting from an image built from a Containerfile like the above, that is auto updated via
podman-auto-updatewhenever the basecaddy:<version>orcaddy:<version>-builderimages are updated on the remote registry.Using
io.containers.autoupdateforpodman runwithregistryorlocaldoesn't work, since the service checks the local resulting image for updates instead of the base image(s). Perhaps I could create a separate systemd service/timer that does apodman build --pull newer <...>which updates the local image forpodman-auto-update, but that seems to be duplicating a lot of whatpodman-auto-updatedoes for containers based on remote images. It would be nice to have this update machinery tied up together in the Podman definitions for the image/container sopodman-auto-updatewould handle everything.Am I missing some functionality built into Podman? If not, would this be a reasonable feature request? I was imagining perhaps support for the
AutoUpdatekey for Build units that would rebuild the image when necessary and restart any derived containers (likeAutoUpdatefor Container units). Or perhaps a new value forio.containers.autoupdate(local-rebuild-if-newer) that acts likelocalbut tries to rebuild with--pull neweron base image changes.Beta Was this translation helpful? Give feedback.
All reactions