- Comment out advertised.listeners kafka config entry.

This commit is contained in:
Arnaud G. GIBERT 2024-11-24 20:24:28 +01:00
parent 9539df8d80
commit 57434545bf

View File

@ -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 \