From 5a3f69aa2208af20831051c10fb7bd30f228e947 Mon Sep 17 00:00:00 2001 From: James Netherton Date: Tue, 26 Nov 2024 14:44:19 +0000 Subject: [PATCH] Disable Artemis disk space checks for artemis-elasticsearch example --- .../test/java/org/acme/resource/CustomPahoTestResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artemis-elasticsearch/src/test/java/org/acme/resource/CustomPahoTestResource.java b/artemis-elasticsearch/src/test/java/org/acme/resource/CustomPahoTestResource.java index bce88053..72da4efa 100644 --- a/artemis-elasticsearch/src/test/java/org/acme/resource/CustomPahoTestResource.java +++ b/artemis-elasticsearch/src/test/java/org/acme/resource/CustomPahoTestResource.java @@ -27,7 +27,7 @@ public class CustomPahoTestResource implements QuarkusTestResourceLifecycleManag private static final String IMAGE_NAME = "quay.io/artemiscloud/activemq-artemis-broker:1.0.26"; private static final String AMQ_USER = "admin"; private static final String AMQ_PASSWORD = "admin"; - private static final String AMQ_JOLOKIA = "--relax-jolokia"; + private static final String AMQ_EXTRA_ARGS = "--relax-jolokia --no-autotune --mapped --no-fsync --java-options=-Dbrokerconfig.maxDiskUsage=-1"; private GenericContainer container; @Override @@ -36,8 +36,8 @@ public Map start() { .withExposedPorts(61616, 8161, 1883) .withEnv("AMQ_USER", AMQ_USER) .withEnv("AMQ_PASSWORD", AMQ_PASSWORD) - .withEnv("AMQ_EXTRA_ARGS", AMQ_JOLOKIA); - //.withPrivilegedMode(true); + .withEnv("AMQ_EXTRA_ARGS", AMQ_EXTRA_ARGS) + .withLogConsumer(outputFrame -> System.out.print(outputFrame.getUtf8String())); container.start();