Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

About:

Docker image based on digitalwonderland/oracle-jre-8

Additional Software:

Usage:

The image provides a clusterable Kafka broker.

As a minimum the following environment variables must be set:

  1. KAFKA_BROKER_ID
  2. KAFKA_ADVERTISED_HOST_NAME
  3. KAFKA_ZOOKEEPER_CONNECT

So, assuming your Docker host is 172.17.8.101, has Zookeeper running and should now run Kafka as well, execute the following:

docker run -d -e KAFKA_BROKER_ID=1 -e KAFKA_ADVERTISED_HOST_NAME=172.17.8.101 -e KAFKA_ZOOKEEPER_CONNECT=172.17.8.101 digitalwonderland/kafka

(if you are looking for a clusterable Zookeeper Docker image, feel free to use digitalwonderland/zookeeper)

Additional configuration

can be provided via environment variables starting with KAFKA_. Any matching variables will get added to Kafkas server.properties by

  1. removing the KAFKA_ prefix
  2. transformation to lower case
  3. replacing any occurences of _ with .

For example an environment variable KAFKA_NUM_PARTITIONS=3 will result in num.partitions=3 within server.properties.

Docker Pull Command
Owner
arypurnomoz
Source Repository

Comments (0)