From dfb9f41fbfc62d2bc93cdcfb3dd098f4d8d9d954 Mon Sep 17 00:00:00 2001 From: Jason Couture Date: Fri, 18 Oct 2024 10:03:14 -0400 Subject: [PATCH] feat: Use `exec` to replace current shell with the Kafka process (as ENTRYPOINT) (#1282) --- src/Testcontainers.Kafka/KafkaBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Testcontainers.Kafka/KafkaBuilder.cs b/src/Testcontainers.Kafka/KafkaBuilder.cs index acb302c89..210129972 100644 --- a/src/Testcontainers.Kafka/KafkaBuilder.cs +++ b/src/Testcontainers.Kafka/KafkaBuilder.cs @@ -83,7 +83,7 @@ protected override KafkaBuilder Init() startupScript.Append(lf); startupScript.Append("echo '' > /etc/confluent/docker/ensure"); startupScript.Append(lf); - startupScript.Append("/etc/confluent/docker/run"); + startupScript.Append("exec /etc/confluent/docker/run"); return container.CopyAsync(Encoding.Default.GetBytes(startupScript.ToString()), StartupScriptFilePath, Unix.FileMode755, ct); }); }