2026-05-16 19:36:43 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
echo ">>> Validating docker-compose configuration..."
|
|
|
|
|
docker compose config
|
|
|
|
|
|
|
|
|
|
echo ">>> Building and starting Agent System services..."
|
|
|
|
|
docker compose up -d --build
|
|
|
|
|
|
|
|
|
|
echo ">>> Services status:"
|
2026-05-16 21:53:06 +02:00
|
|
|
docker ps --filter "name=agent-system" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
|
|
|
|
|
|
|
|
|
|
if [ -z "$TELEGRAM_BOT_TOKEN" ]; then
|
2026-05-17 23:42:52 +02:00
|
|
|
echo ">>> Telegram bot status: DISABLED (token missing)"
|
|
|
|
|
else
|
|
|
|
|
echo ">>> Telegram bot status: ENABLED"
|
2026-05-16 21:53:06 +02:00
|
|
|
fi
|
2026-05-16 19:36:43 +02:00
|
|
|
|
|
|
|
|
echo ">>> Verifying API endpoints..."
|
|
|
|
|
sleep 5 # Give it a moment to start
|
|
|
|
|
|
|
|
|
|
endpoints=("summary" "nodes" "services")
|
|
|
|
|
for ep in "${endpoints[@]}"; do
|
|
|
|
|
echo "Checking /$ep..."
|
|
|
|
|
curl -s -f http://localhost:18180/$ep > /dev/null && echo " OK" || echo " FAILED"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo ">>> Deployment complete."
|