Skip to content

Commit

Permalink
Merge pull request #11323 from qmonmert/kafka390
Browse files Browse the repository at this point in the history
Fix: Update apache/kafka-native Docker tag to v3.9.0
  • Loading branch information
pascalgrimaud authored Nov 11, 2024
2 parents ae11e4d + 20908b6 commit 2ab3d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/generator/dependencies/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ FROM mysql:9.1.0
FROM cassandra:5.0.2
FROM mcr.microsoft.com/mssql/server:2022-latest
FROM postgres:17.0
FROM apache/kafka-native:3.8.1
FROM apache/kafka-native:3.9.0
FROM tchiotludo/akhq:0.25.1
FROM apachepulsar/pulsar:4.0.0
FROM neo4j:5.25.1-community
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class KafkaTestContainerExtension implements BeforeAllCallback {
public void beforeAll(final ExtensionContext context) {
if (!kafkaContainerStarted.get()) {
kafkaContainer = new KafkaContainer(DockerImageName.parse("{{kafkaDockerImage}}")).withNetwork(null);
// Waiting this issue https://github.com/testcontainers/testcontainers-java/issues/9506 to remove this line
kafkaContainer.withEnv("KAFKA_LISTENERS", "PLAINTEXT://:9092,BROKER://:9093,CONTROLLER://:9094");
kafkaContainer.start();
kafkaContainerStarted.set(true);
System.setProperty("kafka.bootstrap.servers", kafkaContainer.getBootstrapServers());
Expand Down

0 comments on commit 2ab3d86

Please sign in to comment.