Skip to content

Instantly share code, notes, and snippets.

@cwansart
Created February 12, 2020 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwansart/243bbae6ba31536127ca5b4f48613d8f to your computer and use it in GitHub Desktop.
Save cwansart/243bbae6ba31536127ca5b4f48613d8f to your computer and use it in GitHub Desktop.
h2 database during integration-tests
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.31.0</version>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<showLogs>false</showLogs>
<images>
<image>
<name>oscarfonts/h2:1.4.199</name>
<run>
<env>
<H2_OPTIONS>-ifNotExists</H2_OPTIONS>
</env>
<ports>
<port>1521:1521</port>
</ports>
<wait>
<log>Web Console server running at</log>
<time>30000</time>
</wait>
</run>
</image>
</images>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment