-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·44 lines (35 loc) · 986 Bytes
/
start.sh
File metadata and controls
executable file
·44 lines (35 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Stream Scout - Start Script
# Run this to start all services from scratch
set -e
echo "=== Stream Scout Startup ==="
echo ""
# Stop any existing containers
echo "[1/5] Stopping existing containers..."
docker-compose down
echo ""
echo "[2/5] Starting all services..."
docker-compose up -d
echo ""
echo "[3/5] Waiting 60 seconds for services to initialize..."
sleep 60
echo ""
echo "[4/5] Submitting Flink job..."
docker exec streamscout-flink-jobmanager flink run -py /opt/flink/usrlib/clip_detector_job.py -d
echo ""
echo "[5/5] Waiting 15 seconds for job to start..."
sleep 15
echo ""
echo "=== Startup Complete ==="
echo ""
echo "Services running:"
docker-compose ps --format "table {{.Name}}\t{{.Status}}"
echo ""
echo "Flink job status:"
docker exec streamscout-flink-jobmanager flink list
echo ""
echo "URLs:"
echo " Frontend: http://localhost:5000"
echo " Flink UI: http://localhost:8081"
echo " Grafana: http://localhost:3000 (admin/admin)"
echo ""