Skip to content

Commit

Permalink
Use container host for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Mar 22, 2024
1 parent 3beade4 commit 6cfe430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/x1/arquillian/Containers.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public void configureAfterStart(ContainerRegistry registry) {
protocolConfiguration.property("port", Integer.toString(wildfly.getMappedPort(8080)));
protocolConfiguration.property("host", System.getProperty("DOCKER_HOST", wildfly.getHost()));
} else {
containerConfiguration.property("managementAddress",
wildfly.getContainerInfo().getNetworkSettings().getNetworks().values().iterator().next().getIpAddress());
containerConfiguration.property("managementAddress", wildfly.getHost());
containerConfiguration.property("managementPort", Integer.toString(wildfly.getMappedPort(9990)));
}
}

Expand Down

0 comments on commit 6cfe430

Please sign in to comment.