Skip to content

Commit 42b55de

Browse files
author
Marcus Linke
committed
wip
1 parent 985fee2 commit 42b55de

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

pom.xml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,12 @@
244244
<artifactId>netty-handler-proxy</artifactId>
245245
<version>${netty.version}</version>
246246
</dependency>
247-
<dependency>
248-
<groupId>io.netty</groupId>
249-
<artifactId>netty-transport-native-epoll</artifactId>
250-
<version>${netty.version}</version>
251-
<classifier>linux-x86_64</classifier>
252-
<exclusions>
253-
<exclusion>
254-
<groupId>io.netty</groupId>
255-
<artifactId>netty-transport-native-unix-common</artifactId>
256-
</exclusion>
257-
</exclusions>
258-
</dependency>
247+
<!-- <dependency> -->
248+
<!-- <groupId>io.netty</groupId> -->
249+
<!-- <artifactId>netty-transport-native-epoll</artifactId> -->
250+
<!-- <version>${netty.version}</version> -->
251+
<!-- <classifier>linux-x86_64</classifier> -->
252+
<!-- </dependency> -->
259253
<dependency>
260254
<groupId>io.netty</groupId>
261255
<artifactId>netty-transport-native-kqueue</artifactId>
@@ -304,13 +298,13 @@
304298
</distributionManagement>
305299

306300
<build>
307-
<extensions>
308-
<extension>
309-
<groupId>kr.motd.maven</groupId>
310-
<artifactId>os-maven-plugin</artifactId>
311-
<version>1.4.0.Final</version>
312-
</extension>
313-
</extensions>
301+
<!-- <extensions> -->
302+
<!-- <extension> -->
303+
<!-- <groupId>kr.motd.maven</groupId> -->
304+
<!-- <artifactId>os-maven-plugin</artifactId> -->
305+
<!-- <version>1.5.0.Final</version> -->
306+
<!-- </extension> -->
307+
<!-- </extensions> -->
314308
<pluginManagement>
315309
<plugins>
316310

src/main/java/com/github/dockerjava/netty/NettyDockerCmdExecFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ public EventLoopGroup init(Bootstrap bootstrap, DockerClientConfig dockerClientC
224224
new DefaultThreadFactory(threadPrefix));
225225

226226
bootstrap.group(nioEventLoopGroup).channel(KQueueDomainSocketChannel.class)
227-
.handler(new ChannelInitializer<SocketChannel>() {
227+
.handler(new ChannelInitializer<KQueueDomainSocketChannel>() {
228228
@Override
229-
protected void initChannel(final SocketChannel channel) throws Exception {
229+
protected void initChannel(final KQueueDomainSocketChannel channel) throws Exception {
230230
channel.pipeline().addLast(new LoggingHandler(getClass()));
231231
channel.pipeline().addLast(new HttpClientCodec());
232232
}

src/test/java/com/github/dockerjava/netty/exec/AuthCmdExecTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public void testAuth() throws Exception {
4646

4747
@Test(expectedExceptions = UnauthorizedException.class)
4848
public void testAuthInvalid() throws Exception {
49-
DockerClientBuilder.getInstance(config("garbage")).build().authCmd().exec();
49+
DockerClientBuilder.getInstance(config("garbage")).withDockerCmdExecFactory(dockerCmdExecFactory)
50+
.build().authCmd().exec();
5051
}
5152
}

0 commit comments

Comments
 (0)