Code Monkey home page Code Monkey logo

cp-mini's Introduction

cp-mini

Run Zookeeper, Kafka and Schema Registry together in a single process, as a docker image or jar.

  • Fast starting (~ 6 seconds until all three services are ready)
  • Almost small (75 mb jar)
  • Configurable via env vars

Usage

As a docker image (amd64 or arm64)

docker run --rm -p 2181:2181 -p 29092:29092 -p 8081:8081 \
    -e CREATE_TOPICS=test_topic \
    ghcr.io/dlesl/cp-mini

Or in a docker-compose stack (here we make the kafka broker accessible from the host at localhost:29092)

services:
  cp-mini:
    image: ghcr.io/dlesl/cp-mini
    ports:
      - 8081:8081
      - 29092:29092
    environment:
      CREATE_TOPICS: test_topic
      ROOT_LOG_LEVEL: info
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
      KAFKA_LISTENERS: CLIENT://:9092,EXTERNAL://:29092
      KAFKA_ADVERTISED_LISTENERS: CLIENT://cp-mini:9092,EXTERNAL://127.0.0.1:29092
      KAFKA_INTER_BROKER_LISTENER_NAME: CLIENT

As a jar (grab it from the releases page)

java -jar cp-mini.jar
# arguments will be interpreted as a command to execute once the stack is up, useful for running tests
java -jar cp-mini.jar bash ./my-test-suite.sh

cp-mini's People

Contributors

dependabot[bot] avatar dlesl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.