Skip to content

Commit f6f7bd6

Browse files
authored
remove Docker Maven Plugin from Readme
The Docker Maven Plugin is not the main purpose for docker-remote-api-tls. It will work for most setups
1 parent aa07422 commit f6f7bd6

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,3 @@ Now run the container:
2222
`docker run --name remote-api-tls -d -p 2376:443 -v <local cert dir>:/data/certs:ro -v /var/run/docker.sock:/var/run/docker.sock:ro whiledo/docker-remote-api-tls`
2323

2424
Your Docker Remote API is available on port 2376 via https. The client needs to authenticate via `cert.pem` and `key.pem`.
25-
26-
## Works with Docker Maven Plugin
27-
The configuration works great with [fabric8io's Docker Maven Plugin](https://github.com/fabric8io/docker-maven-plugin).
28-
29-
Here is a simple example configuration, where /home/me/my/cert/dir contains `cert.pem`, `key.pem` and `ca.pem` (= ca-cert.pem from above).
30-
```xml
31-
<build>
32-
<plugins>
33-
<plugin>
34-
<groupId>io.fabric8</groupId>
35-
<artifactId>docker-maven-plugin</artifactId>
36-
<version>0.16.8</version>
37-
<configuration>
38-
<images>
39-
<image>
40-
<alias>my-httpd</alias>
41-
<name>httpd</name>
42-
</image>
43-
<image>
44-
<alias>my-newimage</alias>
45-
<name>newimage</name>
46-
<build>
47-
<dockerFile>${project.basedir}/src/test/resources/newimage/Dockerfile</dockerFile>
48-
<compression>gzip</compression><!-- Use gzip here! -->
49-
</build>
50-
</image>
51-
</images>
52-
<dockerHost>https://my-website.org:2376</dockerHost>
53-
<certPath>/home/me/my/cert/dir</certPath>
54-
<useColor>true</useColor>
55-
</configuration>
56-
</plugin>
57-
</plugins>
58-
</build>
59-
```
60-
61-
`mvn docker:build` generates the "newimage" by Dockerfile via the remote API. Use gzip as compression here, if you get an exception.
62-
`mvn docker:start` starts httpd and newimage.

0 commit comments

Comments
 (0)