Browse Source

Add docker image creation

master
parent
commit
4da129e97b
1 changed files with 32 additions and 0 deletions
  1. +32
    -0
      pom.xml

+ 32
- 0
pom.xml View File

@@ -221,6 +221,38 @@
</rules>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.31.0</version>
<configuration>
<images>
<image>
<alias>${project.artifactId}</alias>
<name>perfectable/${project.artifactId}:${project.version}</name>
<build>
<from>openjdk:8-alpine</from>
<assembly>
<name>app</name>
<inline>
<files>
<file>
<source>${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</source>
<destName>${project.artifactId}.jar</destName>
</file>
</files>
</inline>
</assembly>
<workdir>/repository/</workdir>
<cmd>
<shell>java -jar /app/${project.artifactId}.jar /etc/repositable.conf.xml</shell>
</cmd>
</build>
</image>
</images>
</configuration>
</plugin>

</plugins>
</build>
</project>

Loading…
Cancel
Save