Skip to content

Instantly share code, notes, and snippets.

@bibryam
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save bibryam/9909922 to your computer and use it in GitHub Desktop.

Select an option

Save bibryam/9909922 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>com.ofbizian</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<images>
<image>
<name>dockerfile/redis</name>
<hostConfig>
<![CDATA[
{
"PortBindings": {
"6379/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "6379"
}
]
}
}
]]>
</hostConfig>
</image>
</images>
</configuration>
<executions>
<execution>
<id>start-docker</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-docker</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment