All services in docker-compose.yml are behind profiles (dev/ops), but the maintenance scripts called docker compose without --profile, so no services were detected or built. Added --profile dev --profile ops to BuildAll.sh, StatusCheck.sh, and all relevant maintenance.sh commands. Also: - Added missing env vars for 8 newer servers to .env.example (beszel, gitea, grafana, ha, limesurvey, linkwarden, superset) - Fixed maintenance.sh validate to use validate-all.sh instead of nonexistent validate-mcp.sh
45 lines
1.1 KiB
Bash
Executable File
45 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# BuildAll.sh
|
|
# Script to build all MCP/LSP services in KNEL-AIMiddleware
|
|
|
|
set -e # Exit on error
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${GREEN}=== KNEL-AIMiddleware Build Script ===${NC}"
|
|
echo ""
|
|
echo "Building all services..."
|
|
echo ""
|
|
|
|
# Change to project root (parent of scripts/)
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
# Get list of all services from docker-compose.yml (include all profiles)
|
|
SERVICES=$(docker compose --profile dev --profile ops config --services | sort)
|
|
|
|
# Build each service
|
|
for SERVICE in $SERVICES; do
|
|
echo -e "${BLUE}Building: ${SERVICE}${NC}"
|
|
if docker compose --profile dev --profile ops build "$SERVICE" 2>&1 | tail -5; then
|
|
echo -e "${GREEN}✓${NC} Successfully built $SERVICE"
|
|
else
|
|
echo -e "${RED}✗${NC} Failed to build $SERVICE"
|
|
echo -e "${YELLOW}Continuing with next service...${NC}"
|
|
fi
|
|
echo ""
|
|
done
|
|
|
|
echo -e "${GREEN}=== Build complete! ===${NC}"
|
|
echo ""
|
|
echo "To start all services:"
|
|
echo " docker compose up -d --profile dev"
|
|
echo ""
|
|
echo "To check status:"
|
|
echo " docker ps"
|