mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add kafka-manager
This commit is contained in:
parent
15448c1396
commit
5991b62aaa
@ -149,6 +149,7 @@ A collection of delicious docker recipes.
|
||||
- [x] grafana
|
||||
- [x] hugo
|
||||
- [x] hugo-arm
|
||||
- [x] kafka-manager
|
||||
- [x] jamapi
|
||||
- [x] joomla
|
||||
- [x] json-server
|
||||
|
36
kafka-manager/Dockerfile
Normal file
36
kafka-manager/Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# Dockerfile for kafka-manager
|
||||
#
|
||||
|
||||
FROM openjdk:8
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
|
||||
ENV SCALA_VERSION 2.11.8
|
||||
ENV SBT_VERSION 1.1.6
|
||||
ENV KAFKA_MANAGER_VERSION 1.3.3.18
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& wget https://downloads.lightbend.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.deb -O scala.deb \
|
||||
&& wget https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb -O sbt.deb \
|
||||
&& dpkg -i scala.deb sbt.deb \
|
||||
&& rm scala.deb sbt.deb \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /opt/kafka-manager
|
||||
|
||||
RUN set -xe \
|
||||
&& mkdir src \
|
||||
&& curl -sSL https://github.com/yahoo/kafka-manager/archive/$KAFKA_MANAGER_VERSION.tar.gz | tar xz --strip 1 -C src \
|
||||
&& cd src \
|
||||
&& sbt clean universal:packageZipTarball \
|
||||
&& cd .. \
|
||||
&& tar xzf src/target/universal/kafka-manager-$KAFKA_MANAGER_VERSION.tgz --strip 1 \
|
||||
&& rm -rf src
|
||||
|
||||
VOLUME /opt/kafka-manager/conf
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["bin/kafka-manager"]
|
||||
CMD ["-Dconfig.file=conf/application.conf", "-Dhttp.port=9000"]
|
6
kafka-manager/README.md
Normal file
6
kafka-manager/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
kafka-manager
|
||||
=============
|
||||
|
||||
A tool for managing Apache Kafka.
|
||||
|
||||
[1]: https://github.com/yahoo/kafka-manager
|
7
kafka-manager/docker-compose.yml
Normal file
7
kafka-manager/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
kafka-manager:
|
||||
image: vimagick/kafka-manager
|
||||
ports:
|
||||
- "9000:9000"
|
||||
environment:
|
||||
- "ZK_HOSTS=my.zookeeper.host.com:2181"
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user