onap on kubernetes source files
[oom.git] / kubernetes / config / docker / init / src / config / message-router / dcae-startup-vm-message-router / docker_files / Dockerfile
1 FROM anapsix/alpine-java
2
3 MAINTAINER Wurstmeister
4
5 RUN apk add --update unzip wget curl docker jq coreutils
6
7 ENV KAFKA_VERSION="0.8.1.1" SCALA_VERSION="2.9.2"
8 ADD download-kafka.sh /tmp/download-kafka.sh
9 RUN chmod a+x /tmp/download-kafka.sh && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
10
11 VOLUME ["/kafka"]
12
13 ENV KAFKA_HOME /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION}
14 ADD start-kafka.sh /usr/bin/start-kafka.sh
15 ADD broker-list.sh /usr/bin/broker-list.sh
16 ADD create-topics.sh /usr/bin/create-topics.sh
17 # The scripts need to have executable permission
18 RUN chmod a+x /usr/bin/start-kafka.sh && \
19     chmod a+x /usr/bin/broker-list.sh && \
20     chmod a+x /usr/bin/create-topics.sh
21 # Use "exec" form so that it runs as PID 1 (useful for graceful shutdown)
22 CMD ["start-kafka.sh"]