27 lines
732 B
Bash
Executable file
27 lines
732 B
Bash
Executable file
#!/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:"
|
|
docker ps --filter "name=agent-system" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
|
|
|
|
if [ -z "$TELEGRAM_BOT_TOKEN" ]; then
|
|
echo "NOTE: TELEGRAM_BOT_TOKEN is not set. Telegram approval bot will be disabled."
|
|
fi
|
|
|
|
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."
|