Changeset 7:57202c4d5406

Added deploy target for kafka example
author unexist
date Mon, 30 Aug 2021 17:56:16 +0200
parents 5e77ac2c4e3f
children 3d44dca50191
files Makefile
diffstat 1 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Aug 30 17:55:59 2021 +0200
+++ b/Makefile	Mon Aug 30 17:56:16 2021 +0200
@@ -18,7 +18,16 @@
 list:
 	@curl -X 'GET' 'http://localhost:8080/todo' -H 'accept: */*' | jq .
 
-camel-deploy-todo:
-	kamel run --name todo --dev \
-		todo-service/src/main/java/dev/unexist/showcase/route/TodoRoute.java \
-		--save
\ No newline at end of file
+kat-listen:
+	kafkacat -t todo-created -b localhost:9092 -C
+
+# Kamel
+camel-deploy-rest:
+	kamel run --name todo-rest --dev \
+		todo-service/src/main/java/dev/unexist/showcase/route/TodoRestRoute.java \
+		--save
+
+camel-deploy-kafka:
+	kamel run --name todo-kafka --dev -e "KAFKA_BOOTSTRAP_SERVERS=redpanda.default.svc.cluster.local:9092" \
+		todo-service/src/main/java/dev/unexist/showcase/route/TodoKafkaRoute.java \
+		--save