-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 910 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 910 Bytes
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
.PHONY: up down clean logs test verify format db help
help:
@echo "Available targets:"
@echo " up - Build and start all services (docker compose up -d --build)"
@echo " down - Stop services, keep data volumes"
@echo " clean - Stop services and remove data volumes"
@echo " logs - Tail app service logs"
@echo " test - Run unit tests (no Docker required)"
@echo " verify - Run unit + integration tests (requires Docker)"
@echo " format - Apply Spotless formatter to all Java files"
@echo " db - Open psql shell in the running postgres container"
up:
docker compose up -d --build
down:
docker compose down
clean:
docker compose down -v
logs:
docker compose logs -f app
test:
./mvnw test
verify:
./mvnw verify
format:
./mvnw spotless:apply
db:
@source .env 2>/dev/null || true; \
docker compose exec postgres psql -U "$${POSTGRES_USER}" "$${POSTGRES_DB}"