-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_lab.sh
More file actions
executable file
·62 lines (55 loc) · 1.97 KB
/
start_lab.sh
File metadata and controls
executable file
·62 lines (55 loc) · 1.97 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
57
58
59
60
61
62
#!/bin/bash
show_help() {
echo "Usage: $0 [--compose] [--k8s] [--help]"
echo " lab using Docker(default)"
echo " --k8s lab using MicroK8s-in-Docker (advanced)"
echo " --help Show this help message"
}
MODE="compose"
for arg in "$@"; do
case "$arg" in
--compose)
MODE="compose";;
--k8s)
MODE="k8s";;
-h|--help)
show_help; exit 0;;
*)
echo "Unknown argument: $arg"; show_help; exit 1;;
esac
done
if [[ "$MODE" == "compose" ]]; then
echo "🛠️ Bootstrapping lab environment with Docker Compose..."
if ! command -v docker-compose &> /dev/null; then
echo "❌ docker-compose not found. Please install Docker Compose."
exit 1
fi
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d
docker compose -f docker/frontend.yml pull
docker compose -f docker/frontend.yml up -d
sleep 5
echo "✅ LAB BOOTSTRAP COMPLETE"
echo ""
echo "Observability:"
echo "- 📊 Prometheus: http://localhost:9090"
echo "- 📈 Grafana: http://localhost:3000 (admin / admin123)"
echo "- 🛢️ MinIO Console: http://localhost:9001 (admin / admin123)"
echo "- 🗄️ Elasticsearch: http://localhost:9200"
echo ""
echo "Automated Response Security:"
echo "- 🐝 TheHive: http://localhost:9005"
echo "- 🧠 Cortex: http://localhost:9006"
echo ""
echo "Data Sources"
echo "- 🦅 Falco: http://localhost:2801"
echo "- 🟥 Redis: http://localhost:6379"
echo "- 🚦 Nginx Exporter: http://localhost:9113/metrics"
echo "- 🔎 Nginx status: http://localhost:5543/stub_status"
echo "- 📜 Loki API: http://localhost:3100/metrics"
echo "- 🪵 Promtail: http://localhost:9080"
echo ""
echo "- 🚪 ARS Entry Page: http://localhost:8080/"
echo ""
echo "Tip: Copy/paste these URLs into your browser."
fi