jamesnetherton commented on code in PR #429:
URL: 
https://github.com/apache/camel-quarkus-examples/pull/429#discussion_r2513512826


##########
artemis-elasticsearch/src/test/java/org/acme/resource/CustomPahoTestResource.java:
##########
@@ -20,18 +20,26 @@
 import java.util.Map;
 
 import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
+import org.apache.commons.lang3.SystemUtils;
 import org.testcontainers.containers.GenericContainer;
 import org.testcontainers.utility.DockerImageName;
 
 public class CustomPahoTestResource implements 
QuarkusTestResourceLifecycleManager {
-    private static final String IMAGE_NAME = 
"quay.io/artemiscloud/activemq-artemis-broker:1.0.26";
+    private static String IMAGE_NAME;
     private static final String AMQ_USER = "admin";
     private static final String AMQ_PASSWORD = "admin";
     private static final String AMQ_EXTRA_ARGS = "--relax-jolokia 
--no-autotune --mapped --no-fsync 
--java-options=-Dbrokerconfig.maxDiskUsage=-1";
     private GenericContainer<?> container;
 
+
     @Override
     public Map<String, String> start() {
+    if ("ppc64le".equals(SystemUtils.OS_ARCH))
+            IMAGE_NAME = 
"icr.io/ppc64le-oss/activemq-artemis-broker-ppc64le:2.0.2";
+    else
+           IMAGE_NAME = "quay.io/artemiscloud/activemq-artemis-broker:1.0.26";
+
+
         container = new GenericContainer<>(DockerImageName.parse(IMAGE_NAME))

Review Comment:
   ```suggestion
       private static final String AMQ_USER = "admin";
       private static final String AMQ_PASSWORD = "admin";
       private static final String AMQ_EXTRA_ARGS = "--relax-jolokia 
--no-autotune --mapped --no-fsync 
--java-options=-Dbrokerconfig.maxDiskUsage=-1";
       private GenericContainer<?> container;
   
       @Override
       public Map<String, String> start() {
           String imageName = 
"quay.io/artemiscloud/activemq-artemis-broker:1.0.26";
           if ("ppc64le".equals(SystemUtils.OS_ARCH)) {
               imageName = 
"icr.io/ppc64le-oss/activemq-artemis-broker-ppc64le:2.0.2";
           }
   
           container = new GenericContainer<>(DockerImageName.parse(imageName))
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to