mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
Update watchtower to a well-maintained fork and add podman support
Signed-off-by: Apoorv Parle <19315187+apparle@users.noreply.github.com>
This commit is contained in:
parent
13b645dc1d
commit
ee23d43ca7
2 changed files with 8 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ RUN set -ex; \
|
||||||
apk upgrade --no-cache -a; \
|
apk upgrade --no-cache -a; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
build-base; \
|
build-base; \
|
||||||
go install github.com/containrrr/watchtower@76f9cea516593fabb8ca91ff13de55caa6aa0a8b;
|
go install github.com/nicholas-fedor/watchtower@v1.11.3;
|
||||||
|
|
||||||
FROM alpine:3.21.3
|
FROM alpine:3.21.3
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@ elif ! test -r /var/run/docker.sock; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /run/.containerenv ]; then
|
||||||
|
# If running under podman disable memory_swappiness setting in watchtower.
|
||||||
|
# It is a necessary workaround until https://github.com/containers/podman/issues/23824 gets fixed.
|
||||||
|
echo "Running under Podman. Setting WATCHTOWER_DISABLE_MEMORY_SWAPPINESS to 1."
|
||||||
|
export WATCHTOWER_DISABLE_MEMORY_SWAPPINESS=1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$CONTAINER_TO_UPDATE" ]; then
|
if [ -n "$CONTAINER_TO_UPDATE" ]; then
|
||||||
exec /watchtower --cleanup --debug --run-once "$CONTAINER_TO_UPDATE"
|
exec /watchtower --cleanup --debug --run-once "$CONTAINER_TO_UPDATE"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue