From bb53ca80ddfb2d2137fd3bab6c8d0eee253918b9 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 20 Dec 2022 15:09:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/1_batch_entry_camera/Dockerfile | 21 +++++++++++++++++++ jenkinsfile_vcmp_script_1.3.6_data_1 | 18 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera/Dockerfile create mode 100644 jenkinsfile_vcmp_script_1.3.6_data_1 diff --git a/code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera/Dockerfile b/code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera/Dockerfile new file mode 100644 index 0000000..0b756f7 --- /dev/null +++ b/code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera/Dockerfile @@ -0,0 +1,21 @@ +FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder + +COPY . /var/app + +WORKDIR /var/app + +EXPOSE 8080 + +RUN npm config set registry=http://10.8.30.22:7000 +RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json +RUN npm cache clean -f +RUN rm -rf package-lock.json +RUN npm install --registry http://10.8.30.22:7000 + +FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12 + +COPY --from=builder --chown=node /var/app /home/node/app + +WORKDIR /home/node/app + +CMD ["node", "server.js"] \ No newline at end of file diff --git a/jenkinsfile_vcmp_script_1.3.6_data_1 b/jenkinsfile_vcmp_script_1.3.6_data_1 new file mode 100644 index 0000000..39e1ecd --- /dev/null +++ b/jenkinsfile_vcmp_script_1.3.6_data_1 @@ -0,0 +1,18 @@ +pipeline { + agent { + node{ + label 'jnlp-slave' + } + } + + stages { + stage('jenkinsfile_vcmp_script_1.3 ......') { + steps { + buildName "#${BUILD_NUMBER} ~/iot/${JOB_NAME}:${IMAGE_VERSION}" + buildDescription "harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION}" + sh 'nerdctl build -t harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera' + sh 'nerdctl push harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION}' + } + } + } +} \ No newline at end of file