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:
105
105
ports :
106
106
- 9092:9092
107
107
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
113
114
114
115
steps :
115
116
- name : Checkout
116
117
uses : actions/checkout@v4
117
118
with :
118
119
fetch-depth : 0
119
120
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
+
120
125
- name : Install system dependencies
121
126
run : |
122
127
echo "::group::apt-get update"
You can’t perform that action at this time.
0 commit comments