-
Notifications
You must be signed in to change notification settings - Fork 42
/
Dockerfile
48 lines (38 loc) · 1.61 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM openjdk:8-buster
ENV KE_HOME=/opt/efak
ENV EFAK_VERSION=2.0.7
# Set config defaults
ENV EFAK_CLUSTER_ZK_LIST=zookeeper:2181
ENV EFAK_CLUSTER_KAFKA_EAGLE_BROKER_SIZE=1
ENV EFAK_KAFKA_ZK_LIMIT_SIZE=25
ENV EFAK_WEBUI_PORT=8048
ENV EFAK_CLUSTER_KAFKA_EAGLE_OFFSET_STORAGE=kafka
ENV EFAK_METRICS_CHARTS=false
ENV EFAK_METRICS_RETAIN=30
ENV EFAK_SQL_FIX_ERROR=false
ENV EFAK_SQL_TOPIC_RECORDS_MAX=5000
ENV EFAK_TOPIC_TOKEN=keadmin
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_ENABLE=false
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_PROTOCOL=SASL_PLAINTEXT
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_MECHANISM=SCRAM-SHA-256
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_JAAS_CONFIG='org.apache.kafka.common.security.scram.ScramLoginModule required username="admin" password="admin-secret";'
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_CGROUP_ENABLE=false
ENV EFAK_CLUSTER_KAFKA_EAGLE_SASL_CGROUP_TOPICS=kafka_ads01,kafka_ads02
ENV EFAK_DB_DRIVER=org.sqlite.JDBC
ENV EFAK_DB_USERNAME=root
ENV EFAK_DB_PASSWORD=smartloli
ENV EFAK_DB_URL=jdbc:sqlite:/hadoop/efak/db/ke.db
ADD system-config.properties /tmp
ADD entrypoint.sh /usr/bin
#RUN apk --update add wget gettext tar bash sqlite
RUN apt-get update && apt-get install -y sqlite gettext
#get and unpack kafka eagle
RUN mkdir -p /opt/efak/conf;cd /opt && \
wget https://github.com/smartloli/kafka-eagle-bin/archive/v${EFAK_VERSION}.tar.gz && \
tar zxvf v${EFAK_VERSION}.tar.gz -C efak --strip-components 1 && \
cd efak;tar zxvf efak-web-${EFAK_VERSION}-bin.tar.gz --strip-components 1 && \
rm efak-web-${EFAK_VERSION}-bin.tar.gz && \
chmod +x /opt/efak/bin/ke.sh
EXPOSE 8048 8080
ENTRYPOINT ["entrypoint.sh"]
WORKDIR /opt/efak