File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,23 @@ jobs:
105105 ports :
106106 - 9092:9092
107107 env :
108- KAFKA_AUTO_CREATE_TOPICS_ENABLE : false
109- KAFKA_CREATE_TOPICS : ' test-topic:1:1:compact'
110- KAFKA_ADVERTISED_HOST_NAME : 127.0.0.1
111- KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
112- KAFKA_ADVERTISED_PORT : 9092
108+ KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE : false
109+ ALLOW_PLAINTEXT_LISTENER : ' yes'
110+ KAFKA_CFG_ADVERTISED_LISTENERS : ' PLAINTEXT://127.0.0.1:9092'
111+ KAFKA_CFG_LISTENERS : ' PLAINTEXT://:9092'
112+ KAFKA_CFG_ZOOKEEPER_CONNECT : ' zookeeper:2181'
113+ options : --name=kafka
113114
114115 steps :
115116 - name : Checkout
116117 uses : actions/checkout@v4
117118 with :
118119 fetch-depth : 0
119120
121+ - name : Init Kafka topics
122+ run : |
123+ docker exec kafka /opt/bitnami/kafka/bin/kafka-topics.sh --create --topic test-topic --bootstrap-server kafka:9092
124+
120125 - name : Install system dependencies
121126 run : |
122127 echo "::group::apt-get update"
You can’t perform that action at this time.
0 commit comments