Skip to content

Instantly share code, notes, and snippets.

@gtudan
Created July 21, 2020 05:30
Show Gist options
  • Save gtudan/751c0f426f5a0f3bced2dd99b89a2bf3 to your computer and use it in GitHub Desktop.
Save gtudan/751c0f426f5a0f3bced2dd99b89a2bf3 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<images>
<image>
<name>${project.artifactId}:${project.version}</name>
<alias>${project.artifactId}</alias>
<build>
<contextDir>${project.basedir}</contextDir>
<assembly>
<name>target</name>
<inline>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>${project.artifactId}-meecrowave-distribution.tar.gz</include>
</includes>
<outputDirectory>.</outputDirectory>
</fileSet>
</inline>
</assembly>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>create-docker-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment