@@ -0,0 +1,15 @@
+#!/bin/bash
+#### debug model prod
+#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev target/Api.jar $1 > center.log 2>&1 &
+
+#### normal prod model
+#nohup java -jar -Dspring.profiles.active=prod $1 target/Api.jar > center.log $1 2>&1 &
+#### normal test model
+#nohup java -jar -Dspring.profiles.active=test $1 target/Api.jar > center.log $1 2>&1 &
+#### normal dev model
+#nohup java -jar -Dspring.profiles.active=dev $1 target/Api.jar > center.log $1 2>&1 &
+nohup java -jar -Dspring.profiles.active=$1 $2 target/Api.jar > center.log $2 2>&1 &
+tail -100f center.log
@@ -0,0 +1,11 @@
+FROM registry.cn-beijing.aliyuncs.com/sxd/ubuntu-java8:1.0
+MAINTAINER wuxw <928255095@qq.com>
+ADD target/Api.jar /root/target/
+ADD bin/start_center.sh /root/
+RUN chmod u+x /root/start_api.sh
+CMD ["/root/start_api.sh","dev -Dcache"]
+cp -r ../bin .
+cp -r ../target .
+docker build -t java110/api .
+docker run -ti --name api_test -p8001:8001 -idt java110/api:latest
+docker logs -f api_test