CN108268308A - A kind of continuous integrating method, system and device based on container platform - Google Patents

A kind of continuous integrating method, system and device based on container platform Download PDF

Info

Publication number
CN108268308A
CN108268308A CN201810060842.4A CN201810060842A CN108268308A CN 108268308 A CN108268308 A CN 108268308A CN 201810060842 A CN201810060842 A CN 201810060842A CN 108268308 A CN108268308 A CN 108268308A
Authority
CN
China
Prior art keywords
code
container platform
flow engine
continuous integrating
parallel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810060842.4A
Other languages
Chinese (zh)
Inventor
颜文德
徐�明
叶祖锋
邓锻炼
何润林
刘俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ois Mdt Infotech Ltd
Original Assignee
Guangzhou Ois Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Ois Mdt Infotech Ltd filed Critical Guangzhou Ois Mdt Infotech Ltd
Priority to CN201810060842.4A priority Critical patent/CN108268308A/en
Publication of CN108268308A publication Critical patent/CN108268308A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses a kind of continuous integrating method, system and device based on container platform, method includes:Code is pushed to Gitlab;Code is submitted to flow engine by the Webhook of triggering Gitlab;Flow engine is performed code in distributed type assemblies by K8S systems parallel.The present invention by performing code in K8S systems parallel in distributed type assemblies, third party's continuous integrating platform need not be relied on, only need easy configuration that continuous integrating flow can be completed, greatly reduce complexity, and performed by the way that task is programmed into distributed type assemblies, execution efficiency and speed can be greatly improved.It the composite can be widely applied in software development.

Description

A kind of continuous integrating method, system and device based on container platform
Technical field
The present invention relates to computer software technical field more particularly to a kind of continuous integrating method based on container platform, System and device.
Background technology
Continuous integrating is a kind of practice of software, i.e., team's exploitation member often integrates their work, by each Member is at least integrated primary daily, and also meaning that may occur repeatedly to integrate daily.Collection Chengdu passes through automation every time (including compiling, publication, automatic test) is built to verify, so as to find to integrate mistake as soon as possible.
Done on general continuous integrating scheme be substantially all using third-party continuous integrating platform such as jenkins, Then Travis etc. calls the interface of third-party continuous integrating platform to carry out the exploitation of continuous integrating flow in code. This, which allows for developer, need to be familiar with the interface and process for using of third party's tool, and third party's integrated platform is wanted and enterprise Continuous integrating flow combine, learning cost is high, and configuration is complicated, and tool insert has dependence to environment, it is not easy to meet specific Flow, and it is general on using serial flow, greatly reduce software development efficiency.
Invention content
In order to solve the above-mentioned technical problem, development efficiency can be improved, and based on container the object of the present invention is to provide a kind of The continuous integrating method, system and device of platform.
The technical solution used in the present invention is:
A kind of continuous integrating method based on container platform, includes the following steps:
Code is pushed to Gitlab;
Code is submitted to flow engine by the Webhook of triggering Gitlab;
Flow engine is performed code in distributed type assemblies by K8S systems parallel.
As a kind of continuous integrating further improvements in methods based on container platform, the flow engine leads to K8S systems are crossed to perform code parallel in distributed type assemblies, the step for specifically include:
Flow engine stores code;
Each task in code selects corresponding docker mirror images from Component Gallery;
In K8S systems, each task is performed in corresponding docker mirror images parallel using gorouting.
As a kind of continuous integrating further improvements in methods based on container platform, the docker mirror images are According to the mirror image made as required.
Another technical solution of the present invention is:
A kind of continuous integration system based on container platform, including:
Push unit, for pushing code to Gitlab;
Code is submitted to flow engine by trigger element, the Webhook for triggering Gitlab;
Execution unit is performed code in distributed type assemblies by K8S systems for flow engine parallel.
As a kind of being further improved for continuous integration system based on container platform, the execution unit is specific Including:
Storage unit stores code for flow engine;
Mirror image selecting unit for each task in code, selects corresponding docker mirror images from Component Gallery;
Parallel execution unit, in K8S systems, using gorouting by each task in corresponding docker mirrors It is performed parallel as in.
As a kind of being further improved for continuous integration system based on container platform, the docker mirror images are According to the mirror image made as required.
Another technical solution of the present invention is:
A kind of continuous integrating device based on container platform, including:
Memory, for storing program;
Processor, for performing described program, it is described based on container platform that described program so that the processor performs Continuous integrating method.
The beneficial effects of the invention are as follows:
A kind of continuous integrating method, system and device based on container platform of the present invention by K8S systems by code It is performed parallel in distributed type assemblies, without relying on third party's continuous integrating platform, only needs easy configuration that lasting collection can be completed Into flow, complexity is greatly reduced, and perform by the way that task is programmed into distributed type assemblies, can greatly improve and perform effect Rate and speed.
Description of the drawings
Fig. 1 is a kind of step flow chart of the continuous integrating method based on container platform of the present invention;
Fig. 2 is a kind of block diagram of the continuous integration system based on container platform of the present invention;
Fig. 3 is the flow engine embodiment schematic diagram of the present invention.
Specific embodiment
The specific embodiment of the present invention is described further below in conjunction with the accompanying drawings:
With reference to figure 1, a kind of continuous integrating method based on container platform of the present invention includes the following steps:
Code is pushed to Gitlab;
Code is submitted to flow engine by the Webhook of triggering Gitlab;
Flow engine is performed code in distributed type assemblies by K8S systems parallel.
Preferred embodiment is further used as, the flow engine is by K8S systems by code in distributed type assemblies In perform parallel, the step for specifically include:
Flow engine stores code;
Each task in code selects corresponding docker mirror images from Component Gallery;
In K8S systems, each task is performed in corresponding docker mirror images parallel using gorouting.
Preferred embodiment is further used as, the docker mirror images are according to the mirror image made as required.
With reference to figure 2, a kind of continuous integration system based on container platform of the invention, including:
Push unit, for pushing code to Gitlab;
Code is submitted to flow engine by trigger element, the Webhook for triggering Gitlab;
Execution unit is performed code in distributed type assemblies by K8S systems for flow engine parallel.
With reference to figure 3, in the embodiment of the present invention, the flow engine is by the way that external trigger (Git pulls request) is converted to Event, event are received and are handled by Gateway, and carrying information according to event type and event generates Event.Event is The event of generation calls the button.onrelease of script.Build:The process of perform script, during perform script, the related execution Data are conceptually referred to as building.Structure must handle at least one event, and may handle multiple events.Job:It is one Construction unit is made of one or more construction steps for being known as " task ", and each " task " is to perform the docker being configured Mirror image.
Preferred embodiment is further used as, the execution unit specifically includes:
Storage unit stores code for flow engine;
Mirror image selecting unit for each task in code, selects corresponding docker mirror images from Component Gallery;
Parallel execution unit, in K8S systems, using gorouting by each task in corresponding docker mirrors It is performed parallel as in.
Preferred embodiment is further used as, the docker mirror images are according to the mirror image made as required.
A kind of continuous integrating device based on container platform of the present invention, including:
Memory, for storing program;
Processor, for performing described program, it is described based on container platform that described program so that the processor performs Continuous integrating method.
Flow engine in a kind of continuous integrating method, system and device based on container platform of the present invention utilizes go language Each task is performed to go, POD examples in distributed type assemblies are performed by K8S, each task need to only be made on demand The docker mirror images of environment are not depended on to complete the operation specified.By the mirror image Component Gallery of constantly improve, user is on front end circle Face, which need to only do simple selection, must complete the flow of continuous integrating, greatly reduce complexity.By the way that task is programmed into It is performed in distributed type assemblies, substantially increases execution efficiency and speed.
It is that the preferable of the present invention is implemented to be illustrated, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations under the premise of without prejudice to spirit of the invention or replace It changes, these equivalent deformations or replacement are all contained in the application claim limited range.

