refactor: improve container orchestration detection and fallback logic in e2e test script

This commit is contained in:
ramvignesh-b
2026-04-17 01:41:26 +05:30
parent 06585163d0
commit 05e4df2d7b
+6 -2
View File
@@ -26,10 +26,14 @@ cleanup() {
trap cleanup EXIT trap cleanup EXIT
echo "Starting Database and Mail server..." echo "Starting Database and Mail server..."
if [ "$CONTAINER_BIN" = "podman" ]; then COMPOSE_BIN="$(command -v docker-compose || true)"
if echo "$CONTAINER_BIN" | grep -q "podman"; then
podman compose -f "./docker-compose.e2e.yml" up -d podman compose -f "./docker-compose.e2e.yml" up -d
elif [ -n "$COMPOSE_BIN" ]; then
"$COMPOSE_BIN" -f "./docker-compose.e2e.yml" up -d
else else
docker-compose -f "./docker-compose.e2e.yml" up -d docker compose -f "./docker-compose.e2e.yml" up -d
fi fi
# postgress will take some time, so we wait, and no race condition. Also, no point in logging this output # postgress will take some time, so we wait, and no race condition. Also, no point in logging this output