-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
·56 lines (49 loc) · 1.44 KB
/
build-all.sh
File metadata and controls
executable file
·56 lines (49 loc) · 1.44 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Build all DevOps applications
set -e
echo "========================================="
echo "Building All DevOps Applications"
echo "========================================="
# Colors for output
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
# Build drift-detector
echo "Building drift-detector..."
cd drift-detector
if go build -o drift-detector .; then
echo -e "${GREEN}✅ drift-detector built${NC}"
else
echo -e "${RED}❌ drift-detector build failed${NC}"
exit 1
fi
cd ..
# Build cost-optimizer
echo "Building cost-optimizer..."
cd cost-optimizer
if go build -o cost-optimizer .; then
echo -e "${GREEN}✅ cost-optimizer built${NC}"
else
echo -e "${RED}❌ cost-optimizer build failed${NC}"
exit 1
fi
cd ..
# Build cost-impact-monitor (live dashboard)
echo "Building live-dashboard..."
cd cost-impact-monitor
if go build -o live-dashboard live-dashboard.go; then
echo -e "${GREEN}✅ live-dashboard built${NC}"
else
echo -e "${RED}❌ live-dashboard build failed${NC}"
exit 1
fi
cd ..
echo ""
echo -e "${GREEN}=========================================${NC}"
echo -e "${GREEN}All applications built successfully!${NC}"
echo -e "${GREEN}=========================================${NC}"
echo ""
echo "Next steps:"
echo " 1. Start the dashboard: cd cost-impact-monitor && ./live-dashboard"
echo " 2. Access at: http://localhost:8082"
echo " 3. Run health check: curl http://localhost:8082/api/health | jq '.'"