-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
39 lines (28 loc) · 1.3 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
35
36
37
38
39
.DEFAULT_GOAL := help
.PHONY: help
tackle-install: ## Install tackle-box, a helper for managing repo
@if ! tackle -h >/dev/null 2>&1; then pip3 install tackle-box; fi
pull-repos: tackle-install ## Pull all the underlying repos
tackle repos.yaml --no-input
up: create ## Bring up the stack
docker-compose -f docker-stack.yml up -d;
down: ## Take down the
docker-compose -f docker-stack.yml down;
ps: ## Check the containers
docker-compose -f docker-stack.yml ps;
logs: ## Get the logs from the runnning services
docker-compose -f docker-stack.yml logs;
# create-v2: ## Merge all the sub-repo's docker-compose.yml files into one docker-stack.yml file
# ifeq (,$(wildcard .env))
# export $(cat .env | xargs)
# endif
# COMPOSE_FILE_SEPARATOR=: \
# COMPOSE_FILE=./docker-compose.db.yml:./docker-compose.traefik.yml \
# docker-compose \
# config > docker-stack.yml
create: ## Same as create-stack but with persisting data in a local volume for longer operation
COMPOSE_FILE=./docker-compose.yml:./docker-compose.admin.yml:./docker-compose.db.yml:./docker-compose.exporters.yml:./docker-compose.traefik.yml \
docker-compose \
config > docker-stack.yml
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'