TODO docker打包

This commit is contained in:
wangliwen 2022-06-30 14:16:06 +08:00
parent 91fc811ed6
commit 22bdb9c4dc
2 changed files with 34 additions and 0 deletions

View File

@ -382,6 +382,40 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.2.8</version>
<executions>
<execution>
<id>docker</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
<!-- 指定本地docker -->
<dockerHost>http://15.2.21.243:2375</dockerHost>
<!-- Configure the image name -->
<imageName>hisense/share-platform</imageName>
<imageTags>
<imageTag>${project.version}</imageTag>
</imageTags>
<forceTags>true</forceTags>
<resources>
<resource>
<targetPath>/application</targetPath>
<directory>${project.build.directory}</directory>
<includes>
<include>${project.artifactId}-${project.version}-fat.jar</include>
</includes>
</resource>
</resources>
</configuration>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->

View File