From 16237ccdca259e4659403d5a6e82f6f0d7adb6f3 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 24 Oct 2022 18:57:02 +0200 Subject: [PATCH] WIP --- docker-compose.yml | 3 +++ run.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 run.sh diff --git a/docker-compose.yml b/docker-compose.yml index 1100b21..818815c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 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 -- 2.20.1