Claims (7)

  1. A kind of 1. continuous integrating method based on container platform, which is characterized in that include the following steps:
    Code is pushed to Gitlab;
    Code is submitted to flow engine by the Webhook of triggering Gitlab;
    Flow engine is performed code in distributed type assemblies by K8S systems parallel.
  2. 2. a kind of continuous integrating method based on container platform according to claim 1, it is characterised in that:The flow Engine is performed code in distributed type assemblies by K8S systems parallel, the step for specifically include:
    Flow engine stores code;
    Each task in code selects corresponding docker mirror images from Component Gallery;
    In K8S systems, each task is performed in corresponding docker mirror images parallel using gorouting.
  3. 3. a kind of continuous integrating method based on container platform according to claim 2, it is characterised in that:The docker Mirror image is according to the mirror image made as required.
  4. 4. a kind of continuous integration system based on container platform, which is characterized in that including:
    Push unit, for pushing code to Gitlab;
    Code is submitted to flow engine by trigger element, the Webhook for triggering Gitlab;
    Execution unit is performed code in distributed type assemblies by K8S systems for flow engine parallel.
  5. 5. a kind of continuous integration system based on container platform according to claim 4, it is characterised in that:It is described to perform list Member specifically includes:
    Storage unit stores code for flow engine;
    Mirror image selecting unit for each task in code, selects corresponding docker mirror images from Component Gallery;
    Parallel execution unit, in K8S systems, using gorouting by each task in corresponding docker mirror images It is parallel to perform.
  6. 6. a kind of continuous integration system based on container platform according to claim 5, it is characterised in that:The docker Mirror image is according to the mirror image made as required.
  7. 7. a kind of continuous integrating device based on container platform, which is characterized in that including:
    Memory, for storing program;
    Processor, for performing described program, described program causes the processor to perform such as any one of claims 1 to 3 institute The continuous integrating method based on container platform stated.
