forked from DataScientest/MLOps-RagOps-Cours
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
64 lines (53 loc) · 1.53 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
63
64
.PHONY: help build up down restart logs clean test demo validate
# Default target
help:
@echo "🚀 RAGOPS - Retrieval-Augmented Generation Operations"
@echo ""
@echo "Available commands:"
@echo " build - Build all Docker images"
@echo " up - Start all services"
@echo " down - Stop all services"
@echo " restart - Restart all services"
@echo " logs - Show service logs"
@echo " clean - Clean up Docker resources"
@echo " test - Run comprehensive test suite"
@echo ""
build:
@echo "🏗️ Building Docker images..."
docker compose build
up:
@echo "🚀 Starting RAGOPS services..."
docker compose up -d
@echo "⏳ Waiting for services to be ready..."
@sleep 10
@echo "✅ RAGOPS is ready!"
@echo " Backend: http://localhost:18000"
@echo " Health: http://localhost:18000/health"
down:
@echo "⏹️ Stopping RAGOPS services..."
docker compose down
restart:
@echo "🔄 Restarting RAGOPS services..."
docker compose down
docker compose up -d
logs:
@echo "📄 Showing service logs..."
docker compose logs -f backend
clean:
@echo "🧹 Cleaning up Docker resources..."
docker compose down -v
docker system prune -f
test:
@echo "🧪 Running comprehensive test suite..."
@python3 tests/test_phase2_comprehensive.py
# Development targets
dev-logs:
docker compose logs -f
dev-rebuild:
docker compose build --no-cache backend
docker compose restart backend
dev-reset:
docker compose down -v
docker compose up -d
@sleep 10
curl -X POST "http://localhost:18000/init-index"