Docker compose-based continuous integration method and apparatus

A technology of continuous integration and folder integration, which is applied in the direction of program control device, software deployment, program loading/starting, etc. It can solve the problems of low integration efficiency and complicated process, and achieve the effect of improving integration efficiency and facilitating rapid construction and deployment

Inactive Publication Date: 2017-03-22
GUANGZHOU SHIRUI ELECTRONICS +1
View PDF1 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the above continuous integration method, in the process of continuous integration, after each compilation and packaging of the code, the image is rebuilt and uploaded to the image library, the process is complicated and the integration efficiency is low

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
  • Docker compose-based continuous integration method and apparatus
  • Docker compose-based continuous integration method and apparatus
  • Docker compose-based continuous integration method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] figure 1 A schematic flow chart of a continuous integration method based on docker compose provided by Embodiment 1 of the present invention. This embodiment is applicable to any situation that requires continuous integration. The method can be executed by a continuous integration device based on docker compose, wherein the device Can be implemented by software and / or hardware. The method specifically includes the following steps:

[0022] Step 110, creating a docker compose.yml file for configuring mirroring in the integration folder.

[0023] Among them, the docker compose.yml file is the configuration file of docker compose. Each service can be defined in the dockercompose.yml file, and the mirrors that each service depends on and the dependencies between the containers generated after each mirror runs are specified. Through the docker compose.yml file, docker compose manages and configures each container to form a complete application service.

[0024] Preferably...

Embodiment 2

[0042] figure 2 It is a schematic flowchart of a continuous integration method based on docker compose provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of embodiment one, such as figure 2 As shown, in the solution of Embodiment 1, optionally, step 130, saving the update program of the executable program to be integrated to the integration folder can be specifically implemented in the following manner: Step 230, saving the update program of the The binary program obtained after the source code is compiled by Jenkins is saved to the integration folder.

[0043] Correspondingly, the method provided in this embodiment includes:

[0044] Step 210, creating a docker compose.yml file for configuring mirroring in the integration folder.

[0045] Step 220, save the executable program in the integration folder, and mount it in the docker compose.yml file as a disk mount.

[0046] Step 230, saving the binary program obtained after the sou...

Embodiment 3

[0050] image 3 It is a schematic flowchart of a continuous integration method based on docker compose provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of embodiment one, such as image 3 As shown, in the solution of Embodiment 1, optionally, step 130, saving the update program of the executable program to be integrated to the integration folder can be specifically implemented in the following manner: Step 330, the source code The source code of the update program run in the way of jenkins is obfuscated and saved to the integration folder.

[0051] Correspondingly, the method provided in this embodiment includes:

[0052] Step 310, creating a docker compose.yml file for mirror configuration in the integration folder.

[0053] Step 320, save the executable program in the integration folder, and mount it in the form of disk mounting in the docker compose.yml file.

[0054] Step 330, the source code of the update program running in ...

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 a docker compose-based continuous integration method and apparatus. The method comprises the steps of establishing a docker compose.yml file used for configuring a mirror image in an integrated folder; storing an executable program in the integrated folder, and performing mounting in a disk mounting way in the docker compose.yml file; and storing an update program of a to-be-integrated executable program in the integrated folder. According to the technical scheme provided by the method and the apparatus, the mirror image does not need to be updated during each code updating, so that the construction and deployment can be conveniently and quickly finished and the continuous integration efficiency is improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of software technology development, in particular to a continuous integration method and device based on docker compose. Background technique [0002] Continuous integration (CI) is a software development practice and an important part of the software development process. In continuous integration, team developers should often integrate their work results to detect integration errors as early as possible and ensure the quality of developed products. [0003] Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container and then distribute them to any popular Linux machine. In the prior art, the continuous integration method based on docker generally includes submitting code in the code base, compiling and packaging the code, building a mirror image, uploading the built mirror image to the mirror library, ...

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): G06F9/445
CPCG06F8/65
Inventor 张龙华
Owner GUANGZHOU SHIRUI ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products