四浪潮云服务器自动化部署验证

四浪潮云服务器自动化部署验证

浪潮云服务器部署(四)

 

1. jenkins自动化部署:如下图:

配置如下:

cd /home/jenkins/workspace/lease-java1

rm -rf dist

rm -rf app

cd /home/jenkins/workspace/lease-vue1

cp -r dist /home/jenkins/workspace/lease-java1/dist

cd /home/jenkins/workspace/lease-app1/dist/build

cp -r h5 /home/jenkins/workspace/lease-java1/app

cd /home/jenkins/workspace/lease-java1/target

cp zsy-lease.war /home/jenkins/workspace/lease-java1/

docker build -t zsy-lease1 /home/jenkins/workspace/lease-java1

docker ps

docker stop zsy-lease1

docker rm zsy-lease1

docker run -d -p 6601:8080 –restart=always -v /home/tomcat/logs1:/usr/local/tomcat/logs -v /home/tomcat/file-data:/home/file-data -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime –name zsy-lease1 zsy-lease1

2. docker容器查看:

3. 系统验证:系统全部验证通过!完美结束部署!