blob: 7f297d332ef249ed5535cceeefdafca7d74d955b [file] [log] [blame]
khenb95fe9a2016-10-05 11:15:25 -07001FROM anapsix/alpine-java
2
3MAINTAINER Wurstmeister
4
5RUN apk add --update unzip wget curl docker jq coreutils
6
7ENV KAFKA_VERSION="0.10.0.1" SCALA_VERSION="2.11"
8ADD download-kafka.sh /tmp/download-kafka.sh
9RUN /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
10
11VOLUME ["/kafka"]
12
13ENV KAFKA_HOME /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION}
14ADD start-kafka.sh /usr/bin/start-kafka.sh
15ADD broker-list.sh /usr/bin/broker-list.sh
16ADD create-topics.sh /usr/bin/create-topics.sh
17
18# Use "exec" form so that it runs as PID 1 (useful for graceful shutdown)
19CMD ["start-kafka.sh"]