From 72b35da9f53601dee5e9cb5c47d3e6142c9b7a62 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 26 Jul 2017 05:20:10 +0200 Subject: [PATCH] Fixes kafka-server-start etc --- kafka/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kafka/Dockerfile b/kafka/Dockerfile index 4d41aa6..4a0ced1 100644 --- a/kafka/Dockerfile +++ b/kafka/Dockerfile @@ -23,11 +23,13 @@ WORKDIR /opt/kafka RUN set -ex; \ \ - bash -ec 'for F in /opt/kafka/bin/*.sh; do ln -sv $F /usr/local/bin/${F:15:-3}; done;' \ + bash -ec 'for F in /opt/kafka/bin/*.sh; do cp -v $F /usr/local/bin/${F:15:-3}; done;' \ rm /usr/local/bin/kafka-run-class; \ sed -i 's|exec $(dirname $0)/kafka-run-class.sh |exec /opt/kafka/bin/kafka-run-class.sh |' /usr/local/bin/*; \ + sed -i 's|base_dir=$(dirname $0)|base_dir=/opt/kafka/bin|' /usr/local/bin/*; \ \ - echo "TODO how do we handle log4j.properties" + echo "TODO how do we handle log4j.properties"; \ + grep 'Dlog4j.configuration' /usr/local/bin/* /opt/kafka/bin/kafka-run-class.sh COPY docker-help.sh /usr/local/bin/docker-help ENTRYPOINT ["docker-help"]