Skip to content

Commit

Permalink
fix(Redpanda): Add missing command-line arguments to the startup scri…
Browse files Browse the repository at this point in the history
…pt (smp, memory) (#1364)
  • Loading branch information
RobotechUSA authored Feb 9, 2025
1 parent 231e814 commit ce1d5e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Testcontainers.Redpanda/RedpandaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ protected override RedpandaBuilder Init()
startupScript.Append(lf);
startupScript.Append("/usr/bin/rpk redpanda start ");
startupScript.Append("--mode dev-container ");
startupScript.Append("--smp 1 ");
startupScript.Append("--memory 1G ");
startupScript.Append("--kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 ");
startupScript.Append("--advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://" + container.Hostname + ":" + container.GetMappedPublicPort(RedpandaPort));
return container.CopyAsync(Encoding.Default.GetBytes(startupScript.ToString()), StartupScriptFilePath, Unix.FileMode755, ct);
Expand Down

0 comments on commit ce1d5e1

Please sign in to comment.