Skip to content

Commit 869a7cc

Browse files
committed
adapt GHA config for the Bitnami Docker image for Kafka
1 parent 8cc8267 commit 869a7cc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/integration-tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)