CN201810060842.4A 2018-01-22 2018-01-22 A kind of continuous integrating method, system and device based on container platform Pending CN108268308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810060842.4A CN108268308A (en) 2018-01-22 2018-01-22 A kind of continuous integrating method, system and device based on container platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810060842.4A CN108268308A (en) 2018-01-22 2018-01-22 A kind of continuous integrating method, system and device based on container platform

Publications (1)

Publication Number Publication Date
CN108268308A true CN108268308A (en) 2018-07-10

Family

ID=62776381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810060842.4A Pending CN108268308A (en) 2018-01-22 2018-01-22 A kind of continuous integrating method, system and device based on container platform

Country Status (1)

Country Link
CN (1) CN108268308A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427192A (en) * 2019-08-01 2019-11-08 上海麦克风文化传媒有限公司 A kind of IT system continuous integrating and lasting dissemination method
CN111338784A (en) * 2020-05-25 2020-06-26 南栖仙策(南京)科技有限公司 Method and system for realizing integration of code warehouse and computing service
CN111459509A (en) * 2020-03-27 2020-07-28 北京金山云网络技术有限公司 Container mirror image construction method and device and server
CN111538525A (en) * 2020-03-20 2020-08-14 成都药王科技股份有限公司 Quick iteration and rollback method for program release
WO2021232845A1 (en) * 2020-05-22 2021-11-25 国云科技股份有限公司 Container-based image updating and distribution method, and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN105653449A (en) * 2015-12-28 2016-06-08 湖南蚁坊软件有限公司 Continuous integration method based on container virtualization
CN105760167A (en) * 2016-02-23 2016-07-13 浪潮软件集团有限公司 Docker-based continuous integration method
US20170046146A1 (en) * 2015-08-11 2017-02-16 International Business Machines Corporation Autonomously healing microservice-based applications
CN106790660A (en) * 2017-01-18 2017-05-31 咪咕视讯科技有限公司 A kind of dispositions method and device for realizing distributed memory system
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170046146A1 (en) * 2015-08-11 2017-02-16 International Business Machines Corporation Autonomously healing microservice-based applications
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN105653449A (en) * 2015-12-28 2016-06-08 湖南蚁坊软件有限公司 Continuous integration method based on container virtualization
CN105760167A (en) * 2016-02-23 2016-07-13 浪潮软件集团有限公司 Docker-based continuous integration method
CN106790660A (en) * 2017-01-18 2017-05-31 咪咕视讯科技有限公司 A kind of dispositions method and device for realizing distributed memory system
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427192A (en) * 2019-08-01 2019-11-08 上海麦克风文化传媒有限公司 A kind of IT system continuous integrating and lasting dissemination method
CN111538525A (en) * 2020-03-20 2020-08-14 成都药王科技股份有限公司 Quick iteration and rollback method for program release
CN111538525B (en) * 2020-03-20 2022-09-02 成都药王科技股份有限公司 Rapid iteration and rollback method for program release
CN111459509A (en) * 2020-03-27 2020-07-28 北京金山云网络技术有限公司 Container mirror image construction method and device and server
WO2021232845A1 (en) * 2020-05-22 2021-11-25 国云科技股份有限公司 Container-based image updating and distribution method, and apparatus
CN111338784A (en) * 2020-05-25 2020-06-26 南栖仙策(南京)科技有限公司 Method and system for realizing integration of code warehouse and computing service
WO2021237829A1 (en) * 2020-05-25 2021-12-02 南栖仙策(南京)科技有限公司 Method and system for integrating code repository with computing service

Similar Documents

Publication Publication Date Title
CN108268308A (en) A kind of continuous integrating method, system and device based on container platform
CN107026871B (en) Web vulnerability scanning method based on cloud computing
CN113050598B (en) Data acquisition method, equipment and storage medium
CN109634730A (en) Method for scheduling task, device, computer equipment and storage medium
CN113138927B (en) Software function test method and device
CN110955715A (en) ERP system, data conversion method and device of target platform and electronic equipment
US10430802B2 (en) Screen-image based classification
CN109361628A (en) Message assemble method, device, computer equipment and storage medium
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
Boring Human reliability analysis for digital human-machine interfaces: a wish list for future research
CN113268229B (en) Code generation method and code generation device
CN113377669A (en) Automatic testing method and device, computer equipment and storage medium
KR101689984B1 (en) Programmable controller, programmable controller system, and execute error information creation method
CN108427599A (en) Method, apparatus and storage medium is uniformly processed in asynchronous task
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN111309221B (en) Page processing method, device and equipment
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN103530091A (en) Method and device for implementing task of calculating CPMD (car-Parrinello molecular dynamics simulations)
CN111427770B (en) Resource testing method and related equipment
CN114285114A (en) Charging control method and device, electronic equipment and storage medium
CN112183982A (en) Workflow creating method and device, computer equipment and storage medium
CN112818204A (en) Service processing method, device, equipment and storage medium
CN110674214A (en) Big data synchronization method and device, computer equipment and storage medium
CN113537954B (en) Project milestone processing method and device, storage medium and electronic equipment
CN114012723B (en) Robot process automation fault processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180710

RJ01 Rejection of invention patent application after publication