feat: add container runtime validation and force docker usage in CI environment

This commit is contained in:
ramvignesh-b
2026-04-17 01:52:04 +05:30
parent 05e4df2d7b
commit 9935da0496
+9
View File
@@ -3,6 +3,15 @@ set -e
# Use podman if available. Not everyone has it # Use podman if available. Not everyone has it
CONTAINER_BIN=$(command -v podman || command -v docker) CONTAINER_BIN=$(command -v podman || command -v docker)
if [ -z "$CONTAINER_BIN" ]; then
echo "Sorry, you need either podman or docker installed to run this script."
exit 1
fi
if [ "$CI" = "true" ]; then
CONTAINER_BIN=$(command -v docker)
fi
echo "Using $CONTAINER_BIN for container operations..." echo "Using $CONTAINER_BIN for container operations..."
ENV_FILE="./.env.e2e" ENV_FILE="./.env.e2e"