Repository navigation
Expand file tree
/
Copy pathJustfile
More file actions
50 lines (38 loc) · 1.49 KB
/
Copy pathJustfile
File metadata and controls
50 lines (38 loc) · 1.49 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
install:
@cargo install cargo-watch
@echo -e "\\e[1;32minstalling core dependencies\\e[0m\n"
cargo fetch
@echo -e "\n\\e[1;32mDone\\e[0m"
@echo -e "\n\\e[1;34minstalling webui dependencies\\e[0m\n"
cd webui && npm i
@echo -e "\n\\e[1;32mDone\\e[0m"
run:
@cargo run -- run --config dev.vizier.yaml
run-d:
@cargo run -- run -d --config dev.vizier.yaml
shutdown:
@cargo run -- shutdown --config dev.vizier.yaml
dev:
cargo watch -s "just run"
# Jaeger all-in-one for local traces: UI on http://localhost:16686, OTLP on 4317 (gRPC) / 4318 (HTTP).
jaeger:
@docker rm -f vizier-jaeger >/dev/null 2>&1 || true
docker run -d --name vizier-jaeger -p 16686:16686 -p 4317:4317 -p 4318:4318 jaegertracing/jaeger:2.22.0
@echo -e "\n\e[1;32mJaeger UI: http://localhost:16686\e[0m"
jaeger-down:
@docker rm -f vizier-jaeger
# `just run` exporting traces to the local Jaeger (`just jaeger` first). Jaeger takes no
# metrics, so they're off here; point OTEL_EXPORTER_OTLP_ENDPOINT at a collector to get them.
# Prompts and replies are captured on the spans: fine locally, never in production.
run-otel:
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_METRICS_EXPORTER=none OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true cargo run -- run --config dev.vizier.yaml
dev-otel:
cargo watch -s "just run-otel"
docker:
@docker-compose down && docker-compose up -d
build:
@cd webui && npm run build
release:
@cargo build --release
catalogue-update:
python3 -I scripts/catalogue_update.py