-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (39 loc) · 1.72 KB
/
Copy pathMakefile
File metadata and controls
55 lines (39 loc) · 1.72 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
55
.PHONY: help tidy build test run-identity run-application run-storage docker-build docker-up docker-down docker-deploy api-docs api-lint
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
tidy: ## Tidy Go modules
go mod tidy
build: ## Build all Go service binaries
go build -o bin/identity ./cmd/identity
go build -o bin/application ./cmd/application
go build -o bin/storage ./cmd/storage
test: ## Run Go tests
go test ./...
api-docs: ## Preview OpenAPI docs (http://localhost:8089)
@chmod +x ./scripts/api-docs.sh
@./scripts/api-docs.sh
api-lint: ## Validate docs/api/openapi.yaml
@chmod +x ./scripts/api-lint.sh
@./scripts/api-lint.sh
seed-user: ## Create a dev login user (email/password overridable via SEED_EMAIL/SEED_PASSWORD)
@chmod +x ./scripts/seed-user.sh
@./scripts/seed-user.sh --email user@example.com --password secret123
run-identity: ## Run identity service locally
go run ./cmd/identity
run-application: ## Run application service locally
go run ./cmd/application
run-storage: ## Run storage service locally
go run ./cmd/storage
docker-build: ## Build Docker images
./scripts/docker-build.sh
docker-up: ## Start the full Docker stack
./scripts/docker-up.sh all
docker-down: ## Stop the Docker stack
./scripts/docker-down.sh
docker-deploy: ## Build and deploy the full stack
./scripts/docker-deploy.sh
docker-deploy-host: ## Deploy using host networking (workaround for broken docker-proxy)
DOCKER_HOST_NETWORK=1 ./scripts/docker-deploy.sh
fix-docker-proxy: ## Permanently fix broken localhost port mappings (requires sudo)
@chmod +x ./scripts/fix-docker-proxy.sh
@sudo ./scripts/fix-docker-proxy.sh