Adapt to podman which doesn't replace running container by default.
This commit is contained in:
@@ -30,7 +30,8 @@ do
|
|||||||
cd "${SERVICE_PATH%/*}"
|
cd "${SERVICE_PATH%/*}"
|
||||||
pwd
|
pwd
|
||||||
podman-compose pull || { fail_one "pull" ; continue ; }
|
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 ; }
|
podman-compose up -d || { fail_one "switch to newly built container" ; continue ; }
|
||||||
|
|
||||||
done 3< <( find . -iname "compose.yaml" )
|
done 3< <( find . -iname "compose.yaml" )
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ do
|
|||||||
|
|
||||||
cd $PATH_OF_CONTAINER
|
cd $PATH_OF_CONTAINER
|
||||||
podman-compose --no-ansi pull || { fail_one "pull" ; continue ; }
|
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 ; }
|
podman-compose --no-ansi up -d || { fail_one "switch to newly built container" ; continue ; }
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user