-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 893 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 893 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
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: docker-build
docker-build: ## Build project with compose
docker compose build
.PHONY: docker-up
docker-up: ## Run project with compose
docker compose up --remove-orphans
.PHONY: docker-create-db-migration
docker-create-db-migration: ## Create new alembic database migration aka database revision.
docker compose up -d db | true
docker compose run --no-deps dispatch-service alembic revision --autogenerate -m "$(msg)"
.PHONY: docker-apply-db-migrations
docker-apply-db-migrations: ## apply alembic migrations to database/schema
docker compose run --rm dispatch-service alembic upgrade head
.PHONY: docker-test
docker-test: ## Run project tests
docker compose -f compose.yaml run dispatch-service pytest tests -vv