Files
gourichon_org/tools/build_and_up_all_containers.sh
Stephane Gourichon 91347d4310 Verbose mode.
2025-09-05 22:55:44 +02:00

36 lines
612 B
Bash
Executable File

#!/bin/bash
set -eu
set -xv
cd -P "$(dirname "$(readlink -f "$0")" )"
cd ..
INFRA_ROOT="$PWD"
RC=0
function fail_one()
{
echo >&2 "FAILURE on: " "$@"
RC=$(( RC + 1 ))
}
bash partials/fsg-image/build.sh
while IFS="" read -u 3 -r SERVICE_PATH
do
pushd "${SERVICE_PATH%/*}"
pwd
podman-compose pull || { fail_one "pull" ; continue ; }
podman-compose build --no-cache || { fail_one "build" ; continue ; }
podman-compose up -d || { fail_one "switch to newly built container" ; continue ; }
popd
done 3< <( find . -iname "compose.yaml" )
echo "Overall result: $RC"
exit "$RC"