-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
19 lines (13 loc) · 811 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
up: ## Starts all the containers required run the demo
docker-compose up -d
clickhouse-set-schemas: ## Set the schemas for the demo
docker-compose exec clickhouse bash -c "cat /opt/init.sql | clickhouse-client -m -n"
rabbit-insert-messages: ## Insert messages in defined queue
docker-compose exec rabbitmq bash -c "/opt/resources/publisher.sh"
clickhouse-read-events: ## Read from the materialized view
docker-compose exec clickhouse bash -c "clickhouse-client --query=\"SELECT * FROM event.event LIMIT 10 FORMAT PrettyCompactMonoBlock\""
down: ## Shuts down all the containers and removes their volume
docker-compose down --volumes --remove-orphans