Funktionierender STand!!!

This commit is contained in:
2026-06-20 19:54:41 +02:00
parent 404c632cfc
commit cc3c0dad7b
6 changed files with 379 additions and 89 deletions

View File

@@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "$0")/.."
HEALTH_URL="http://localhost:8091/health"
HEALTH_URL="" # leer → nutzt docker inspect health status
MAX_WAIT="${MAX_WAIT:-180}"
[ -f .env ] && source .env
MODEL="${QWEN3_TTS_CLONE_MODEL:-Qwen/Qwen3-TTS-12Hz-1.7B-Base}"
@@ -25,16 +25,22 @@ printf " API http://localhost:8091
"
while (( SECONDS - t0 < MAX_WAIT )); do
if curl -sf "$HEALTH_URL" >/dev/null 2>&1; then
printf "✓ Clone bereit: http://localhost:8091 [%ds]
STATUS=$(docker inspect qwen3-tts-clone --format='{{.State.Health.Status}}' 2>/dev/null || true)
if [ "$STATUS" = "healthy" ]; then
printf "✓ Clone bereit: ws://localhost:8091 [%ds]
" $(( SECONDS - t0 ))
exit 0
fi
if [ "$STATUS" = "unhealthy" ]; then
printf "✗ Clone-Container unhealthy. Logs:
" >&2
docker logs --tail=20 qwen3-tts-clone 2>&1 >&2 || true
exit 1
fi
if ! docker ps --filter "name=qwen3-tts-clone" --filter "status=running" -q | grep -q .; then
printf "✗ Clone-Container abgestürzt. Logs:
" >&2
docker logs --tail=40 qwen3-tts-clone 2>&1 >&2 || true
docker logs --tail=20 qwen3-tts-clone 2>&1 >&2 || true
exit 1
fi
sleep 2