-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (38 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
55 lines (38 loc) · 1.33 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
APP_NAME=Trace - Sovereign Discovery Copilot
COMPOSE_CORE=docker compose -f infra/compose/compose.yaml
COMPOSE_MODEL=docker compose -f infra/compose/compose.yaml -f infra/compose/compose.model.yaml
COMPOSE_OCR=docker compose -f infra/compose/compose.yaml -f infra/compose/compose.ocr.yaml
COMPOSE_FULL=docker compose -f infra/compose/compose.yaml -f infra/compose/compose.model.yaml -f infra/compose/compose.ocr.yaml
.PHONY: up up-model up-ocr up-full down logs api web worker test seed seed-raw eval eval-regression eval-all phase0-verify
up:
$(COMPOSE_CORE) up --build
up-model:
$(COMPOSE_MODEL) up --build
up-ocr:
$(COMPOSE_OCR) up --build
up-full:
$(COMPOSE_FULL) up --build
down:
$(COMPOSE_FULL) down --remove-orphans
logs:
$(COMPOSE_CORE) logs -f
api:
cd apps/api && uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
web:
cd apps/web && pnpm dev
worker:
cd apps/worker && python -m worker.main
test:
cd apps/api && pytest
seed:
cd apps/api && python -m app.scripts.seed_demo --mode fast
seed-raw:
cd apps/api && python -m app.scripts.seed_demo --mode raw
eval:
cd apps/api && python -m app.scripts.eval_seed
eval-regression:
cd apps/api && python -m app.scripts.eval_seed --suite regression
eval-all:
cd apps/api && python -m app.scripts.eval_seed --suite all
phase0-verify:
python3 infra/scripts/phase0_verify.py