Fully functional. FrontEnd remains

This commit is contained in:
2024-10-07 21:44:58 +09:00
parent fc20ca01b7
commit 0e82b86e51
27 changed files with 528 additions and 170 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 "$@"