Handle the case in which podman compose or docker compose fail

Implements a TODO item that was in the script
This commit is contained in:
Sandro Santilli 2025-01-20 16:20:35 +01:00
parent f99111c692
commit b1e8df28da

View File

@ -12,7 +12,13 @@ test -n "${DOCKER}" || {
DOCKER_COMPOSE=$(command -v podman-compose docker-compose | head -1)
test -n "${DOCKER_COMPOSE}" || {
DOCKER_COMPOSE="${DOCKER} compose" # TODO: check if supported
DOCKER_COMPOSE="${DOCKER} compose"
# check if supported
${DOCKER_COMPOSE} > /dev/null || {
echo "Cannot find podman-compose or docker-compose, and '${DOCKER_COMPOSE}' fails" >&2
echo "HINT: try installing podman-compose" >&2
exit 1
}
}
IMAGE_BUILD_DEPS=docker.io/qgis/qgis3-build-deps:latest