Skip to content

Commit dfb9f41

Browse files
authored
feat: Use exec to replace current shell with the Kafka process (as ENTRYPOINT) (#1282)
1 parent a75cb73 commit dfb9f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testcontainers.Kafka/KafkaBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected override KafkaBuilder Init()
8383
startupScript.Append(lf);
8484
startupScript.Append("echo '' > /etc/confluent/docker/ensure");
8585
startupScript.Append(lf);
86-
startupScript.Append("/etc/confluent/docker/run");
86+
startupScript.Append("exec /etc/confluent/docker/run");
8787
return container.CopyAsync(Encoding.Default.GetBytes(startupScript.ToString()), StartupScriptFilePath, Unix.FileMode755, ct);
8888
});
8989
}

0 commit comments

Comments
 (0)