-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (30 loc) · 1008 Bytes
/
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
PROJECT_NAME := "Streaming programming assignment"
BOLD := \033[1m
RESET := \033[0m
.DEFAULT: help
help:
@echo "$(BOLD)$(PROJECT_NAME)$(RESET)"
@echo "test message"
build:
@echo "📦$(BOLD)Build twitter service$(RESET)"
docker build -t twitter-service twitter-service/
@echo "📦$(BOLD)Build stocks service$(RESET)"
docker build -t stocks-service stocks-service/
@echo "📦$(BOLD)Build enricher service$(RESET)"
docker build -t combiner-service combiner-service/
services-start:
docker-compose -f docker-compose-services.yaml up
services-stop:
docker-compose -f docker-compose-services.yaml down
install-kaf:
curl https://raw.githubusercontent.com/birdayz/kaf/master/godownloader.sh | BINDIR=. bash && export PATH=$PATH:./
kafka-start:
docker-compose up -d
kafka-stop:
docker-compose down
kafka-clean:
rm -rf .zk-single-kafka-single
kafka-create-topics:
kafkacat -C -t tweets -b 127.0.0.1:9092
kafkacat -C -t stocks -b 127.0.0.1:9092
kafkacat -C -t combined -b 127.0.0.1:9092