-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (56 loc) · 1.65 KB
/
Copy pathMakefile
File metadata and controls
69 lines (56 loc) · 1.65 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
65
66
67
68
69
.PHONY: up down logs ps build clean test
# Variables
COMPOSE = docker compose
SERVICES = gateway core orchestrator speech llm evaluation-reporting
# Comandos principales
up:
$(COMPOSE) up -d
down:
$(COMPOSE) down
# Construir servicios
build:
$(COMPOSE) build $(SERVICES)
# Ver logs
logs:
$(COMPOSE) logs -f
# Ver logs de un servicio específico
log-%:
$(COMPOSE) logs -f $*
# Estado de servicios
ps:
$(COMPOSE) ps
# Limpiar volúmenes
clean:
$(COMPOSE) down -v
# Reiniciar un servicio específico
restart-%:
$(COMPOSE) restart $*
# Ejecutar tests
test:
$(COMPOSE) run --rm core pytest
$(COMPOSE) run --rm orchestrator pytest
$(COMPOSE) run --rm speech pytest
$(COMPOSE) run --rm llm pytest
$(COMPOSE) run --rm evaluation-reporting pytest
# Generar claves JWT
gen-keys:
mkdir -p keys
openssl genrsa -out keys/private.pem 2048
openssl rsa -in keys/private.pem -pubout -out keys/public.pem
# Configuración inicial
init: gen-keys
cp -n .env.example .env
# Ayuda
help:
@echo "Comandos disponibles:"
@echo " make up - Iniciar todos los servicios"
@echo " make down - Detener todos los servicios"
@echo " make build - Construir todos los servicios"
@echo " make logs - Ver logs de todos los servicios"
@echo " make log-<service> - Ver logs de un servicio específico"
@echo " make ps - Ver estado de los servicios"
@echo " make clean - Limpiar volúmenes"
@echo " make restart-<service> - Reiniciar un servicio específico"
@echo " make test - Ejecutar tests"
@echo " make init - Configuración inicial"
@echo " make gen-keys - Generar claves JWT"