github.com/aclisp/heapster@v0.19.2-0.20160613100040-51756f899a96/kafka/Dockerfile (about) 1 # Kafka with Zookeeper for kubernetes' heapster 2 3 FROM java:openjdk-8-jre 4 5 ENV DEBIAN_FRONTEND noninteractive 6 ENV SCALA_VERSION 2.11 7 ENV KAFKA_VERSION 0.8.2.1 8 ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION" 9 10 RUN apt-get update && \ 11 apt-get install -y zookeeper wget supervisor dnsutils && \ 12 rm -rf /var/lib/apt/lists/* && \ 13 apt-get clean && \ 14 wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \ 15 tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && \ 16 rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz 17 18 ADD scripts/start-kafka.sh /usr/bin/start-kafka.sh 19 RUN chmod +x /usr/bin/start-kafka.sh 20 21 # Supervisor config 22 ADD supervisor/kafka.conf supervisor/zookeeper.conf /etc/supervisor/conf.d/ 23 24 # 2181 is zookeeper, 9092 is kafka 25 EXPOSE 2181 9092 26 27 CMD ["supervisord", "-n"]