initial COM2 system snapshot
This commit is contained in:
23
com-stack/orchestra_up.sh
Executable file
23
com-stack/orchestra_up.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd /opt/hx-ki/com-stack
|
||||
|
||||
docker compose up -d --remove-orphans
|
||||
|
||||
# 90 Sekunden Health-Gate (anpassen)
|
||||
deadline=$((SECONDS+90))
|
||||
|
||||
while (( SECONDS < deadline )); do
|
||||
bad=$(docker ps --format '{{.Names}} {{.Status}}' | egrep 'unhealthy|Restarting' || true)
|
||||
if [[ -z "$bad" ]]; then
|
||||
echo "OK: Orchester stabil."
|
||||
exit 0
|
||||
fi
|
||||
echo "WARTEN: noch nicht stabil:"
|
||||
echo "$bad"
|
||||
sleep 3
|
||||
done
|
||||
|
||||
echo "FAIL: nicht stabil -> fahre alles runter (alle oder keiner)."
|
||||
docker compose down
|
||||
exit 1
|
||||
Reference in New Issue
Block a user