Files
OpenWarehouse/create-topics.sh
T
2025-02-26 23:42:19 +01:00

12 lines
266 B
Bash

#!/bin/bash
KAFKA_TOPICS=(
"warehouse-tag-tree"
)
for TOPIC in "${KAFKA_TOPICS[@]}"; do
kafka-topics.sh --bootstrap-server localhost:9092 --create --topic "$TOPIC" --partitions 1 --replication-factor 1 || true
done
# Prevent container from exiting
exec "$@"