This images has Kafka with two nodes running at port 9091 and 9092. This image use the inbuilt zookeeper and it is not necessary to map to external zookeeper.
Following Volumes can be mounted.
VOLUME /opt/kafka_2.12-0.11.0.1/logs/kafka-2-logs
VOLUME /opt/kafka_2.12-0.11.0.1/scripts
DOCKER FILE FROM knowesis/alpine-java8 MAINTAINER Suresh Babu [email protected]
ENV SCALA_VERSION 2.12 ENV KAFKA_VERSION 0.11.0.1 ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
RUN apk add --update unzip wget curl &&
wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz &&
tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt &&
rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz
RUN mkdir -p /opt/kafka_2.12-0.11.0.1/logs/kafka-1-logs &&
mkdir -p /opt/kafka_2.12-0.11.0.1/logs/kafka-2-logs &&
mkdir -p /opt/kafka_2.12-0.11.0.1/scripts
COPY server1.properties server2.properties /opt/kafka_2.12-0.11.0.1/config/ COPY entrypoint.sh start-kafka1.sh start-kafka2.sh /opt/kafka_2.12-0.11.0.1/scripts/
RUN chmod a+x $KAFKA_HOME/scripts/*.sh
VOLUME /opt/kafka_2.12-0.11.0.1/logs/kafka-2-logs VOLUME /opt/kafka_2.12-0.11.0.1/scripts
EXPOSE 9091 9092 CMD ["/opt/kafka_2.12-0.11.0.1/scripts/entrypoint.sh"]
Content type
Image
Digest
Size
135.7 MB
Last updated
almost 8 years ago
docker pull knowesis/kafka:1.1