Sfoglia il codice sorgente

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 anni fa
parent
commit
b7582d7201
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      setup_dev.sh

+ 2
- 2
setup_dev.sh Vedi File

@@ -4,7 +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/dipperposition.jar
docker cp docker_jenkins:/var/jenkins_home/workspace/dipperpos_service/target/dipperposition.jar /usr/local/dipperposition/dipperposition.jar
#docker stop dipperposition_service || true
#docker rm dipperposition_service || true

@@ -60,5 +60,5 @@ docker cp docker_jenkins:/var/jenkins_home/workspace/dipperpos_service/target/di

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
java -jar -Xms256m -Xmx256m -Xss256k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m /usr/local/dipperposition/dipperposition.jar
echo '=================完成NettyAPP启动======================='

Loading…
Annulla
Salva