fix:修改docker打印插件

pull/180/head
11353 4 years ago
parent 2c608964a6
commit bf9c7d2c75

@ -44,7 +44,7 @@
<p6spy.version>3.9.1</p6spy.version>
<fusesource.jansi.version>2.4.0</fusesource.jansi.version>
<transmittable-thread-local.version>2.12.2</transmittable-thread-local.version>
<docker.maven.plugin.version>1.2.2</docker.maven.plugin.version>
<dockerfile.maven.plugin.version>1.4.13</dockerfile.maven.plugin.version>
<compiler.maven.plugin.version>3.10.1</compiler.maven.plugin.version>
</properties>
@ -306,8 +306,8 @@
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile.maven.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

@ -71,8 +71,10 @@
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<artifactId>dockerfile-maven-plugin</artifactId>
<configuration>
<dockerfile>
<buildArgs>
<!--注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功-->
<imageName>${project.artifactId}:last</imageName>
<!--指定基础镜像-->
@ -80,8 +82,8 @@
<!--指定远程docker地址-->
<!--使用http协议 https 需要加TLS证书-->
<dockerHost>http://175.178.38.240:8076</dockerHost>
<!-- &lt;!&ndash;配置TLS证书在系统中的路径&ndash;&gt;-->
<!-- <dockerCertPath>/Users/root/docker-ca</dockerCertPath>-->
<!-- &lt;!&ndash;配置TLS证书在系统中的路径&ndash;&gt;-->
<!-- <dockerCertPath>/Users/root/docker-ca</dockerCertPath>-->
<!-- 指定默认挂载地址 -->
<volumes>/mydata/service/ruoyi</volumes>
<!-- 创建目录-->
@ -90,19 +92,22 @@
<entryPoint>
["java", "-jar", "-Dspring.profiles.active=dev","/mydata/service/ruoyi/${project.build.finalName}.jar"]
</entryPoint>
<!-- <buildArgs>-->
<!-- <JAR-FILE>target/${project.build.finalName}.jar</JAR-FILE>-->
<!-- </buildArgs>-->
<!-- <buildArgs>-->
<!-- <JAR-FILE>target/${project.build.finalName}.jar</JAR-FILE>-->
<!-- </buildArgs>-->
<!--复制jar包到docker容器指定目录-->
<!-- <resources>-->
<!-- <resource>-->
<!-- <targetPath>/mydata/service/ruoyi</targetPath>-->
<!-- &lt;!&ndash;jar包在项目中生成的路径即对应的target目录&ndash;&gt;-->
<!-- <directory>${project.build.directory}</directory>-->
<!-- &lt;!&ndash;指定需要复制的文件&ndash;&gt;-->
<!-- <include>${project.build.finalName}.jar</include>-->
<!-- </resource>-->
<!-- </resources>-->
<!-- <resources>-->
<!-- <resource>-->
<!-- <targetPath>/mydata/service/ruoyi</targetPath>-->
<!-- &lt;!&ndash;jar包在项目中生成的路径即对应的target目录&ndash;&gt;-->
<!-- <directory>${project.build.directory}</directory>-->
<!-- &lt;!&ndash;指定需要复制的文件&ndash;&gt;-->
<!-- <include>${project.build.finalName}.jar</include>-->
<!-- </resource>-->
<!-- </resources>-->
</buildArgs>
</dockerfile>
</configuration>
</plugin>
</plugins>

Loading…
Cancel
Save