Ensure a rebuild of a container is a verbose event.

This commit is contained in:
Stephane Gourichon
2024-03-27 23:31:16 +01:00
parent 405c1d5acc
commit 3044d9c2ec
2 changed files with 44 additions and 10 deletions

View File

@@ -46,6 +46,9 @@ do
PATH_OF_CONTAINER="$( docker inspect --format='{{ index .Config.Labels "com.docker.compose.project.working_dir" }}' $CONTAINER_ID )"
NAME_OF_CONTAINER="$( docker inspect --format='{{ .Name }}' $CONTAINER_ID )"
echo "IMPORTANT: updating container $NAME_OF_CONTAINER from $PATH_OF_CONTAINER"
cd $PATH_OF_CONTAINER
docker-compose pull || { fail_one "pull" ; continue ; }
docker-compose build --no-cache || { fail_one "build" ; continue ; }