1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/kafka-manager/Dockerfile

37 lines
1001 B
Docker
Raw Normal View History

2018-07-16 12:53:22 +02:00
#
# Dockerfile for kafka-manager
#
FROM openjdk:8
MAINTAINER kev <noreply@easypi.pro>
2019-04-10 18:53:03 +02:00
ENV SCALA_VERSION 2.12.8
ENV SBT_VERSION 1.2.8
2019-04-12 09:35:52 +02:00
ENV KAFKA_MANAGER_VERSION 2.0.0.2
2018-07-16 12:53:22 +02:00
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"]