-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
39 lines (30 loc) · 1.05 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
MVN := ./mvnw
.PHONY: all
all: build docker-base-up docker-image topics docker-apps-up
.PHONY: format
format:
${MVN} spring-javaformat:apply
.PHONY: build
build:
${MVN} clean install
.PHONY: docker-image
docker-image:
${MVN} jib:dockerBuild
.PHONY: topics
topics:
docker-compose exec kafka kafka-topics --zookeeper zookeeper:2181 --create --topic events-v1 --partitions 1 --replication-factor 1 --if-not-exists
docker-compose exec kafka kafka-topics --zookeeper zookeeper:2181 --create --topic enriched-events-v1 --partitions 1 --replication-factor 1 --if-not-exists
docker-compose exec kafka kafka-topics --zookeeper zookeeper:2181 --create --topic metadata-v1 --partitions 1 --replication-factor 1 --if-not-exists
.PHONY: docker-base-up
docker-base-up:
docker-compose up -d
.PHONY: docker-apps-up
docker-apps-up:
docker-compose -f docker-compose.yml -f docker-compose.apps.yml up -d
.PHONY: docker-destroy
docker-destroy:
docker-compose down --remove-orphans
.PHONY: perf-test
perf-test:
curl http://localhost:8081
wrk -c 3 -t 3 -d 3 http://localhost:8080