Przeglądaj źródła

web 服务 修改docker内容

wuxw 7 lat temu
rodzic
commit
80f9d76904

+ 0 - 16
WebService/bin/start_console.sh

@@ -1,16 +0,0 @@
-#!/bin/bash
-#### debug model prod
-#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev target/ConsoleService.jar > console.log 2>&1 &
-
-#### normal prod model
-#nohup java -jar -Dspring.profiles.active=prod target/ConsoleService.jar > console.log 2>&1 &
-
-#### normal test model
-#nohup java -jar -Dspring.profiles.active=test target/ConsoleService.jar > console.log 2>&1 &
-
-#### normal dev model
-#nohup java -jar -Dspring.profiles.active=dev target/ConsoleService.jar > console.log 2>&1 &
-
-nohup java -jar -Dspring.profiles.active=$1 target/ConsoleService.jar > console.log 2>&1 &
-
-tail -100f console.log

+ 16 - 0
WebService/bin/start_web.sh

@@ -0,0 +1,16 @@
+#!/bin/bash
+#### debug model prod
+#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev target/WebService.jar > web.log 2>&1 &
+
+#### normal prod model
+#nohup java -jar -Dspring.profiles.active=prod target/WebService.jar > web.log 2>&1 &
+
+#### normal test model
+#nohup java -jar -Dspring.profiles.active=test target/WebService.jar > web.log 2>&1 &
+
+#### normal dev model
+#nohup java -jar -Dspring.profiles.active=dev target/WebService.jar > web.log 2>&1 &
+
+nohup java -jar -Dspring.profiles.active=$1 target/WebService.jar > web.log 2>&1 &
+
+tail -100f web.log

+ 4 - 4
WebService/docker/Dockerfile

@@ -1,11 +1,11 @@
 FROM registry.cn-beijing.aliyuncs.com/sxd/ubuntu-java8:1.0
 MAINTAINER wuxw <928255095@qq.com>
 
-ADD target/ConsoleService.jar /root/target/
+ADD target/WebService.jar /root/target/
 
-ADD bin/start_console.sh /root/
+ADD bin/start_web.sh /root/
 
 
-RUN chmod u+x /root/start_console.sh
+RUN chmod u+x /root/start_web.sh
 
-CMD ["/root/start_console.sh","dev"]
+CMD ["/root/start_web.sh","dev"]