@ -11,6 +11,7 @@
<properties >
<maven.deploy.skip > true</maven.deploy.skip>
<contextDir > ${project.parent.parent.parent.basedir}/docker/threadpool</contextDir>
</properties>
<dependencies >
@ -58,20 +59,70 @@
</executions>
</plugin>
<plugin >
<groupId > com.spotify</groupId>
<artifactId > docker-maven-plugin</artifactId>
<version > 1.2.2</version>
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-resources-plugin</artifactId>
<executions >
<execution >
<id > copy-resources</id>
<phase > package</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<encoding > UTF-8</encoding>
<outputDirectory > ../../../docker/threadpool/conf/</outputDirectory>
<resources >
<resource >
<directory > conf</directory>
<includes >
<include > hippo4j-logback.xml</include>
<include > application.properties</include>
<include > application-h2.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution >
<id > copy-build</id>
<phase > package</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<imageName > hippo4j-server:${project.version}</imageName>
<dockerDirectory > ${project.basedir}</dockerDirectory>
<encoding > UTF-8</encoding >
<outputDirectory > ../../../docker/threadpool/target</output Directory>
<resources >
<resource >
<targetPath > /</targetPath>
<directory > ${project.build.directory}</directory>
<include > ${project.build.finalName}.jar</include>
<directory > target</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > io.fabric8</groupId>
<artifactId > docker-maven-plugin</artifactId>
<version > 0.42.1</version>
<configuration >
<images >
<image >
<name > hippo4j/${project.build.finalName}:${project.version}</name>
<alias > ${project.build.finalName}</alias>
<build >
<contextDir > ${contextDir}</contextDir>
</build>
</image>
<image >
<name > hippo4j/${project.build.finalName}:latest</name>
<alias > ${project.build.finalName}</alias>
<build >
<contextDir > ${contextDir}</contextDir>
</build>
</image>
</images>
</configuration>
</plugin>
</plugins>
</build>