forked from astronomer/airflow-provider-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 1.36 KB
/
Makefile
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
.PHONY: dev clean stop build-run restart restart-all run-tests run-static-checks help
dev: ## Create a development Environment using `docker-compose` file.
docker-compose -f dev/docker-compose.yaml up -d
logs: ## View logs of the all the containers
docker-compose -f dev/docker-compose.yaml logs --follow
stop: ## Stop all the containers
docker-compose -f dev/docker-compose.yaml down
clean: ## Remove all the containers along with volumes
docker-compose -f dev/docker-compose.yaml down --volumes --remove-orphans
rm -rf dev/logs
build-run: ## Build the Docker Image & then run the containers
docker-compose -f dev/docker-compose.yaml up --build -d
restart: ## Restart Triggerer & Scheduler container
docker-compose -f dev/docker-compose.yaml restart airflow-triggerer airflow-scheduler
restart-all: ## Restart all the containers
docker-compose -f dev/docker-compose.yaml restart
run-tests: ## Run CI tests
docker build -f scripts/ci/Dockerfile . -t kafka-providers-ci
docker run --rm -it kafka-providers-ci pytest tests
run-static-checks: ## Run CI static code checks
docker build -f scripts/ci/Dockerfile . -t kafka-providers-ci
docker run --rm -it kafka-providers-ci pre-commit run --all-files
help: ## Prints this message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'