File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ RUN wget -q http://mirror.gopotato.co.uk/apache/kafka/0.8.1.1/kafka_2.8.0-0.8.1.
8
8
RUN tar xfz /tmp/kafka_2.8.0-0.8.1.1.tgz -C /opt
9
9
10
10
ENV KAFKA_HOME /opt/kafka_2.8.0-0.8.1.1
11
- ADD start-kafka.sh /usr/bin/start-kafka.sh
11
+ ADD start-kafka.sh /usr/bin/start-kafka.sh
12
+ ADD broker-list.sh /usr/bin/broker-list.sh
12
13
CMD start-kafka.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ CONTAINER=` docker ps | grep kafkadocker | head -n 1 | awk ' {print $1}' `
4
+ docker port $CONTAINER 9092 | sed -r " s/(0.0.0.0):(.*)/$HOST_IP :\2/g"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- docker run -link zookeeper :zk -i -t wurstmeister/kafka:0.8.1 /bin/bash
2
+ docker run -v /var/run/docker.sock:/var/run/docker.sock -- link kafkadocker_zookeeper_1 :zk -e HOST_IP= $1 - i -t wurstmeister/kafka:latest /bin/bash
3
3
You can’t perform that action at this time.
0 commit comments