-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 1.21 KB
/
Copy pathMakefile
File metadata and controls
37 lines (26 loc) · 1.21 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
# cwl-idp — developer entrypoints. Works with docker OR podman compose.
COMPOSE ?= docker compose
SERVICE_DIR := services/account_unification
.PHONY: help up down logs ready seed-bootstrap test lint install validate-realm
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN{FS=":.*?## "}{printf " \033[36m%-16s\033[0m %s\n",$$1,$$2}'
up: ## Bring up the IdP stack (Keycloak + Postgres + admin service)
$(COMPOSE) up -d
down: ## Tear down the stack (keep volumes)
$(COMPOSE) down
logs: ## Follow logs for all services
$(COMPOSE) logs -f
ready: ## Poll readiness of every component
./deploy/scripts/healthz.sh
seed-bootstrap: ## Create a local sqlite KV bootstrap store for dev
python $(SERVICE_DIR)/tools/seed_config_store.py
validate-realm: ## Validate the Keycloak realm config-as-code
python scripts/validate_realm.py deploy/keycloak/realm-cwl.json
install: ## Install the admin service with dev extras
cd $(SERVICE_DIR) && python -m pip install -e '.[dev]'
test: ## Run the account-unification unit tests
cd $(SERVICE_DIR) && python -m pytest -q
lint: ## Ruff lint the admin service
cd $(SERVICE_DIR) && python -m ruff check app tests tools
cd $(SERVICE_DIR) && python -m interrogate .