161ef94b4f
Check engine pin consistency / Dockerfile / CI pin consistency (push) Successful in 8s
Sirius CI/CD Pipeline / Detect Changes (push) Successful in 23s
Validate Docker Configuration / Validate Docker Compose Configuration (push) Successful in 47s
Sirius CI/CD Pipeline / Build API (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Build UI (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Engine Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Merge API Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Merge UI Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Build Engine (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Build Infra (${{ matrix.service }}, ${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-postgres) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-rabbitmq) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-valkey) (push) Has been cancelled
Sirius CI/CD Pipeline / Integration Test (push) Has been cancelled
Sirius CI/CD Pipeline / Public Stack Contract (push) Has been cancelled
Sirius CI/CD Pipeline / Dispatch Demo Deployment (sirius-demo branch) (push) Has been cancelled
Sirius CI/CD Pipeline / Dispatch Demo Canary (main branch) (push) Has been cancelled
Sirius CI/CD Pipeline / Guard Registry Namespace (push) Has been cancelled
56 lines
1.2 KiB
Bash
Executable File
56 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Legacy development helper: starts scanner/terminal only.
|
|
# Production and standard images use ENTRYPOINT /start-enhanced.sh (see sirius-engine/Dockerfile).
|
|
|
|
# Function to cleanup child processes
|
|
cleanup() {
|
|
echo "Shutting down services..."
|
|
pkill -P $$
|
|
exit 0
|
|
}
|
|
|
|
# Function to check if a service is running
|
|
check_service() {
|
|
local service_name=$1
|
|
local pid=$2
|
|
if ! kill -0 $pid 2>/dev/null; then
|
|
echo "$service_name failed to start or crashed"
|
|
cleanup
|
|
fi
|
|
}
|
|
|
|
# Trap SIGTERM and SIGINT
|
|
trap cleanup SIGTERM SIGINT
|
|
|
|
echo "Starting Sirius services..."
|
|
|
|
# Start scanner service
|
|
cd /app-scanner
|
|
echo "Starting scanner service..."
|
|
go run main.go &
|
|
SCANNER_PID=$!
|
|
|
|
# Give scanner a moment to initialize
|
|
sleep 2
|
|
check_service "Scanner" $SCANNER_PID
|
|
|
|
# Start terminal service
|
|
cd /app-terminal
|
|
echo "Starting terminal service..."
|
|
go run cmd/main.go &
|
|
TERMINAL_PID=$!
|
|
|
|
# Give terminal a moment to initialize
|
|
sleep 2
|
|
check_service "Terminal" $TERMINAL_PID
|
|
|
|
echo "All services started. Monitoring..."
|
|
|
|
# Monitor services
|
|
while true; do
|
|
check_service "Scanner" $SCANNER_PID
|
|
check_service "Terminal" $TERMINAL_PID
|
|
sleep 5
|
|
done
|