Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.42 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.42 KB

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)