Public Repository

Last pushed: a year ago
Short Description
Simple Kafka Docker image for integration testing.
Full Description

This is a very simple and light Kafka docker image that is Intended to be run along side a ZK image. I use this for integration testing within my test suite. Here's a sample docker-compose script that quickly gets Kafka and ZK up and running for this purpose:

zookeeper:
  image: wurstmeister/zookeeper
  ports:
    - "2181:2181"
kafka:
  image: leafknode/kafka:9.0.0.1
  ports:
    - "9092:9092"
  links:
    - zookeeper:zk
  environment:
    KAFKA_ZOOKEEPER_CONNECT: zk:2181
    KAFKA_ADVERTISED_HOST_NAME: localhost
    KAFKA_PORT: 9092
    KAFKA_ADVERTISED_PORT: 9092
    KAFKA_BROKER_ID: 1
    KAFKA_LOG_DIRS: /kafka/broker1
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock

The Dockerfile for this image can be found on my Github site here:

https://github.com/leafknode/kafka-docker

Docker Pull Command
Owner
leafknode