Files
Q-A_test/check-local.sh
T
SDI 12e4f17b62
CI / typecheck (push) Successful in 1m8s
CI / format (push) Failing after 1m6s
CI / lint (push) Failing after 49s
CI / test (push) Failing after 1m8s
first commit
2026-07-15 18:05:12 +09:00

23 lines
484 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
COMPOSE_FILE="$ROOT_DIR/docker/docker-compose.yml"
if ! command -v docker >/dev/null 2>&1; then
echo "docker command not found"
exit 1
fi
if ! docker info >/dev/null 2>&1; then
echo "docker daemon is not running or is not accessible"
exit 1
fi
cd "$ROOT_DIR"
docker compose -f "$COMPOSE_FILE" ps
echo
curl -fsS http://localhost:4000/api/health || {
echo "API health check failed"
exit 1
}