Public Repository

Last pushed: 10 months ago
Short Description
Kafka set-up for ViPro SaaS
Full Description

Usage

docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost -d vapps/kafka:0.1

Version History

  • 0.1 - Contains a landscape topic for pushing landscape data through (1x partition, 1x replication factor)

Extending

The following shows how to create a new topic:

  • Attach to shell in container: docker attach --it NAME_OF_CONTAINER /bin/bash
  • Now cd into the Kafka bin directory: cd /opt/kafka*/bin
  • Create a new topic ./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic YOUR_TOPIC_NAME
  • Leave the shell exit

To commit those changes type:

docker commit CONTAINER_NAME vapps/kafka:0.x && docker push

Docker Pull Command
Owner
vapps

Comments (0)