GH-684: updated java docker library to fix issue with jna not working correctly on Apple Silicon

This commit is contained in:
Martin Lippert
2021-09-16 21:23:25 +02:00
parent 3d39e51422
commit 521cc8b670
17 changed files with 37 additions and 38 deletions

View File

@@ -22,12 +22,12 @@
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java-core</artifactId>
<version>3.2.6-SNAPSHOT</version>
<version>3.2.12</version>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java-transport-zerodep</artifactId>
<version>3.2.6-SNAPSHOT</version>
<version>3.2.12</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>

View File

@@ -7,7 +7,7 @@ import com.github.dockerjava.api.model.Image;
import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.DockerClientImpl;
import com.github.dockerjava.transport.DockerHttpClient;
import com.github.dockerjava.zerodep.ConnectionPoolConfig;
//import com.github.dockerjava.zerodep.ConnectionPoolConfig;
import com.github.dockerjava.zerodep.ZerodepDockerHttpClient;
public class DockerClientWrapperApplication {
@@ -28,11 +28,11 @@ public class DockerClientWrapperApplication {
System.out.println(image.getId());
}
if (httpClient instanceof ConnectionPoolConfig) {
ConnectionPoolConfig cp = (ConnectionPoolConfig) httpClient;
System.out.println("max = " +cp.getPoolSizeMax());
System.out.println("max per route = "+cp.getPoolSizeDefaultMaxPerRoute());
}
// if (httpClient instanceof ConnectionPoolConfig) {
// ConnectionPoolConfig cp = (ConnectionPoolConfig) httpClient;
// System.out.println("max = " +cp.getPoolSizeMax());
// System.out.println("max per route = "+cp.getPoolSizeDefaultMaxPerRoute());
// }
}