File tree Expand file tree Collapse file tree 2 files changed +52
-10
lines changed Expand file tree Collapse file tree 2 files changed +52
-10
lines changed Original file line number Diff line number Diff line change @@ -247,13 +247,34 @@ jobs:
247247 py313kafka :
248248 docker :
249249 - image : public.ecr.aws/docker/library/python:3.13
250- - image : public.ecr.aws/ubuntu/zookeeper:latest
250+ - image : public.ecr.aws/ubuntu/zookeeper:3.1-22.04_edge
251251 environment :
252252 TZ : UTC
253- - image : public.ecr.aws/ubuntu/kafka:latest
253+ - image : public.ecr.aws/ubuntu/kafka:3.1-22.04_edge
254254 environment :
255255 TZ : UTC
256256 ZOOKEEPER_HOST : localhost
257+ ZOOKEEPER_PORT : 2181
258+ command :
259+ - /opt/kafka/config/server.properties
260+ - --override
261+ - listeners=INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9094
262+ - --override
263+ - advertised.listeners=INTERNAL://localhost:9093,EXTERNAL://localhost:9094
264+ - --override
265+ - listener.security.protocol.map=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
266+ - --override
267+ - inter.broker.listener.name=INTERNAL
268+ - --override
269+ - broker.id=1
270+ - --override
271+ - offsets.topic.replication.factor=1
272+ - --override
273+ - transaction.state.log.replication.factor=1
274+ - --override
275+ - transaction.state.log.min.isr=1
276+ - --override
277+ - auto.create.topics.enable=true
257278 working_directory : ~/repo
258279 steps :
259280 - checkout
Original file line number Diff line number Diff line change @@ -63,16 +63,37 @@ services:
6363
6464 # Sidecar container for Kafka
6565 zookeeper :
66- image : public.ecr.aws/ubuntu/zookeeper:latest
67- ports :
68- - 2181:2181
69- environment :
70- - TZ=UTC
66+ image : public.ecr.aws/ubuntu/zookeeper:3.1-22.04_edge
67+ ports : ["2181:2181"]
68+ environment : [ "TZ=UTC" ]
7169
7270 kafka :
73- image : public.ecr.aws/ubuntu/kafka:latest # works on amd64, arm64, ppc64le and s390x
74- ports :
75- - ' 9092:9092'
71+ image : public.ecr.aws/ubuntu/kafka:3.1-22.04_edge
72+ depends_on : [zookeeper]
73+ ports :
74+ - " 9094:9094"
75+ - " 9093:9093"
7676 environment :
7777 - TZ=UTC
7878 - ZOOKEEPER_HOST=zookeeper
79+ - ZOOKEEPER_PORT=2181
80+ command :
81+ - /opt/kafka/config/server.properties
82+ - --override
83+ - listeners=INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9094
84+ - --override
85+ - advertised.listeners=INTERNAL://kafka:9093,EXTERNAL://127.0.0.1:9094
86+ - --override
87+ - listener.security.protocol.map=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
88+ - --override
89+ - inter.broker.listener.name=INTERNAL
90+ - --override
91+ - broker.id=1
92+ - --override
93+ - offsets.topic.replication.factor=1
94+ - --override
95+ - transaction.state.log.replication.factor=1
96+ - --override
97+ - transaction.state.log.min.isr=1
98+ - --override
99+ - auto.create.topics.enable=true
You can’t perform that action at this time.
0 commit comments