15 lines
367 B
Bash
Executable File
15 lines
367 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
deadline=$((SECONDS + ${READY_TIMEOUT:-900}))
|
|
until curl -fsS --max-time 3 http://127.0.0.1:5004/health >/dev/null; do
|
|
if ((SECONDS >= deadline)); then
|
|
docker logs --tail 100 mike-ai-llama-dirk-test >&2 || true
|
|
exit 1
|
|
fi
|
|
sleep 2
|
|
done
|
|
curl -fsS http://127.0.0.1:5004/props
|
|
printf '\nDirk test server is ready.\n'
|
|
|