|
@@ -22,6 +22,9 @@
|
|
|
<google.zxing.version>3.4.0</google.zxing.version>
|
|
|
<redisson.version>3.11.5</redisson.version>
|
|
|
<maven.test.skip>true</maven.test.skip>
|
|
|
+ <docker.host>http://82.156.200.45:2375</docker.host>
|
|
|
+ <docker.registry.repository>82.156.200.45:5000</docker.registry.repository>
|
|
|
+ <docker.maven.plugin.version>1.2.2</docker.maven.plugin.version>
|
|
|
</properties>
|
|
|
|
|
|
<dependencyManagement>
|
|
@@ -388,6 +391,35 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>${docker.maven.plugin.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>build-image</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>build</goal>
|
|
|
+ <goal>push</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <imageName>${docker.registry.repository}/${project.artifactId}:${project.version}</imageName>
|
|
|
+ <dockerHost>${docker.host}</dockerHost>
|
|
|
+ <baseImage>java:8</baseImage>
|
|
|
+ <entryPoint>["java", "-jar","-Dspring.profiles.active=dev","/${project.build.finalName}.jar"]
|
|
|
+ </entryPoint>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</pluginManagement>
|
|
|
<plugins>
|