Skip to content

Commit

Permalink
Fix Kafka ci (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alirexaa authored Aug 8, 2024
1 parent 4eee3a1 commit 76c1ad2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/healthchecks_kafka_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,25 @@ jobs:
runs-on: ubuntu-latest
services:
zookeeper:
image: confluent/zookeeper
image: confluentinc/cp-zookeeper:latest
ports:
- 2181:2181
env:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluent/kafka
image: confluentinc/cp-kafka:latest
ports:
- 9092:9092
- 9092:9092
- 29092:29092
env:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task be_healthy_if_kafka_is_available()
{
var configuration = new ProducerConfig()
{
BootstrapServers = "localhost:9092",
BootstrapServers = "localhost:29092",
MessageSendMaxRetries = 0
};

Expand Down

0 comments on commit 76c1ad2

Please sign in to comment.