Skip to content

mgid/docker-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kafka test image

Lightweight docker image with Apache Kafka (single broker mode) for development and testing

Usage

Local run:

docker run --rm -p 9092:9092 mgid/kafka

.gitlab-ci.yml example:

integration-test:
  stage: test
  services:
    - name: mgid/kafka:latest
      alias: kafka
  variables:
    KAFKA_ADVERTISED_HOSTNAME: kafka
  ...

docker-compose example:

services:
  kafka:
    image: mgid/kafka:latest
    environment:
      KAFKA_ADVERTISED_HOSTNAME: kafka