You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0ec328f41601 payara/server-full:latest "/tini -- /bin/sh -c??" 1 second ago Up Less than a second 0.0.0.0:4848->4848/tcp, 8181/tcp, 0.0.0.0:8080->8080/tcp, 9009/tcp payara
and ss -atn shows the ports are being used on the host:
LISTEN 0 4096 *:4848 *:*
LISTEN 0 4096 *:8080 *:*
Not working config (but what I want to do)
I've found the following issue: #66 and that suggested using publishAllPorts: true, which I tried with the following config:
But that brings the following error (I've shortened the stacktrace somewhat):
org.arquillian.cube.spi.CubeControlException: Could not start payara
at org.arquillian.cube.spi.CubeControlException.failedStart(CubeControlException.java:19)
at org.arquillian.cube.docker.impl.model.DockerCube.start(DockerCube.java:141)
at org.arquillian.cube.impl.client.CubeLifecycleController.start(CubeLifecycleController.java:19)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.IllegalArgumentException: Cannot connect to payara container
at org.arquillian.cube.docker.impl.model.DockerCube.start(DockerCube.java:136)
... 87 more
docker ps shows, that the publishing to random ports works as expected:
ce46daa0a09d payara/server-full:latest "/tini -- /bin/sh -c??" 6 seconds ago Up 5 seconds 0.0.0.0:32775->4848/tcp, 0.0.0.0:32774->8080/tcp, 0.0.0.0:32773->8181/tcp, 0.0.0.0:32772->9009/tcp payara
But somehow, arquillian-cube is not picking up these ports.
Issue Overview
I am using
arquillian cube 1.16.0
and I am trying to find a configuration that allows concurrent executions of tests on the same hosts.Working Config (But not what I want)
So, the following config works, but binds two ports to the host (4848 and 8080) and thus will lead to collisions:
docker ps
shows me this:and
ss -atn
shows the ports are being used on the host:Not working config (but what I want to do)
I've found the following issue: #66 and that suggested using
publishAllPorts: true
, which I tried with the following config:But that brings the following error (I've shortened the stacktrace somewhat):
docker ps
shows, that the publishing to random ports works as expected:But somehow, arquillian-cube is not picking up these ports.
Am I missing something here?
Additional Info
My complete config:
The text was updated successfully, but these errors were encountered: