From 911a29dbdf3d699ab62817983e5a5514641d5fad Mon Sep 17 00:00:00 2001 From: Stephane Gourichon Date: Fri, 15 Aug 2025 19:07:01 +0200 Subject: [PATCH] Adapt to podman which doesn't replace running container by default. --- tools/build_and_up_all_containers.sh | 3 ++- tools/containers_check_update_rebuild_switch.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/build_and_up_all_containers.sh b/tools/build_and_up_all_containers.sh index e7935c3..2aa7ad9 100755 --- a/tools/build_and_up_all_containers.sh +++ b/tools/build_and_up_all_containers.sh @@ -30,7 +30,8 @@ do cd "${SERVICE_PATH%/*}" pwd podman-compose pull || { fail_one "pull" ; continue ; } - podman-compose build --no-cache || { fail_one "build" ; continue ; } + podman-compose build || { fail_one "build" ; continue ; } + podman-compose down || { fail_one "down" ; continue ; } podman-compose up -d || { fail_one "switch to newly built container" ; continue ; } done 3< <( find . -iname "compose.yaml" ) diff --git a/tools/containers_check_update_rebuild_switch.sh b/tools/containers_check_update_rebuild_switch.sh index 910a48f..cf974b1 100755 --- a/tools/containers_check_update_rebuild_switch.sh +++ b/tools/containers_check_update_rebuild_switch.sh @@ -51,6 +51,7 @@ do cd $PATH_OF_CONTAINER podman-compose --no-ansi pull || { fail_one "pull" ; continue ; } - podman-compose --no-ansi build --no-cache || { fail_one "build" ; continue ; } + podman-compose --no-ansi build || { fail_one "build" ; continue ; } + podman-compose --no-ansi down || { fail_one "down" ; continue ; } podman-compose --no-ansi up -d || { fail_one "switch to newly built container" ; continue ; } done