-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (31 loc) · 1.23 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
40
41
42
43
44
45
46
47
.PHONY: clean-kafka run-kafka logs-kafka
.PHONY: build-dev clean-dev run-dev logs-dev
.PHONY: clean-prod run-prod logs-prod stop-prod
.PHONY: clean-all
# KAFKA
clean-kafka:
docker-compose -f containers/composes/dc.dev.kafka.yml down
run-kafka:
docker-compose -f containers/composes/dc.dev.kafka.yml up -d
logs-kafka:
docker-compose -f containers/composes/dc.dev.kafka.yml logs -f
# DEV
build-dev:
docker build -t example -f containers/images/Dockerfile . && docker build -t example-random -f containers/images/Dockerfile.tools.random . && docker build -t example-device -f containers/images/Dockerfile.tools.device .
clean-dev:
docker-compose -f containers/composes/dc.dev.yml down --timeout 120
run-dev:
docker-compose -f containers/composes/dc.dev.yml up --timeout 120
logs-dev:
docker-compose -f containers/composes/dc.dev.yml logs -f --tail 100
# PROD
clean-prod:
docker-compose -f containers/composes/dc.prod.yml down --timeout 120
run-prod:
docker-compose -f containers/composes/dc.prod.yml up -d --timeout 120
logs-prod:
docker-compose -f containers/composes/dc.prod.yml logs -f --tail 100
stop-prod:
docker-compose -f containers/composes/dc.prod.yml stop --timeout 120
# Tools
clean-all: clean-kafka clean-dev clean-prod