-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 1.07 KB
/
Makefile
File metadata and controls
32 lines (23 loc) · 1.07 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
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
build-up: ## [DEV] Build and start the Docker containers
docker compose -f docker-compose-dev.yml up --build
build-up-d: ## [DEV] Build and start the Docker containers in detached mode
docker compose -f docker-compose-dev.yml up --build -d
build-up-prod: ## [PROD] Build and start the Docker containers
docker compose -f docker-compose-prod.yml up --build
build-up-d-prod: ## [PROD] Build and start the Docker containers in detached mode
docker compose -f docker-compose-prod.yml up --build -d
bash: ## Open a bash shell in the web container
docker compose run rage-fastapi bash
run: ## Start the Docker containers
docker compose up
stop: ## Stop the Docker containers
docker compose down
init-pre-commit: ## Init pre-commit
pip install -r requirements-dev.txt
pre-commit clean
pre-commit install
pre-commit run --all-files
tests: ## Run tests in the Docker container
docker compose -f docker-compose-dev.yml run --rm test