Build local product stack with Vault-managed secrets (#42)

This commit is contained in:
Stephan D committed 2026-09-12 21:04:42 +02:00
1 parent 8e2ef7aa88
commit 184a3be413
32 files changed
+1191 -10

No files matched your search

+35 -4
View File
@@ -17,10 +17,12 @@ test-frontend:
.PHONY: test-backend lint-backend run-backend
test-backend: generate-notifications
cd backend/shared && go test -race ./...
cd backend/notifications/interface && go test -race ./...
cd backend/notifications && go test -race ./...
cd backend/product && go test -race ./...
docker pull mongo:latest
docker pull nats:latest
cd backend/shared && go test -race -count=1 ./...
cd backend/notifications/interface && go test -race -count=1 ./...
cd backend/notifications && go test -race -count=1 ./...
cd backend/product && go test -race -count=1 ./...
lint-backend: generate-notifications
cd backend/product && go test ./architecture
@@ -49,3 +51,32 @@ package-notifications-interface: generate-notifications
mkdir -p dist
tar -czf dist/notifications-proto-v1.tar.gz -C backend/notifications/interface proto README.md
tar -czf dist/notifications-go-v1.tar.gz -C backend/notifications/interface go.mod go.sum notifications README.md
# Local product stack. Releases are resolved afresh, then pinned by digest.
COMPOSE = docker compose --env-file .local/dev/images.env
.PHONY: build up down logs ps test-dev
build:
python3 dev/images.py
$(COMPOSE) pull vault mongo
$(COMPOSE) build --pull
up:
python3 dev/local.py up
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs --tail=100 -f
ps:
$(COMPOSE) ps
test-dev:
python3 -m unittest discover -s dev -p 'test_*.py'
python3 dev/local.py verify
.PHONY: test-dev-infra
test-dev-infra:
python3 -m unittest discover -s dev -p 'test_*.py'
python3 dev/local.py verify-infra