Synchronize repository with Athena deployment
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
NAME=mike-ai-llama-qwen38-ab
|
||||
deadline=$((SECONDS + ${READY_TIMEOUT:-900}))
|
||||
until curl -fsS --max-time 3 http://127.0.0.1:5005/health >/dev/null; do
|
||||
state=$(docker inspect -f '{{.State.Running}}' "$NAME" 2>/dev/null || true)
|
||||
if [[ $state != true ]]; then
|
||||
docker logs --tail 100 "$NAME" >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
if ((SECONDS >= deadline)); then
|
||||
docker logs --tail 100 "$NAME" >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
curl -fsS http://127.0.0.1:5005/props
|
||||
printf '\nA/B test server is ready.\n'
|
||||
Reference in New Issue
Block a user