Permalink
Browse files

Add the docker-maven-plugin by fabric8

This plugin is used to start a docker container based on the official postgresql image before the integration tests run. The integration tests are run by the failsafe plugin so its made sure that the container will be removed afterwards.
  • Loading branch information...
michael-simons committed Aug 25, 2016
1 parent 305320b commit 9084168c2b629b5235929eaadd06f2cd2e1e357d
Showing with 38 additions and 0 deletions.
  1. +38 −0 pom.xml
View
38 pom.xml
@@ -386,6 +386,44 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.15.16</version>
<executions>
<execution>
<id>prepare-it-database</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<name>postgres:9.5.4</name>
<alias>it-database</alias>
<run>
<ports>
<port>it-database.port:5432</port>
</ports>
<wait>
<log>database system is ready to accept connections</log>
<time>20000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
<execution>
<id>remove-it-database</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>

0 comments on commit 9084168

Please sign in to comment.