forked from bf2fc6cc711aee1a0c2a/kafka-admin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (17 loc) · 921 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
WORKDIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
dev:
docker-compose --profile plain up -d ;\
mvn quarkus:dev -f kafka-admin/pom.xml -Dkafka.admin.bootstrap.servers=localhost:9092 -Dkafka.admin.basic.enabled=true -Dkafka.admin.oauth.enabled=false ;\
docker-compose down
.PHONY: dev
dev-tls: certgen
docker-compose --profile tls up -d ; \
mvn quarkus:dev -f kafka-admin/pom.xml -Dkafka.admin.bootstrap.servers=localhost:9093 -Dkafka.admin.basic.enabled=true -Dkafka.admin.oauth.enabled=false -Dkafka.admin.broker.tls.enabled=true -Dkafka.admin.broker.trusted.cert=$(shell base64 -w0 $(WORKDIR)/target/certs/ca.crt) ;\
docker-compose down
.PHONY: dev-tls
certgen:
rm -rvf $(WORKDIR)/target/certs; \
mkdir -p $(WORKDIR)/target/certs; \
$(WORKDIR)/hack/gen-ca.sh $(WORKDIR)/target/certs; \
$(WORKDIR)/hack/gen-kafka-certs.sh $(WORKDIR)/target/certs $(WORKDIR)/target/certs "password";
.PHONY: certgen