forked from jpodeszwik/docker-kafka-offset-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 776 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM dockerfile/java:oracle-java8
RUN \
echo "deb http://dl.bintray.com/sbt/debian /" >> /etc/apt/sources.list.d/sbt.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install sbt
RUN \
git clone -b v0.2.1 https://github.com/quantifind/KafkaOffsetMonitor.git /KafkaOffsetMonitor && \
cd /KafkaOffsetMonitor && \
sbt assembly && \
mv /KafkaOffsetMonitor/target/scala-*/KafkaOffsetMonitor-assembly-*.jar / && \
rm -rf /KafkaOffsetMonitor && \
rm -rf ~/.sbt
ENV REFRESH 120.seconds
ENV RETAIN 2.days
EXPOSE 8080
WORKDIR /data
VOLUME ["/data"]
CMD exec java -cp /KafkaOffsetMonitor-assembly-*.jar com.quantifind.kafka.offsetapp.OffsetGetterWeb --port 8080 --zk $ZK --refresh $REFRESH --retain $RETAIN