-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (20 loc) · 1.12 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
FROM ubuntu:16.04
MAINTAINER Paddy Carey <paddy@wackwack.co.uk>
# install build and runtime dependencies
RUN apt-get update && apt-get install -y software-properties-common \
supervisor wget zookeeper
# install kafka using .deb packages provided by Confluent
RUN wget -qO - http://packages.confluent.io/deb/3.0/archive.key | apt-key add -
RUN add-apt-repository "deb [arch=amd64] http://packages.confluent.io/deb/3.0 stable main"
RUN apt-get update && apt-get install -y confluent-platform-2.11
RUN keytool -genkey -keyalg RSA -alias selfsigned -keystore /etc/kafka/kafka.jks -storepass password -keypass password -validity 360 -keysize 2048 -dname "CN=localhost,OU=foo,O=foo,L=bar,ST=bar,C=IT"
# copy custom configuration files and scripts into place
COPY config/supervisord.conf /etc/supervisord.conf
COPY config/kafka/server.properties /etc/kafka/server.properties
COPY config/kafka/zookeeper.properties /etc/kafka/zookeeper.properties
COPY config/kafka/jaas.conf /etc/kafka/jaas.conf
COPY scripts/start_kafka.sh /usr/local/bin/start_kafka
EXPOSE 9092
EXPOSE 9093
EXPOSE 9193
CMD ["start_kafka"]