forked from paddycarey/kafka-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (16 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:16.04
MAINTAINER Paddy Carey <[email protected]>
# 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
# 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 scripts/start_kafka.sh /usr/local/bin/start_kafka
EXPOSE 9092
CMD ["start_kafka"]