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