GithubHelp home page GithubHelp logo

candisio / kafka-actions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bbccorp/kafka-actions

0.0 0.0 0.0 14 KB

Action to install kafka

License: MIT License

Shell 89.67% Dockerfile 10.33%

kafka-actions's Introduction

kafka-actions

This GitHub Action sets up Bitnami Kafka instance

This project started as a a fork of https://github.com/bbcCorp/kafka-actions, and got adjusted to work with Kafka 3.2.0 and Zookeeper 2.8.1


Usage

See action.yml

Basic:

- name: Start Bitname Kafka
  uses: candis/[email protected]
  # Optionally input values can be provided as follows:
  with: 
    kafka version: 3.2.0
    zookeeper version: 3.7.1

Now you should be able to consume and publish messages to the Kafka broker running at localhost:9092.

If you want to connect with a client from docker use port 29092. For example, if you need to list the topics:

docker run -it --rm --network gh-kafka-network \
  -e KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 \
  bitnami/kafka:latest kafka-topics.sh --list --bootstrap-server kafka:29092

When running locally

The following environment variables are required (as defined in the action.yml file).

export INPUT_ZOOKEEPER_PORT=2181
export INPUT_ZOOKEEPER_VERSION=3.7.1
export INPUT_KAFKA_PORT=9092
export INPUT_KAFKA_CLIENT_PORT=29092
export INPUT_KAFKA_VERSION=3.2.0

License

The scripts and documentation in this project are released under the MIT License

kafka-actions's People

Contributors

jsangilve avatar bbccorp 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.