|
@@ -41,6 +41,9 @@
|
|
|
<guava.version>28.1-jre</guava.version>
|
|
|
<txlcn-tc.version>5.0.2.RELEASE</txlcn-tc.version>
|
|
|
<txlcn-txmsg-netty.version>5.0.2.RELEASE</txlcn-txmsg-netty.version>
|
|
|
+ <docker-maven-plugin.version>1.2.2</docker-maven-plugin.version>
|
|
|
+ <docker.image.prefix>192.168.2.121:5000/diagbotcloud</docker.image.prefix>
|
|
|
+ <registryUrl>http://192.168.2.121:5000/repository/diagbotcloud/</registryUrl>
|
|
|
</properties>
|
|
|
|
|
|
<dependencyManagement>
|
|
@@ -142,12 +145,35 @@
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>${docker-maven-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <imageName>emrais/${project.artifactId}:${project.version}</imageName>
|
|
|
+ <baseImage>java:8</baseImage>
|
|
|
+ <forceTags>true</forceTags>
|
|
|
+ <entryPoint>["/bin/sh", "-c", "java $JAVA_OPTS", "-jar", "/${project.build.finalName}.jar"]
|
|
|
+ </entryPoint>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <serverId>docker-registry</serverId>
|
|
|
+ <registryUrl>${registryUrl}</registryUrl>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
</build>
|
|
|
|
|
|
</project>
|