Sha256: 6eb6246069523a4df8f12e5331f661f0b03ba94811c888fc7876c464692bbc4a
Contents?: true
Size: 349 Bytes
Versions: 31
Compression:
Stored size: 349 Bytes
Contents
#!/bin/bash set -eu TOPIC=${TOPIC:='test'} PARTITIONS=${PARTITIONS:=2} echo "creating topic ${TOPIC}, partitions ${PARTITIONS}" docker-compose run --rm -e PARTITIONS=$PARTITIONS -e TOPIC=$TOPIC kafka kafka-topics.sh --create \ --topic $TOPIC \ --replication-factor 1 \ --partitions $PARTITIONS \ --zookeeper zookeeper:2181 \ 2>/dev/null
Version data entries
31 entries across 31 versions & 2 rubygems