Created
August 23, 2015 15:28
-
-
Save mgurov/8c9c991d95b5a95b91ff to your computer and use it in GitHub Desktop.
docker-maven-plugin-testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- | |
Simple demo project demonstrating the usage of rhuss/docker-maven-plugin | |
--> | |
<groupId>com.github.mgurov</groupId> | |
<artifactId>docker-maven-runs</artifactId> | |
<version>0.0.1</version> | |
<packaging>pom</packaging> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jolokia</groupId> | |
<artifactId>docker-maven-plugin</artifactId> | |
<version>0.13.4-SNAPSHOT</version> | |
<configuration> | |
<images> | |
<image> | |
<name>local/bes</name> | |
<build> | |
<entryPoint> | |
<shell>echo build entrypoint shell</shell> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BES</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint shell</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/bee</name> | |
<build> | |
<entryPoint> | |
<exec> | |
<arg>echo</arg> | |
<arg>build</arg> | |
<arg>entrypoint</arg> | |
<arg>exec</arg> | |
</exec> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BEE</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint exec</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/bcs</name> | |
<build> | |
<cmd> | |
<shell>echo build cmd shell</shell> | |
</cmd> | |
</build> | |
<run> | |
<log> | |
<prefix>BCS</prefix> | |
</log> | |
<wait> | |
<log>build cmd shell</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/bce</name> | |
<build> | |
<cmd> | |
<exec> | |
<arg>echo</arg> | |
<arg>build</arg> | |
<arg>cmd</arg> | |
<arg>exec</arg> | |
</exec> | |
</cmd> | |
</build> | |
<run> | |
<log> | |
<prefix>BCE</prefix> | |
</log> | |
<wait> | |
<log>build cmd exec</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>busybox</name> | |
<run> | |
<entrypoint>echo run entrypoint shell inline</entrypoint> | |
<log> | |
<prefix>RESI</prefix> | |
</log> | |
<wait> | |
<log>run entrypoint shell inline</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>busybox</name> | |
<run> | |
<cmd>echo run cmd shell inline</cmd> | |
<log> | |
<prefix>RCSI</prefix> | |
</log> | |
<wait> | |
<log>run cmd shell inline</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/blc</name> | |
<build> | |
<command>echo build legacy command</command> | |
</build> | |
<run> | |
<log> | |
<prefix>BLC</prefix> | |
</log> | |
<wait> | |
<log>build legacy command</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>busybox</name> | |
<run> | |
<log> | |
<prefix>NOOP</prefix> | |
</log> | |
</run> | |
</image> | |
<!-- validation FAIL expected --> | |
<!-- | |
<image> | |
<name>busybox</name> | |
<run> | |
<entrypoint></entrypoint> | |
<cmd></cmd> | |
<log> | |
<prefix>empty_cmd</prefix> | |
</log> | |
</run> | |
</image> | |
--> | |
<!-- validation FAIL expected --> | |
<!-- | |
<image> | |
<name>local/shellandexec</name> | |
<build> | |
<entryPoint> | |
<shell>echo build entrypoint shell</shell> | |
<exec> | |
<arg>shellandexec</arg> | |
<arg>b</arg> | |
</exec> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>shellandexec</prefix> | |
</log> | |
<wait> | |
<log>shellandexec</log> | |
</wait> | |
</run> | |
</image> | |
--> | |
<!-- validation FAIL expected --> | |
<!-- | |
<image> | |
<name>local/emptyshell</name> | |
<build> | |
<entryPoint> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>emptyshell</prefix> | |
</log> | |
</run> | |
</image> | |
--> | |
<!-- better config --> | |
<image> | |
<name>local/besi</name> | |
<build> | |
<entryPoint>echo build entrypoint shell inlined</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BESI</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint shell inlined</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/beei</name> | |
<build> | |
<entryPoint> | |
<arg>echo</arg> | |
<arg>build</arg> | |
<arg>entrypoint</arg> | |
<arg>exec</arg> | |
<arg>inlined</arg> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BEEI</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint exec inlined</log> | |
</wait> | |
</run> | |
</image> | |
<image> | |
<name>local/besi-twice</name> | |
<build> | |
<entryPoint> | |
echo build entrypoint shell inlined | |
<shell>echo inlined shell ignored</shell> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BESI-TWICE</prefix> | |
</log> | |
<wait> | |
<log>inlined shell ignored</log> | |
</wait> | |
</run> | |
</image> | |
<!-- validation FAIL expected --> | |
<!-- | |
<image> | |
<name>local/beei-twice</name> | |
<build> | |
<entryPoint> | |
<exec> | |
<arg>echo build entrypoint exec inlined</arg> | |
</exec> | |
<arg>echo twice</arg> | |
</entryPoint> | |
</build> | |
<run> | |
<log> | |
<prefix>BESI-TWICE</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint shell inlined echo twice</log> | |
</wait> | |
</run> | |
</image> | |
--> | |
<!-- validation FAIL expected --> | |
<!-- | |
<image> | |
<name>local/reei-twice</name> | |
<build> | |
</build> | |
<run> | |
<entrypoint> | |
<exec> | |
<arg>echo</arg> | |
<arg>build entrypoint exec inlined</arg> | |
</exec> | |
<arg>echo twice</arg> | |
</entrypoint> | |
<log> | |
<prefix>REEI-TWICE</prefix> | |
</log> | |
<wait> | |
<log>build entrypoint exec inlined echo twice</log> | |
</wait> | |
</run> | |
</image> | |
--> | |
</images> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment