-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
43 lines (31 loc) · 1.59 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
include .env
export
# ── dbt ──────────────────────────────────────────────────────────────────────
dbt-debug:
cd dbt_project && dbt debug --profiles-dir .
dbt-compile:
cd dbt_project && dbt compile --profiles-dir .
dbt-run:
cd dbt_project && dbt run --profiles-dir .
dbt-test:
cd dbt_project && dbt test --profiles-dir .
dbt-docs:
cd dbt_project && dbt docs generate --profiles-dir . && dbt docs serve --profiles-dir .
# ── Docker ───────────────────────────────────────────────────────────────────
up:
docker compose up --build
down:
docker compose down
logs:
docker compose logs -f agent
# ── pgvector index builders (run once, outside Docker) ───────────────────────
build-pgvector:
PG_HOST=localhost python scripts/build_pgvector.py
build-fingerprints:
PG_HOST=localhost python scripts/build_fingerprints.py
seed-fingerprints:
PG_HOST=localhost python scripts/seed_fingerprints.py
# ── Shortcut: full setup from scratch ────────────────────────────────────────
setup: dbt-compile build-pgvector seed-fingerprints
@echo "Setup complete. Run 'make up' to start all services."
@echo "Optional: run 'make build-fingerprints' if you have ACCOUNTADMIN access to seed real query history."