-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (39 loc) · 1.58 KB
/
Copy pathMakefile
File metadata and controls
54 lines (39 loc) · 1.58 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
51
52
53
54
# =============================================================================
# Acropolis — Makefile
# =============================================================================
.PHONY: init up down status logs urls backup smoke-test enterprise community help
SHELL := /bin/bash
# Default edition from .env or fallback
EDITION ?= community
help: ## Show available targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}'
init: ## Initialize Acropolis (create .env, network, dirs)
@./acropolis.sh init
up: ## Start services (use EDITION=enterprise for enterprise)
@./acropolis.sh up --edition $(EDITION)
community: ## Start Community Edition
@./acropolis.sh up --edition community
enterprise: ## Start Enterprise Edition
@./acropolis.sh up --edition enterprise
down: ## Stop all services
@./acropolis.sh down
status: ## Show service status
@./acropolis.sh status
logs: ## Follow all logs (use SERVICE=grafana for specific)
ifdef SERVICE
@./acropolis.sh logs $(SERVICE)
else
@./acropolis.sh logs
endif
urls: ## Show service URLs
@./acropolis.sh urls
backup: ## Backup all volume data
@./acropolis.sh backup
smoke-test: ## Run health checks on all services
@./acropolis.sh smoke-test
clean: ## Remove all volumes and data (DESTRUCTIVE)
@echo "WARNING: This will destroy all Acropolis data!"
@read -p "Are you sure? [y/N] " confirm && [ "$$confirm" = "y" ] && \
docker compose -f docker-compose.yml -f docker-compose.community.yml -f docker-compose.enterprise.yml down -v || \
echo "Cancelled."