Commit d30fc5bc authored by Lückemeyer's avatar Lückemeyer
Browse files

replaced apache docker http client with zerodep http client

parent 0b909163
Pipeline #8590 passed with stage
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.docker-java</groupId> <groupId>com.github.docker-java</groupId>
<artifactId>docker-java-transport-httpclient5</artifactId> <artifactId>docker-java-transport-zerodep</artifactId>
<version>3.3.3</version> <version>3.3.3</version>
</dependency> </dependency>
<!--dependency> <!--dependency>
......
...@@ -8,8 +8,8 @@ import com.github.dockerjava.api.model.HostConfig; ...@@ -8,8 +8,8 @@ import com.github.dockerjava.api.model.HostConfig;
import com.github.dockerjava.core.DefaultDockerClientConfig; import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.DockerClientConfig; import com.github.dockerjava.core.DockerClientConfig;
import com.github.dockerjava.core.DockerClientImpl; import com.github.dockerjava.core.DockerClientImpl;
import com.github.dockerjava.httpclient5.ApacheDockerHttpClient;
import com.github.dockerjava.transport.DockerHttpClient; import com.github.dockerjava.transport.DockerHttpClient;
import com.github.dockerjava.zerodep.ZerodepDockerHttpClient;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
...@@ -29,7 +29,7 @@ public class DockerUtil { ...@@ -29,7 +29,7 @@ public class DockerUtil {
DockerClientConfig dockerClientConfig = DefaultDockerClientConfig.createDefaultConfigBuilder().build(); DockerClientConfig dockerClientConfig = DefaultDockerClientConfig.createDefaultConfigBuilder().build();
LOG.debug("create docker http client"); LOG.debug("create docker http client");
DockerHttpClient httpClient = new ApacheDockerHttpClient.Builder() ZerodepDockerHttpClient httpClient = new ZerodepDockerHttpClient.Builder()
.dockerHost(dockerClientConfig.getDockerHost()) .dockerHost(dockerClientConfig.getDockerHost())
.sslConfig(dockerClientConfig.getSSLConfig()) .sslConfig(dockerClientConfig.getSSLConfig())
.build(); .build();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment