First test kinda working
This commit is contained in:
36
Makefile
36
Makefile
@@ -1,14 +1,19 @@
|
||||
# ============================================================
|
||||
# quic_ecs_dt — top-level Makefile
|
||||
# Targets:
|
||||
# make render — build the paper PDF
|
||||
# make preview — live-reload preview in browser
|
||||
# make build — cargo build --release (native)
|
||||
# make build-cm5 — cargo build --release (aarch64 cross)
|
||||
# make clean — remove generated outputs
|
||||
# make demo — one-shot: certs → build → VM+Grafana →
|
||||
# substrate → simulator (Ctrl-C cleans up)
|
||||
# make render — build the paper PDF
|
||||
# make preview — live-reload preview in browser
|
||||
# make build — cargo build --release (native)
|
||||
# make build-cm5 — cargo build --release (aarch64 cross)
|
||||
# make monitoring-up — start VictoriaMetrics + Grafana (docker)
|
||||
# make monitoring-down — stop them
|
||||
# make monitoring-logs — tail the monitoring stack
|
||||
# make clean — remove generated outputs
|
||||
# ============================================================
|
||||
|
||||
.PHONY: render preview build build-cm5 clean certs
|
||||
.PHONY: render preview build build-cm5 clean certs monitoring-up monitoring-down monitoring-logs demo
|
||||
|
||||
VENV := $(HOME)/.venv/quic_ecs
|
||||
PYTHON := $(VENV)/bin/python
|
||||
@@ -53,6 +58,25 @@ deploy-cm5: build-cm5
|
||||
scp target/aarch64-unknown-linux-gnu/release/quic_ecs_dt \
|
||||
$(CM5_USER)@$(CM5_HOST):$(CM5_BIN_DIR)/
|
||||
|
||||
# One-shot demo runner — see scripts/demo.sh
|
||||
demo:
|
||||
@./scripts/demo.sh
|
||||
|
||||
# Monitoring (VictoriaMetrics + Grafana, auto-provisioned)
|
||||
monitoring-up:
|
||||
docker compose -f monitoring/docker-compose.yml up -d
|
||||
@echo ""
|
||||
@echo "Grafana: http://localhost:3000 (admin / admin, or anonymous Admin)"
|
||||
@echo " • runtime dashboard: quic_ecs_dt → quic_ecs_dt — substrate runtime"
|
||||
@echo " • sensors dashboard: quic_ecs_dt → quic_ecs_dt — sensors"
|
||||
@echo "VictoriaMetrics: http://localhost:8428"
|
||||
|
||||
monitoring-down:
|
||||
docker compose -f monitoring/docker-compose.yml down
|
||||
|
||||
monitoring-logs:
|
||||
docker compose -f monitoring/docker-compose.yml logs -f
|
||||
|
||||
# Clean
|
||||
clean:
|
||||
cargo clean
|
||||
|
||||
Reference in New Issue
Block a user