Skip to content

Commit

Permalink
use apache/kafka image in product-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacBlanco authored and aaneja committed Feb 27, 2025
1 parent d441155 commit de834ec
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ services:

kafka:
hostname: kafka
image: spotify/kafka
image: apache/kafka:3.9.0
ports:
- 9092:9092
- 2181:2181
command: |
bash -xeuo pipefail -c "
sed -i 's/#delete.topic.enable=true/delete.topic.enable=true/' /opt/kafka_2.11-0.10.1.0/config/server.properties
exec supervisord -n
"
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://localhost:9092,CONTROLLER://localhost:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 3
KAFKA_DELETE_TOPIC_ENABLE: true

0 comments on commit de834ec

Please sign in to comment.