85742ab165
CPU Test / Lint - next (push) Waiting to run
Dashboard / Chromatic (push) Waiting to run
CPU Test / Lint - fast (push) Waiting to run
CPU Test / Build documentation (push) Waiting to run
CPU Test / Test (Store, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Utilities, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Weave, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (AgentOps, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (LLM proxy, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Others, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Store, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Utilities, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (Weave, stable, Python 3.11) (push) Waiting to run
CPU Test / Test (AgentOps, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (LLM proxy, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Others, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Store, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Utilities, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (Weave, stable, Python 3.12) (push) Waiting to run
CPU Test / Test (AgentOps, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (LLM proxy, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Others, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Store, latest, Python 3.13) (push) Waiting to run
CPU Test / Lint - slow (push) Waiting to run
CPU Test / Lint - JavaScript (push) Waiting to run
CPU Test / Test (AgentOps, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (LLM proxy, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Others, legacy, Python 3.10) (push) Waiting to run
CPU Test / Test (Utilities, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (Weave, latest, Python 3.13) (push) Waiting to run
CPU Test / Test (JavaScript) (push) Waiting to run
Deploy Documentation / deploy (push) Has been cancelled
45 lines
948 B
Bash
Executable File
45 lines
948 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
cd docker
|
|
|
|
# Setup data directories
|
|
./setup.sh
|
|
|
|
# Start Dockers
|
|
docker compose -f compose.mongo.yml up -d
|
|
|
|
SERVICE_NAME=mongo
|
|
TIMEOUT=60 # seconds
|
|
SLEEP=2
|
|
|
|
cid="$(docker compose -f compose.mongo.yml ps -q "$SERVICE_NAME")"
|
|
if [ -z "$cid" ]; then
|
|
echo "Service $SERVICE_NAME is not running"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Waiting for $SERVICE_NAME to become healthy..."
|
|
end=$((SECONDS + TIMEOUT))
|
|
|
|
while [ "$SECONDS" -lt "$end" ]; do
|
|
status="$(docker inspect -f '{{.State.Health.Status}}' "$cid")"
|
|
echo "Current status: $status"
|
|
|
|
if [ "$status" = "healthy" ]; then
|
|
echo "$SERVICE_NAME is healthy ✅"
|
|
exit 0
|
|
elif [ "$status" = "unhealthy" ]; then
|
|
echo "$SERVICE_NAME is unhealthy ❌"
|
|
docker logs "$cid" || true
|
|
exit 1
|
|
fi
|
|
|
|
sleep "$SLEEP"
|
|
done
|
|
|
|
echo "Timed out waiting for $SERVICE_NAME to become healthy after ${TIMEOUT}s"
|
|
docker logs "$cid" || true
|
|
exit 1
|