-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMakefile
65 lines (51 loc) · 1.89 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# e.g. make up RUNTIME (py2, py3 or pypy)
RUNTIME=py2
.PHONY: build
build:
docker build -t mre0/kafka-influxdb .
.PHONY: push
push:
docker push mre0/kafka-influxdb
.PHONY: run
run:
docker run mre0/kafka-influxdb
.PHONY: test
test:
python setup.py test
.PHONY: all
all: clean up
.PHONY: up
up:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml build
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml up -d --force-recreate
.PHONY: stop
stop:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml stop
.PHONY: down
down:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml down
.PHONY: logs
logs:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml logs
.PHONY: stats
stats:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml logs kafkainfluxdb
.PHONY: messages
messages:
docker-compose -f docker/common-services.yml up kafkacat
.PHONY: clean
clean:
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml kill
docker-compose -f docker/common-services.yml -f docker/${RUNTIME}/docker-compose.yml rm -f
.PHONY: help
help:
@echo "Command Description"
@echo "make docker-compose up"
@echo "make up docker-compose up"
@echo "make stop docker-compose stop"
@echo "make down docker-compose down"
@echo "make logs docker-compose logs"
@echo "make stats docker-compose logs kafkainfluxdb"
@echo "make messages Create sample messages for benchmark"
@echo "make clean docker-compose clean && docker-compose rm -f"
@echo "make <cmd> RUNTIME=<env> Choose runtime environment (py2, py3, pypy or logstash). Default: py2"