chore(scripts): add make down and clean targets
- Why: - intensive development needs quick cluster stop/cleanup commands - current Makefile had only up and pipeline/monitoring targets - What: - add make target down for standard docker compose shutdown - add make target clean for full cleanup with volumes and orphans - update OPERATIONS runbook with new make commands - Check: - make -n down clean
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
.PHONY: up ddl data transform reload-monitoring recover-monitoring
|
||||
.PHONY: up down clean ddl data transform reload-monitoring recover-monitoring
|
||||
|
||||
COMPOSE ?= docker compose
|
||||
|
||||
up:
|
||||
$(COMPOSE) up -d
|
||||
|
||||
# Остановить и удалить контейнеры/сети текущего проекта
|
||||
down:
|
||||
$(COMPOSE) down
|
||||
|
||||
# Полная очистка окружения проекта (включая volumes)
|
||||
clean:
|
||||
$(COMPOSE) down -v --remove-orphans
|
||||
|
||||
ddl:
|
||||
bash ./scripts/apply_clickhouse_ddl.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user