update kafka, add 2.1.1, 2.2.0, update README

This commit is contained in:
2019-04-15 20:24:13 +08:00
parent fed0d6a0e9
commit 0a000bdcd9
7 changed files with 200 additions and 1 deletions

20
kafka/2.1.1/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM openjdk:8-jre-alpine
MAINTAINER Newnius <newnius.cn@gmail.com>
# Prerequisites
RUN apk add --no-cache bash
# Install Kafka
RUN wget -O kafka.tgz https://archive.apache.org/dist/kafka/2.1.1/kafka_2.12-2.1.1.tgz && \
tar -xzf kafka.tgz -C /usr/local/ && rm kafka.tgz
RUN ln -s /usr/local/kafka_2.12-2.1.1 /usr/local/kafka
ENV KAFKA_HOME /usr/local/kafka
WORKDIR $KAFKA_HOME
ADD start_kafka.sh /etc/start_kafka.sh
CMD ["/etc/start_kafka.sh"]