Megha-Megha13 commented on code in PR #21255:
URL: https://github.com/apache/camel/pull/21255#discussion_r2768004578


##########
test-infra/camel-test-infra-keycloak/src/main/java/org/apache/camel/test/infra/keycloak/services/KeycloakLocalContainerInfraService.java:
##########
@@ -70,12 +71,20 @@ class TestInfraKeycloakContainer extends 
GenericContainer<TestInfraKeycloakConta
             public TestInfraKeycloakContainer(boolean fixedPort) {
                 super(DockerImageName.parse(keycloakImage));
 
-                withExposedPorts(KEYCLOAK_PORT)
-                        .withEnv("KEYCLOAK_ADMIN", DEFAULT_ADMIN_USERNAME)
-                        .withEnv("KEYCLOAK_ADMIN_PASSWORD", 
DEFAULT_ADMIN_PASSWORD)
-                        .withCommand("start-dev")
-                        .waitingFor(Wait.forListeningPorts(KEYCLOAK_PORT))
-                        .withStartupTimeout(Duration.ofMinutes(3L));
+                if ("ppc64le".equals(SystemUtils.OS_ARCH))
+                    withExposedPorts(KEYCLOAK_PORT)
+                            .withEnv("KEYCLOAK_ADMIN", DEFAULT_ADMIN_USERNAME)
+                            .withEnv("KEYCLOAK_ADMIN_PASSWORD", 
DEFAULT_ADMIN_PASSWORD)
+                            .withCommand("/opt/bitnami/keycloak/bin/kc.sh", 
"start-dev")
+                            .waitingFor(Wait.forListeningPorts(KEYCLOAK_PORT))
+                            .withStartupTimeout(Duration.ofMinutes(3L));
+                else
+                    withExposedPorts(KEYCLOAK_PORT)
+                            .withEnv("KEYCLOAK_ADMIN", DEFAULT_ADMIN_USERNAME)
+                            .withEnv("KEYCLOAK_ADMIN_PASSWORD", 
DEFAULT_ADMIN_PASSWORD)
+                            .withCommand("start-dev")
+                            .waitingFor(Wait.forListeningPorts(KEYCLOAK_PORT))
+                            .withStartupTimeout(Duration.ofMinutes(3L));

Review Comment:
   Thank you for pointing this out. I will update the code accordingly to align 
with the project's style guide.



-- 
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