Ver código fonte

万达设备台账信息同步开发,docker镜像打包

weiyizhong 3 anos atrás
pai
commit
52c37635ca
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      Dockerfile
  2. 1 1
      docker/pipeline.txt

+ 1 - 1
Dockerfile

@@ -3,4 +3,4 @@ FROM java:8
 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime	&& echo 'Asia/Shanghai' > /etc/timezone
 COPY ./target/persagy-sync-data.jar persagy-sync-data.jar
 ENTRYPOINT ["java", "-jar", "/persagy-sync-data.jar"]
-EXPOSE 9980
+EXPOSE 9803

+ 1 - 1
docker/pipeline.txt

@@ -43,7 +43,7 @@ pipeline { //pipeline 顶层
             steps {
                 sh 'chmod -R +x ./$DEPLOY_FILE_PATH/'
                 sh 'rm -rf ./$DEPLOY_FILE_PATH/*.jar && cp ./target/*.jar ./$DEPLOY_FILE_PATH'
-                sh 'docker build -f ./Dockerfile --build-arg WORKER_HOME=$WORKER_HOME -t $DOCKER_IMAGE ./$DEPLOY_FILE_PATH'
+                sh 'docker build -f ./$DEPLOY_FILE_PATH/Dockerfile --build-arg WORKER_HOME=$WORKER_HOME -t $DOCKER_IMAGE ./$DEPLOY_FILE_PATH'
             }
         }
         //部署流程四:项目推送到本地私有仓库