Skip to content

Docker image based on openjdk:8-jre-alpine & Apache Kafka

Notifications You must be signed in to change notification settings

camAtGitHub/alpine-kafka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About:

Docker image based on openjdk:8-jre-alpine

Additional Software:

Usage:

The image provides a clusterable Kafka broker.

As a minimum the following environment variables must be set:

  1. KAFKA_ZOOKEEPER_CONNECT
docker run -d -e KAFKA_ZOOKEEPER_CONNECT=zk.zookeeper camboatdocker/alpine-kafka

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

Additional Configuration

Configuration parameters can be provided via environment variables starting with KAFKA_. Any matching variable will be 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

Evaluated Parameters

Any environment variable starting with KAFKA_ and ending with _COMMAND will be first evaluated and the result saved in an environment variable without the trailing _COMMAND

For example an environment variable KAFKA_ADVERTISED_HOST_NAME_COMMAND=hostname will export KAFKA_ADVERTISED_HOST_NAME with the value obtained by running hostname command inside the container

Changelog

Added support to modify the following Kafka options:

  • broker.id
  • offsets.topic.replication.factor
  • transaction.state.log.replication.factor
  • transaction.state.log.min.isr

About

Docker image based on openjdk:8-jre-alpine & Apache Kafka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 83.1%
  • Dockerfile 16.9%