-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 978 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 978 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
.DEFAULT_GOAL := help
NO_COLOR=\033[0m
OK_COLOR=\033[34;01m
ERROR_COLOR=\033[31;01m
WARN_COLOR=\033[33;01m
.PHONY: help
help: ## Show available targets
@echo "\033[1m\nTargets List:$(NO_COLOR)\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | \
sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: up
up: ## Start local warehouse and create buckets
@echo "$(OK_COLOR)==> Provisioning resources ...$(NO_COLOR)"
@docker compose up -d
.PHONY: down
down: ## Stop local warehouse
@echo "$(OK_COLOR)==> Destroying resources ...$(NO_COLOR)"
@docker compose down --volumes
.PHONY: trino-cli
trino-cli: ## Access trino-cli
@echo "$(OK_COLOR)==> Opening Trino CLI ...$(NO_COLOR)"
@docker container exec -it trino-coordinator trino
.PHONY: mariadb-cli
mariadb-cli: ## Access metadata in mariadb-cli
@echo "$(OK_COLOR)==> Opening MariaDB CLI ...$(NO_COLOR)"
@docker exec -ti mariadb /usr/bin/mariadb -padmin