mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
refactor: improve container orchestration detection and fallback logic in e2e test script
This commit is contained in:
+6
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user