Dockerfile 572 B

1234567891011121314151617181920
  1. FROM docker.shemic.com/java/base:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV KAFKA_HOME=/usr/local/kafka
  5. ENV KAFKA_VERSION=2.11
  6. ENV KAFKA_PATH=0.9.0.1
  7. ENV PATH=$PATH:$KAFKA_HOME/bin
  8. # install
  9. RUN curl -O ${MIRRORS}apache/kafka/$KAFKA_PATH/kafka_$KAFKA_VERSION-$KAFKA_PATH.tgz && \
  10. tar -xzvf kafka_$KAFKA_VERSION-$KAFKA_PATH.tgz && \
  11. mv kafka_$KAFKA_VERSION-$KAFKA_PATH $KAFKA_HOME && \
  12. rm kafka_$KAFKA_VERSION-$KAFKA_PATH.tgz && \
  13. mkdir -p /root/kafka/logs
  14. COPY kafka.sh /entrypoint/kafka.sh
  15. VOLUME ["/usr/local/kafka/conf"]