Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Migrate to clean JAX-RS 2.0 API and remove proprietary dependencies #413

@grexe

Description

@grexe

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions