From 57434545bf39e60483db70d151855400182ddbfa Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Sun, 24 Nov 2024 20:24:28 +0100 Subject: [PATCH] - Comment out advertised.listeners kafka config entry. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ac6e3af..e7f0a51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,7 +58,8 @@ RUN urpmi --force wget && mkdir -p $( dirname ${KAFKA_HOME}) \ && wget -q -O- ${KAFKA_DOWNLOAD_URL} | tar xzf - -C $( dirname ${KAFKA_HOME}) \ && mv ${KAFKA_HOME}* ${KAFKA_HOME} \ - && sed -i "s%^log.dirs=/tmp/kraft-combined-logs%log.dirs=${KAFKA_LIB}%" ${KAFKA_CONFIG} \ + && sed -i "s%^advertised.listeners=%#advertised.listeners=%" ${KAFKA_CONFIG} \ + && sed -i "s%^log.dirs=/tmp/kraft-combined-logs%log.dirs=${KAFKA_LIB}%" ${KAFKA_CONFIG} \ && ln -s ${KAFKA_LOG} ${KAFKA_HOME}/logs \ && echo -e "${KAFKAD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/kafkad \ && chmod a+x /etc/init.d/kafkad \