|
|
@@ -4,8 +4,7 @@ mvn package -Dmaven.test.skip=true |
|
|
|
#image_version=$(date +%Y%m%d%H%M) |
|
|
|
image_version=$version |
|
|
|
|
|
|
|
docker cp docker_jenkins:/var/jenkins_home/workspace/dipperpos_service/target/dipperposition.jar |
|
|
|
/home/data/dipperposition |
|
|
|
docker cp docker_jenkins:/var/jenkins_home/workspace/dipperpos_service/target/dipperposition.jar /home/data/dipperposition/dipperposition.jar |
|
|
|
#docker stop dipperposition_service || true |
|
|
|
#docker rm dipperposition_service || true |
|
|
|
|
|
|
@@ -60,5 +59,6 @@ docker cp docker_jenkins:/var/jenkins_home/workspace/dipperpos_service/target/di |
|
|
|
# docker logs dipperposition_service |
|
|
|
|
|
|
|
echo '=================启动NettyAPP=======================' |
|
|
|
ps -ef |grep dipperposition |awk '{print $2}'|xargs kill -9 |
|
|
|
java -jar -Xms256m -Xmx256m -Xss256k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m /home/data/dipperposition/dipperposition.jar |
|
|
|
echo '=================完成NettyAPP启动=======================' |