add local cluster config

This commit is contained in:
2026-05-13 12:53:55 -03:00
parent 957e45b8ad
commit 55aa31eff5
18 changed files with 313 additions and 5 deletions

View File

@@ -1,7 +1,8 @@
.PHONY: up down seed invoke install logs console clean graphs docs
.PHONY: up down seed invoke install logs console clean graphs docs kind tilt-up tilt-down
PY ?= .venv/bin/python
PIP ?= .venv/bin/pip
COMPOSE := docker compose -f ctrl/docker-compose.yml
DOT_SRC := $(wildcard docs/graphs/*.dot)
SVG_OUT := $(DOT_SRC:.dot=.svg)
@@ -11,18 +12,27 @@ install:
$(PIP) install -r requirements.txt
up:
docker compose up -d
$(COMPOSE) up -d
@echo "MinIO API: http://localhost:9000"
@echo "MinIO console: http://localhost:9001 (minioadmin / minioadmin)"
down:
docker compose down
$(COMPOSE) down
clean:
docker compose down -v
$(COMPOSE) down -v
logs:
docker compose logs -f minio
$(COMPOSE) logs -f minio
kind:
bash ctrl/kind-config.sh
tilt-up:
cd ctrl && tilt up --context kind-eth
tilt-down:
cd ctrl && tilt down --context kind-eth
seed:
@if [ -z "$$SOURCE_DIR" ]; then echo "set SOURCE_DIR=<path-to-pdfs>"; exit 2; fi