forked from srotya/docker-kafka-mirror-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (22 loc) · 864 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
26
FROM nimmis/java-centos:oracle-8-jre
MAINTAINER Ambud Sharma
ENV WHITELIST *
ENV DESTINATION "localhost:6667"
ENV SOURCE "localhost:6667"
ENV SECURITY "PLAINTEXT"
ENV GROUPID "_mirror_maker"
ENV PRINCIPAL "kafka/[email protected]"
ENV KEYTAB_FILENAME "mirror.keytab"
RUN yum -y install wget
RUN rpm --import http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
RUN cd /etc/yum.repos.d/;wget http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/hdp.repo
RUN yum -y install kafka
RUN yum -y install gettext
RUN mkdir -p /etc/mirror-maker/
RUN mkdir /etc/security/keytabs/
ADD ./consumer.config /tmp/mirror-maker/
ADD ./producer.config /tmp/mirror-maker/
ADD ./kafka_jaas.conf /tmp/mirror-maker/
ADD ./run.sh /etc/mirror-maker/
RUN chmod +x /etc/mirror-maker/run.sh
CMD /etc/mirror-maker/run.sh