(related to #107 and #122)
The DockerClient still has dependencies on Jersey that make it really hard (nearly impossible) to use the docker client library in environments that depend on other REST implementations, e.g. Wildfly that is built on RESTeasy, checked sources for version 3.6.8 (fortunately it's all in one place,-):
DefaultDockerClient.java:import org.glassfish.jersey.apache.connector.ApacheClientProperties;
DefaultDockerClient.java:import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
DefaultDockerClient.java:import org.glassfish.jersey.client.ClientConfig;
DefaultDockerClient.java:import org.glassfish.jersey.internal.util.Base64;
DefaultDockerClient.java:import org.glassfish.jersey.jackson.JacksonFeature;
Maven side dependencies on Jersey:
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.19</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>jersey-apache-connector</artifactId>
<version>2.19</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.19</version>
</dependency>
Interestingly, the client works for some commands (like looking up, starting or stopping containers), but fails for others (like reading logs or executing commands), I guess only the failing commands use some Jersey specific calls.
Please think about fixing this in the library and only target standard JAX-RS 2 API, as this would be the most straight forward solution and should be really doable (I can support the effort...), as bending widlfly or EAR deployments is really a hassle I want to avoid.
related Stackoverflow Thread
(related to #107 and #122)
The DockerClient still has dependencies on Jersey that make it really hard (nearly impossible) to use the docker client library in environments that depend on other REST implementations, e.g. Wildfly that is built on RESTeasy, checked sources for version 3.6.8 (fortunately it's all in one place,-):
Maven side dependencies on Jersey:
Interestingly, the client works for some commands (like looking up, starting or stopping containers), but fails for others (like reading logs or executing commands), I guess only the failing commands use some Jersey specific calls.
Please think about fixing this in the library and only target standard JAX-RS 2 API, as this would be the most straight forward solution and should be really doable (I can support the effort...), as bending widlfly or EAR deployments is really a hassle I want to avoid.
related Stackoverflow Thread