-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 753 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 753 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
.DEFAULT_GOAL := help
.PHONY: help up down
## Show available commands
help:
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
up: ## Start docker-compose
docker-compose up -d
logs: ## Tail logs from docker-compose
docker-compose logs -f
down: ## Stop docker-compose
docker-compose down
build: ## Build docker-compose
docker-compose build
broker-sh: ## Open a bash to the broker
docker exec -it rust_broker bash
consumer-sh: ## Open a bash to the consumer
docker exec -it python_consumer bash
python-lint: ## Black linter for python
black consumer
rust-lint: ## Cargo fmt
cargo fmt --manifest-path broker/Cargo.toml