├── confluent.repo ├── Dockerfile └── run.sh /confluent.repo: -------------------------------------------------------------------------------- 1 | [confluent-1.0] 2 | name=Confluent repository for 1.x packages 3 | baseurl=http://packages.confluent.io/rpm/1.0 4 | gpgcheck=1 5 | gpgkey=http://packages.confluent.io/rpm/1.0/archive.key 6 | enabled=1 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM state/oraclejre:1.7.0_65 2 | 3 | ADD ./confluent.repo /etc/yum.repos.d/ 4 | 5 | RUN yum update -y -q; yum clean all 6 | 7 | RUN rpm --import http://packages.confluent.io/rpm/1.0/archive.key && \ 8 | yum install -y confluent-kafka-rest && \ 9 | yum clean all 10 | 11 | ADD ./run.sh /srv/run.sh 12 | 13 | CMD ./srv/run.sh 14 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | : ${KAFKA_REST_INSTANCE_ID} 4 | : ${ADVERTISED_HOSTNAME} 5 | : ${SCHEMA_REGISTRY_URL} 6 | : ${ZOOKEEPER_URL} 7 | 8 | cat >/etc/kafka-rest/kafka-rest.properties <> /etc/kafka-rest/kafka-rest.properties 17 | fi 18 | 19 | exec ./bin/kafka-rest-start /etc/kafka-rest/kafka-rest.properties 20 | --------------------------------------------------------------------------------