Sign inSign up

mbe1224/confluent-rest-proxy

By mbe1224

Updated almost 8 years ago

Docker REST Proxy image for the Confluent Open Source Platform using Oracle JDK

Image
1

3.8K

mbe1224/confluent-rest-proxy repository overview

Docker REST Proxy image for the Confluent Open Source Platform using Oracle JDK

All tag names follow the naming convention of the Confluent Open Source Platform

Summary:
Details:

This image was created with the sole purpose of offering the Confluent Open Source Platform running on top of Oracle JDK. Therefore, it follows the same structure as the one from the original repository. More precisely:

  • tag 3.2.2 follows branch 3.2.x, and
  • tags 3.3.0, 3.3.1 andlatest follow branch 3.3.x

Apart of the base image (mbe1224/confluent-base), it has REST Proxy added on top of it, installed using the following Confluent Debian package:

  • confluent-kafka-rest-2.11
Usage:

Build the image

docker build -t mbe1224/confluent-rest-proxy ./3.3.1/

Run the container

docker run -d \
    --net=host \
    --name=kafka-rest \
    -e KAFKA_REST_ZOOKEEPER_CONNECT=localhost:32181 \
    -e KAFKA_REST_LISTENERS=http://localhost:8082 \
    -e KAFKA_REST_SCHEMA_REGISTRY_URL=http://localhost:8081 \
    mbe1224/confluent-rest-proxy
Environment variables:

One can use the following environment variables for configuring the ZooKeeper node:

#NameDefault valueMeaningComments
1KAFKA_REST_CUB_KAFKA_MIN_BROKERS1Expected number of brokers in the clusterCheck the Confluent utility belt script ('cub') - check_kafka_ready for more details
2KAFKA_REST_CUB_KAFKA_TIMEOUT40Time in secs to wait for the number of Kafka nodes to be available.Check the Confluent utility belt script ('cub') - check_kafka_ready for more details
3KAFKA_REST_CUB_ZK_TIMEOUT40Time in secondss to wait for the Zookeeper to be availableCheck the Confluent utility belt script ('cub') - check_zookeeper_ready for more details
4KAFKA_REST_HOST_NAME-The host name used to generate absolute URLs in responsesRequired
5KAFKA_REST_ID-Unique ID for this REST server instanceThis is used in generating unique IDs for consumers that do not specify their ID. The ID is empty by default, which makes a single server setup easier to get up and running, but is not safe for multi-server deployments where automatic consumer IDs are used
6KAFKA_REST_JMX_OPTS-JMX options used for monitoringKAFKA_REST_OPTS should contain 'com.sun.management.jmxremote.rmi.port' property
7KAFKA_REST_LISTENERS8082Port for incomming connections-
8KAFKA_REST_LOG4J_LOGGERS---
9KAFKA_REST_LOG4J_ROOT_LOGLEVELINFO--
10KAFKA_REST_ZOOKEEPER_CONNECT-Specifies the ZooKeeper connection string in the form hostname:port where host and port are the host and port of a ZooKeeper serverTo allow connecting through other ZooKeeper nodes when that ZooKeeper machine is down you can also specify multiple hosts in the form hostname1:port1,hostname2:port2,hostname3:port3

Moreover, one can use any of the properties specified in the Configuration Options by replacing "." with "_" and appending "KAFKA_REST_" before the property name. For example, instead of schema.registry.url use KAFKA_REST_SCHEMA_REGISTRY_URL.

Dual licensed under:

Tag summary

Content type

Image

Digest

Size

155.8 MB

Last updated

almost 8 years ago

docker pull mbe1224/confluent-rest-proxy