You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2019/01/11 13:32:53 UTC
[tomee] branch master updated: Introduce docker profile to allow
build to run without docker present. To build this example and get the
docker image, use `mvn clean install -Pdocker`.
This is an automated email from the ASF dual-hosted git repository.
jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 80b9989 Introduce docker profile to allow build to run without docker present. To build this example and get the docker image, use `mvn clean install -Pdocker`.
80b9989 is described below
commit 80b99894e101c5d40326a2a66a2359ba97e1ab44
Author: Jonathan Gallimore <jo...@jrg.me.uk>
AuthorDate: Fri Jan 11 13:31:57 2019 +0000
Introduce docker profile to allow build to run without docker present. To build this example and get the docker image, use `mvn clean install -Pdocker`.
---
examples/mp-metrics-counted/pom.xml | 84 +++++++++++++++++++++----------------
1 file changed, 47 insertions(+), 37 deletions(-)
diff --git a/examples/mp-metrics-counted/pom.xml b/examples/mp-metrics-counted/pom.xml
index 3e381ff..67ddd8a 100644
--- a/examples/mp-metrics-counted/pom.xml
+++ b/examples/mp-metrics-counted/pom.xml
@@ -106,43 +106,53 @@
<target>1.8</target>
</configuration>
</plugin>
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>0.28.0</version>
- <executions>
- <execution>
- <id>start</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>build</goal>
- <goal>start</goal>
- </goals>
- </execution>
- <execution>
- <id>stop</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <pushRegistry>somename</pushRegistry>
- <images>
- <image>
- <name>${docker.image.name}</name>
- <build>
- <tags>
- <tag>${project.version}</tag>
- <tag>latest</tag>
- </tags>
- <dockerFile>${project.basedir}/${docker.file.name}</dockerFile >
- </build>
- </image>
- </images>
- </configuration>
- </plugin>
+
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.28.0</version>
+ <executions>
+ <execution>
+ <id>start</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>stop</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <pushRegistry>somename</pushRegistry>
+ <images>
+ <image>
+ <name>${docker.image.name}</name>
+ <build>
+ <tags>
+ <tag>${project.version}</tag>
+ <tag>latest</tag>
+ </tags>
+ <dockerFile>${project.basedir}/${docker.file.name}</dockerFile >
+ </build>
+ </image>
+ </images>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file