Initial WallMuse project

This commit is contained in:
fenglee
2026-05-09 09:12:41 +00:00
commit 3ea7d29827
91 changed files with 13136 additions and 0 deletions

30
scripts/health-check.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
echo "WallMuse health check"
echo "Workspace: $ROOT_DIR"
if command -v docker >/dev/null 2>&1; then
docker compose -f infra/docker-compose.yml --env-file .env ps
else
echo "docker is not installed"
fi
check_tcp() {
local name="$1"
local host="$2"
local port="$3"
if timeout 2 bash -c "</dev/tcp/$host/$port" 2>/dev/null; then
echo "ok: $name $host:$port"
else
echo "warn: $name $host:$port is not reachable"
fi
}
check_tcp postgres 127.0.0.1 5432
check_tcp redis 127.0.0.1 6379
check_tcp minio 127.0.0.1 9000
check_tcp minio-console 127.0.0.1 9001