Skip to content

Single-node kafka cluster for local development and testing in an Alpine-based Docker image

Notifications You must be signed in to change notification settings

mccutchen/kafka-lite

 
 

Repository files navigation

kafka-lite

Single-node kafka cluster for local development and testing in an Alpine-based Docker image, forked from mvillarrealb/kafka-lite.

⚠️ Not for production use! ⚠️

Docker images

Images are available at mccutchen/kafka-lite on Docker Hub, tagged with specific Kafka versions.

Usage

docker run --rm -P mccutchen/kafka-lite

Or, using docker-compose:

version: "3"

services:
  kafka:
    image: mccutchen/kafka-lite
    ports:
      - 9092:9092 # Kafka port
      - 2181:2181 # Zookeeper port
    volumes:
      - kafka-data:/var/lib/kafka/data
      - zk-data:/var/lib/zookeeper/data

volumes:
  kafka-data:
    external: false
  zk-data:
    external: false

Building and releasing

See VERSIONS for build parameters. Before releasing a new version, bump the RELEASE_REVISION number.

# Build an image locally
make

# Build and push a "release" image, which will produce a multi-arch image
make release

Credits

As noted above, this repo is based on mvillarrealb/kafka-lite. Differences from the upstream image:

  • Multi-arch amd64 & arm64 builds for Apple Silicon compatibility
  • Uses non-deprecated JVM
  • No kafka-connect
  • Container exits by default if any component fails (override with EXIT_ON_FAILURE=false)

About

Single-node kafka cluster for local development and testing in an Alpine-based Docker image

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 44.1%
  • Dockerfile 23.5%
  • Shell 18.6%
  • Makefile 13.8%