From: Kai Moritz Date: Mon, 24 Oct 2022 16:57:02 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=16237ccdca259e4659403d5a6e82f6f0d7adb6f3;p=demos%2Fkafka%2Ftraining WIP --- 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