Browse Source

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
003b0fe736
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      setup_dev.sh

+ 2
- 2
setup_dev.sh View File

@@ -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启动======================='

Loading…
Cancel
Save