From be5b4d593cce42c8aa438580c7e431aa870d4af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez=20Gonzales?= Date: Fri, 19 May 2023 17:54:11 +0200 Subject: [PATCH] Fix Redpanda command (#7045) Mode `dev-container` already configures * --overprovisioned * --reserve-memory 0M * --check=false * --unsafe-bypass-fsync Also, set recommended memory --- .../java/org/testcontainers/redpanda/RedpandaContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java b/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java index ac232aed4d3..d9fccadb30d 100644 --- a/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java +++ b/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java @@ -55,7 +55,7 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) { String command = "#!/bin/bash\n"; - command += "/usr/bin/rpk redpanda start --mode dev-container --overprovisioned --smp 1 "; + command += "/usr/bin/rpk redpanda start --mode dev-container --smp 1 --memory 1G "; command += "--kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 "; command += "--advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://" + getHost() + ":" + getMappedPort(9092);