diff options
Diffstat (limited to 'docker-kafka-persistent')
-rw-r--r-- | docker-kafka-persistent/Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docker-kafka-persistent/Dockerfile b/docker-kafka-persistent/Dockerfile new file mode 100644 index 0000000..45d78e7 --- /dev/null +++ b/docker-kafka-persistent/Dockerfile @@ -0,0 +1,18 @@ + +FROM java:openjdk-8-jre + +ENV kafka_version=0.10.1.0 +ENV scala_version=2.11.8 +ENV kafka_bin_version=2.11-$kafka_version + +RUN curl -SLs "http://www.scala-lang.org/files/archive/scala-$scala_version.deb" -o scala.deb \ + && dpkg -i scala.deb \ + && rm scala.deb \ + && curl -SLs "http://www-eu.apache.org/dist/kafka/$kafka_version/kafka_$kafka_bin_version.tgz" | tar -xzf - -C /opt \ + && mv /opt/kafka_$kafka_bin_version /opt/kafka + +WORKDIR /opt/kafka +ENTRYPOINT ["bin/kafka-server-start.sh"] + +RUN sed -i 's/zookeeper.connect=localhost:2181/zookeeper.connect=zookeeper:2181/' config/server.properties +CMD ["config/server.properties"] |