init commit

This commit is contained in:
2025-11-24 07:02:33 +09:00
commit 7bf003e70d
488 changed files with 51130 additions and 0 deletions

17
wait-for-it.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
host="$1"
shift
port="$1"
shift
timeout=20
until nc -z "$host" "$port"; do
echo "Waiting for $host:$port..."
sleep 1
timeout=$((timeout - 1))
if [ "$timeout" -eq 0 ]; then
echo "Error: Timeout while waiting for $host:$port"
exit 1
fi
done
exec "$@"