支持docker

pull/3/head
tanghc 4 years ago
parent 62bbb9a130
commit 3c55c17818
  1. 2
      dockerfile
  2. 4
      sop-gateway/pom.xml

@ -8,4 +8,6 @@ ADD sop-website/target/*.jar sop/sop-website/sop-website.jar
ADD sop-auth/target/*.jar sop/sop-website/sop-auth.jar ADD sop-auth/target/*.jar sop/sop-website/sop-auth.jar
ADD sop-example/sop-story/target/*.jar sop/sop-story/sop-story.jar ADD sop-example/sop-story/target/*.jar sop/sop-story/sop-story.jar
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"] ENTRYPOINT ["docker-entrypoint.sh"]

@ -95,14 +95,13 @@
<skipTests>true</skipTests> <skipTests>true</skipTests>
</configuration> </configuration>
</plugin> </plugin>
<!-- docker插件 --> <!-- docker插件
<plugin> <plugin>
<groupId>com.spotify</groupId> <groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId> <artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<configuration> <configuration>
<imageName>${project.groupId}/${project.artifactId}</imageName> <imageName>${project.groupId}/${project.artifactId}</imageName>
<!--docker文件所在的目录-->
<dockerDirectory>src/main/docker</dockerDirectory> <dockerDirectory>src/main/docker</dockerDirectory>
<resources> <resources>
<resource> <resource>
@ -113,6 +112,7 @@
</resources> </resources>
</configuration> </configuration>
</plugin> </plugin>
-->
</plugins> </plugins>
</build> </build>

Loading…
Cancel
Save