@ -11,6 +11,7 @@
<properties >
<properties >
<maven.deploy.skip > true</maven.deploy.skip>
<maven.deploy.skip > true</maven.deploy.skip>
<contextDir > ${project.parent.parent.parent.basedir}/docker/threadpool</contextDir>
</properties>
</properties>
<dependencies >
<dependencies >
@ -58,20 +59,70 @@
</executions>
</executions>
</plugin>
</plugin>
<plugin >
<plugin >
<groupId > com.spotify</groupId>
<groupId > org.apache.maven.plugins</groupId>
<artifactId > docker-maven-plugin</artifactId>
<artifactId > maven-resources-plugin</artifactId>
<version > 1.2.2</version>
<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 >
<configuration >
<imageName > hippo4j-server:${project.version}</imageName>
<encoding > UTF-8</encoding >
<dockerDirectory > ${project.basedir}</dockerDirectory>
<outputDirectory > ../../../docker/threadpool/target</output Directory>
<resources >
<resources >
<resource >
<resource >
<targetPath > /</targetPath>
<directory > target</directory>
<directory > ${project.build.directory}</directory>
<include > ${project.build.finalName}.jar</include>
</resource>
</resource>
</resources>
</resources>
</configuration>
</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>
</plugin>
</plugins>
</plugins>
</build>
</build>