Skip to content

Commit 971c811

Browse files
committed
https://github.com/wurstmeister/kafka-docker/issues/144
* added symling to /opt/kafka * added $KAFKA_HOME/bin to $PATH
1 parent 0bba854 commit 971c811

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ RUN apk add --update unzip wget curl docker jq coreutils
66

77
ENV KAFKA_VERSION="0.10.1.0" SCALA_VERSION="2.11"
88
ADD download-kafka.sh /tmp/download-kafka.sh
9-
RUN chmod a+x /tmp/download-kafka.sh && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
9+
RUN chmod a+x /tmp/download-kafka.sh && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz && ln -s /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION} /opt/kafka
1010

1111
VOLUME ["/kafka"]
1212

13-
ENV KAFKA_HOME /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION}
13+
ENV KAFKA_HOME /opt/kafka
14+
ENV PATH ${PATH}:${KAFKA_HOME}/bin
1415
ADD start-kafka.sh /usr/bin/start-kafka.sh
1516
ADD broker-list.sh /usr/bin/broker-list.sh
1617
ADD create-topics.sh /usr/bin/create-topics.sh

0 commit comments

Comments
 (0)