Check patentability & draft patents in minutes with Patsnap Eureka AI!

Automatic deployment method based on GitLab and Harbor

A warehouse and branch technology, applied in the field of software development and deployment, can solve problems such as inconsistent performance, reduce communication costs, reduce manual operation intervention, and save human resources

Pending Publication Date: 2022-03-25
上海太翼数字健康管理有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to provide an automated deployment method based on GitLab and Harbor, which can solve the problem of multiple builds of the same code in a multi-branch environment and inconsistent performance in the same environment, and expose the bugs in the software as soon as possible during automatic builds. Most of the errors are timely fed back to the R&D personnel; the cost of communication between teams is reduced, human resources are saved, and products are delivered on time.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic deployment method based on GitLab and Harbor
  • Automatic deployment method based on GitLab and Harbor
  • Automatic deployment method based on GitLab and Harbor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0021] figure 2 It is a schematic diagram of the architecture of the automatic deployment system based on GitLab and Harbor of the present invention.

[0022] See figure 2 , the automatic deployment method based on GitLab and Harbor provided by the present invention, the system is mainly composed of GitLab and Harbor, specifically including:

[0023] Code warehouse: Use GitLab for code warehouse management, which is divided into two warehouses in the system: source code warehouse and management warehouse. The application source code submitted by R&D is hosted in the application source code warehouse, and the process configuration files are hosted in the management warehouse.

[0024] The code warehouse uses a single branch and adopts the Trunk Based Development method for development.

[0025] There are usually two strategies for code branch manag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an automatic deployment method based on GitLab and Harbor. The method comprises the following steps: S1) setting a source code warehouse and a management warehouse by using GitLab; s2) after the source code warehouse receives the submitted code, a GitLab Runner automatically triggers a continuous construction function to compile a package container mirror image; s3) performing mirror image management on the Docker container by using Harbor; one version of the container mirror image is submitted to the mirror image management service every time the container mirror image is successfully constructed, and the same mirror image is used in subsequent different environments; and S4) releasing and deploying the mirror image in the mirror image management service to a test environment or a production environment. According to the method, the problem that the same code is constructed for multiple times in a multi-branch environment and is inconsistent in the same environment can be solved, most errors in software are exposed as soon as possible during automatic construction, the communication cost among teams is reduced, and guarantee is provided for on-time delivery of products.

Description

technical field [0001] The invention relates to a software development and deployment method, in particular to an automatic deployment method based on GitLab and Harbor. Background technique [0002] In the software development process, the traditional application publishing and deployment mode is that after the R&D personnel complete the function development, they submit the code to the code warehouse, and the operation and maintenance personnel pull the code from the code warehouse to package and build it, and deploy it to the server in the test environment after completion. Testers intervene in the test after the deployment of the test server is completed, and the version that fails the test is rejected, and the version that passes the test is released to the production environment. The release process is as follows: figure 1 shown. [0003] The traditional application release deployment mode has the following disadvantages: [0004] 1. Errors are not found in time, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71G06F16/25
CPCG06F8/71G06F16/25
Inventor 叶鹏超邓亚荣沈军晖张继武雷新刚
Owner 上海太翼数字健康管理有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More