WIP simple-consumer--kraft-confluentinc
authorKai Moritz <kai@juplo.de>
Mon, 24 Oct 2022 16:57:02 +0000 (18:57 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 24 Oct 2022 16:57:02 +0000 (18:57 +0200)
docker-compose.yml
run.sh [new file with mode: 0755]

index 1100b21..818815c 100644 (file)
@@ -6,6 +6,7 @@ services:
       - 9081:9081
     volumes:
       - ./kafka-1.properties:/etc/kafka/kafka.properties:ro
+      - ./run.sh:/etc/confluent/docker/run:ro
       - data-1:/var/lib/data/kafka
 
   kafka-2:
@@ -19,6 +20,7 @@ services:
           - kafka
     volumes:
       - ./kafka-2.properties:/etc/kafka/kafka.properties:ro
+      - ./run.sh:/etc/confluent/docker/run:ro
       - data-2:/var/lib/data/kafka
 
   kafka-3:
@@ -27,6 +29,7 @@ services:
       - 9083:9083
     volumes:
       - ./kafka-3.properties:/etc/kafka/kafka.properties:ro
+      - ./run.sh:/etc/confluent/docker/run:ro
       - data-3:/var/lib/data/kafka
 
   setup:
diff --git a/run.sh b/run.sh
new file mode 100755 (executable)
index 0000000..eae2973
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+#
+
+. /etc/confluent/docker/bash-config
+
+echo "===> User"
+id
+
+export COMMAND=kafka
+echo "===> Launching ... "
+exec /etc/confluent/docker/launch