add maven docker plugin for luoo_web

main
wangqing 10 months ago
parent 93872f11cc
commit d195b78053

@ -50,19 +50,31 @@
<artifactId>swagger-bootstrap-ui</artifactId> <artifactId>swagger-bootstrap-ui</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>app</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> </plugin>
<execution> <!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<goals> <plugin>
<goal>repackage</goal> <groupId>com.spotify</groupId>
</goals> <artifactId>docker-maven-plugin</artifactId>
</execution> <version>0.4.13</version>
</executions> <configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

Loading…
Cancel
Save