CN105653449A - Continuous integration method based on container virtualization - Google Patents
Continuous integration method based on container virtualization Download PDFInfo
- Publication number
- CN105653449A CN105653449A CN201510995393.9A CN201510995393A CN105653449A CN 105653449 A CN105653449 A CN 105653449A CN 201510995393 A CN201510995393 A CN 201510995393A CN 105653449 A CN105653449 A CN 105653449A
- Authority
- CN
- China
- Prior art keywords
- code
- mirror image
- container
- container virtualization
- continuous integration
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45516—Runtime code conversion or optimisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of software development, in particular to a continuous integration method based on container virtualization. The continuous integration method comprises the following steps: S101: submitting a code; S102: code update: updating the submitted code; S103: compiling and packaging items; and S104: carrying out container virtualization, and operating a mirror image through a virtualized container. After the method is adopted, a container virtualization technology is selected, difference in a practical environment is shielded through docker, and an application operation environment is uniformly specified through a dockerfile. Compared with a virtual machine, the docker is low in cost and simple in operation and can adapt to frequent deployment in the test environment. In addition, on the basis of a container virtualization technology, the continuous integration method can carry out interference-free deployment in a single machine environment, can conveniently carry out lateral expansion, can automatically carry out continuous integration after the code is automatically submitted on the basis of a git trigger mechanism, and reduces an artificial workload.
Description
Technical field
The present invention relates to technical field of software development, particularly a kind of continuous integrating method based on container virtualization.
Background technology
In project development process, frequently can dispose to test and uniting and adjustment to existing code, in existing scheme, because machine environment is inconsistent, can cause deployment needs a large amount of artificial customizations, have impact on development progress, meanwhile, different test phases, it is necessary to test environment difference to some extent, too increasing deployment workload, there is cost and waste problem in original virtual machine technology. Existing continuous integrating scheme, usually the mode of actual physics machine or virtual machine is used, the impact being limited to machine environment, needs customization to dispose path and related dependant assembly in deployment, and is likely subject to the impact of other systems and causes integrated failure.
Chinese invention patent CN103699385A discloses a kind of method of code continuous integrating, and first formulating test environment needs the server disposed and dispose its environment, it is determined that its IP address; Then, the code that test is being beaten baseline; The code that detection to be tested also compiles, and obtains object code, and object code is inserted stake; Then, implementation of test cases in test environment, generates the execution result of test case, the Test coverage rate report of automatic code generating; Then, perform result according to test case, repair code defect; Test case is readjusted according to the report of Test coverage rate; Integrated flow process before repetition, until test case all by and Test coverage rate is 100% position.
Summary of the invention
The technical issues that need to address of the present invention are the problems extending transversely in continuous integrating process.
For solving above-mentioned technical problem, a kind of continuous integrating method based on container virtualization of the present invention, comprises the following steps,
Step S101: submit code to;
Step S102: code update, upgrades the code of submission;
Step S103: compiling packed items;
Step S104: container virtualization, carries out the operation of mirror image by the container of virtualization.
Further, described step S102 code update also comprises the following steps,
Step S21: update notification, after submitting to code to complete, git notifies jenkins;
Step S22: upgrade code, after jenkins receives the update notifying of git, upgrades code, automatically according to the script of predefine, performs related deployment instruction.
Further, described step S104 container virtualization also comprises the following steps,
Step S41: mirror image builds, builds docker mirror image;
Step S42: mirror image is uploaded, uploads and is mirrored to mirror image storehouse;
Step S43: image download, downloads mirror image at deployment server;
Step S44: run mirror image.
After adopting aforesaid method, the present invention have selected container virtualization technology, shields the difference in actual environment by docker, unifying Regular application running environment by dockerfile, docker is for virtual machine, and cost is low, run simple, the frequent deployment in energy adaptive testing environment. In addition, the present invention is based on container virtualization technology, it is possible in single machine environment, glitch-free deployment, and can more conveniently carry out extending transversely, simultaneously based on the trigger mechanism of git, continuous integrating can be carried out after code is submitted to automatically, reduce labor workload.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments to being originally described in further detail.
Fig. 1 is the schema of the method for a kind of continuous integrating based on container virtualization of the present invention.
Embodiment
As shown in Figure 1, the method for a kind of continuous integrating based on container virtualization of the present invention, comprises the following steps,
Step S101: submit code to;
Step S102: code update, upgrades the code of submission. Specifically also comprise the following steps,
Step S21: update notification, after submitting to code to complete, git notifies jenkins;
Step S22: upgrade code, after jenkins receives the update notifying of git, upgrades code, automatically according to the script of predefine, performs related deployment instruction.
Step S103: compiling packed items;
Step S104: container virtualization, carries out the operation of mirror image by the container of virtualization. Specifically also comprise the following steps,
Step S41: mirror image builds, builds docker mirror image;
Step S42: mirror image is uploaded, uploads and is mirrored to mirror image storehouse;
Step S43: image download, downloads mirror image at deployment server;
Step S44: run mirror image.
Like this, shielding the difference in actual environment by docker, unify Regular application running environment by dockerfile, docker is for virtual machine, and cost is low, runs simple, the frequent deployment in energy adaptive testing environment. Existing direct operation is replaced by integrated program by running mirror image, thus realize consistence and the versatility of program, greatly reduce the cost in continuous integrating on the one hand, shield the interference between different system on the other hand, for the deployed environment that the continuous integrating offer of triangular web is clean, perfect, reduce difficulty and the complexity of continuous integrating.
Although the foregoing describing the specific embodiment of the present invention; but those skilled in the art are to be understood that; these are only illustrate; present embodiment can be made various changes or modifications; and not deviating from principle and the essence of invention, protection scope of the present invention is only defined by the appended claims.
Claims (3)
1. the continuous integrating method based on container virtualization, it is characterised in that, comprise the following steps,
Step S101: submit code to;
Step S102: code update, upgrades the code of submission;
Step S103: compiling packed items;
Step S104: container virtualization, carries out the operation of mirror image by the container of virtualization.
2. according to a kind of continuous integrating method based on container virtualization according to claim 1, it is characterised in that, described step S102 code update also comprises the following steps,
Step S21: update notification, after submitting to code to complete, git notifies jenkins;
Step S22: upgrade code, after jenkins receives the update notifying of git, upgrades code, automatically according to the script of predefine, performs related deployment instruction.
3. according to a kind of continuous integrating method based on container virtualization according to claim 1, it is characterised in that, described step S104 container virtualization also comprises the following steps,
Step S41: mirror image builds, builds docker mirror image;
Step S42: mirror image is uploaded, uploads and is mirrored to mirror image storehouse;
Step S43: image download, downloads mirror image at deployment server;
Step S44: run mirror image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510995393.9A CN105653449A (en) | 2015-12-28 | 2015-12-28 | Continuous integration method based on container virtualization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510995393.9A CN105653449A (en) | 2015-12-28 | 2015-12-28 | Continuous integration method based on container virtualization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105653449A true CN105653449A (en) | 2016-06-08 |
Family
ID=56477904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510995393.9A Pending CN105653449A (en) | 2015-12-28 | 2015-12-28 | Continuous integration method based on container virtualization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653449A (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227579A (en) * | 2016-07-12 | 2016-12-14 | 深圳市中润四方信息技术有限公司 | A kind of Docker container construction method and Docker manage control station |
CN106502905A (en) * | 2016-10-26 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, apparatus and system |
CN106874028A (en) * | 2016-12-26 | 2017-06-20 | 新华三技术有限公司 | Using dispositions method and device |
CN106933635A (en) * | 2017-03-15 | 2017-07-07 | 北京搜狐新媒体信息技术有限公司 | Docker mirror images generation method and Docker containers |
CN107391213A (en) * | 2017-08-29 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system |
CN107729034A (en) * | 2017-10-24 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of software continuous integrated approach and its device |
CN107797927A (en) * | 2017-10-18 | 2018-03-13 | 中国平安人寿保险股份有限公司 | Using automated testing method, device, equipment and readable storage medium storing program for executing |
CN107977218A (en) * | 2017-11-23 | 2018-05-01 | 武汉斗鱼网络科技有限公司 | Code update method, device, electronic equipment and readable storage medium storing program for executing |
CN108196843A (en) * | 2018-01-09 | 2018-06-22 | 成都睿码科技有限责任公司 | Visualization Docker containers compile the O&M method of deployment automatically |
CN108268308A (en) * | 2018-01-22 | 2018-07-10 | 广州欧赛斯信息科技有限公司 | A kind of continuous integrating method, system and device based on container platform |
CN108415828A (en) * | 2018-01-23 | 2018-08-17 | 广州视源电子科技股份有限公司 | Program testing method and device, readable storage medium and computer equipment |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
CN108491210A (en) * | 2018-03-27 | 2018-09-04 | 无锡华云数据技术服务有限公司 | Code continuous integrating method, apparatus, system and server |
CN108509346A (en) * | 2018-04-13 | 2018-09-07 | 郑州云海信息技术有限公司 | A kind of dual system BIOS continuous integratings platform and method |
CN108519952A (en) * | 2018-04-13 | 2018-09-11 | 南京新贝金服科技有限公司 | A kind of distributed WEB automatization test systems and method |
CN108733553A (en) * | 2017-04-18 | 2018-11-02 | 北京嘀嘀无限科技发展有限公司 | Configuration method, the device and system of test device based on docker |
CN109144880A (en) * | 2018-09-06 | 2019-01-04 | 北京京东尚科信息技术有限公司 | The management method and system of image file, equipment, storage medium |
CN109710524A (en) * | 2018-12-19 | 2019-05-03 | 上海华兴数字科技有限公司 | A kind of automatic test approach, system and computer storage medium |
CN109783348A (en) * | 2018-12-06 | 2019-05-21 | 中国电力科学研究院有限公司 | Testing tool method for managing resource based on cloud platform, system |
CN112069066A (en) * | 2020-09-01 | 2020-12-11 | 招商银行股份有限公司 | Code coverage rate statistical method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461743A (en) * | 2014-12-17 | 2015-03-25 | 用友软件股份有限公司 | Device and method for automatically generating resources and configuration |
CN104539476A (en) * | 2014-12-10 | 2015-04-22 | 小米科技有限责任公司 | Data package obtaining method and device |
CN104899047A (en) * | 2015-06-25 | 2015-09-09 | 广州杰赛科技股份有限公司 | Webpage frame deployment method and system |
CN105187500A (en) * | 2015-08-07 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Container-based distributed storage system deployment method |
-
2015
- 2015-12-28 CN CN201510995393.9A patent/CN105653449A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539476A (en) * | 2014-12-10 | 2015-04-22 | 小米科技有限责任公司 | Data package obtaining method and device |
CN104461743A (en) * | 2014-12-17 | 2015-03-25 | 用友软件股份有限公司 | Device and method for automatically generating resources and configuration |
CN104899047A (en) * | 2015-06-25 | 2015-09-09 | 广州杰赛科技股份有限公司 | Webpage frame deployment method and system |
CN105187500A (en) * | 2015-08-07 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Container-based distributed storage system deployment method |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227579A (en) * | 2016-07-12 | 2016-12-14 | 深圳市中润四方信息技术有限公司 | A kind of Docker container construction method and Docker manage control station |
CN106502905A (en) * | 2016-10-26 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, apparatus and system |
CN106874028A (en) * | 2016-12-26 | 2017-06-20 | 新华三技术有限公司 | Using dispositions method and device |
CN106933635A (en) * | 2017-03-15 | 2017-07-07 | 北京搜狐新媒体信息技术有限公司 | Docker mirror images generation method and Docker containers |
CN108733553A (en) * | 2017-04-18 | 2018-11-02 | 北京嘀嘀无限科技发展有限公司 | Configuration method, the device and system of test device based on docker |
CN108733553B (en) * | 2017-04-18 | 2022-03-08 | 北京嘀嘀无限科技发展有限公司 | Docker-based test device configuration method, device and system |
CN107391213A (en) * | 2017-08-29 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system |
CN107797927A (en) * | 2017-10-18 | 2018-03-13 | 中国平安人寿保险股份有限公司 | Using automated testing method, device, equipment and readable storage medium storing program for executing |
CN107797927B (en) * | 2017-10-18 | 2021-01-08 | 中国平安人寿保险股份有限公司 | Application automation test method, device, equipment and readable storage medium |
CN107729034A (en) * | 2017-10-24 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of software continuous integrated approach and its device |
CN107977218A (en) * | 2017-11-23 | 2018-05-01 | 武汉斗鱼网络科技有限公司 | Code update method, device, electronic equipment and readable storage medium storing program for executing |
CN108196843A (en) * | 2018-01-09 | 2018-06-22 | 成都睿码科技有限责任公司 | Visualization Docker containers compile the O&M method of deployment automatically |
CN108196843B (en) * | 2018-01-09 | 2021-03-26 | 成都睿码科技有限责任公司 | Operation and maintenance method for automatic compilation and deployment of visual Docker container |
CN108268308A (en) * | 2018-01-22 | 2018-07-10 | 广州欧赛斯信息科技有限公司 | A kind of continuous integrating method, system and device based on container platform |
CN108415828A (en) * | 2018-01-23 | 2018-08-17 | 广州视源电子科技股份有限公司 | Program testing method and device, readable storage medium and computer equipment |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
CN108415795B (en) * | 2018-02-12 | 2019-04-05 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
CN108491210A (en) * | 2018-03-27 | 2018-09-04 | 无锡华云数据技术服务有限公司 | Code continuous integrating method, apparatus, system and server |
CN108519952B (en) * | 2018-04-13 | 2019-05-17 | 南京新贝金服科技有限公司 | A kind of distributed WEB automatization test system and method |
CN108519952A (en) * | 2018-04-13 | 2018-09-11 | 南京新贝金服科技有限公司 | A kind of distributed WEB automatization test systems and method |
CN108509346B (en) * | 2018-04-13 | 2021-10-22 | 郑州云海信息技术有限公司 | Dual-system BIOS continuous integration platform and method |
CN108509346A (en) * | 2018-04-13 | 2018-09-07 | 郑州云海信息技术有限公司 | A kind of dual system BIOS continuous integratings platform and method |
CN109144880A (en) * | 2018-09-06 | 2019-01-04 | 北京京东尚科信息技术有限公司 | The management method and system of image file, equipment, storage medium |
CN109783348A (en) * | 2018-12-06 | 2019-05-21 | 中国电力科学研究院有限公司 | Testing tool method for managing resource based on cloud platform, system |
CN109710524A (en) * | 2018-12-19 | 2019-05-03 | 上海华兴数字科技有限公司 | A kind of automatic test approach, system and computer storage medium |
CN112069066A (en) * | 2020-09-01 | 2020-12-11 | 招商银行股份有限公司 | Code coverage rate statistical method, device, equipment and computer readable storage medium |
CN112069066B (en) * | 2020-09-01 | 2024-05-07 | 招商银行股份有限公司 | Code coverage rate statistical method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105653449A (en) | Continuous integration method based on container virtualization | |
US10114637B1 (en) | Automatically updating a shared project build platform | |
US8745585B2 (en) | Meta-data for single development test environment | |
US9760365B2 (en) | Systems, methods, and computer program products for a software build and load process using a compilation and deployment service | |
CN106933609B (en) | Android application program installation package generation method and device | |
CN105446712B (en) | Application program defect repairing method and device | |
CN103309683B (en) | The software patch embedding grammar of hardware device and device | |
US20130174124A1 (en) | Version numbering in single development and test environment | |
CN103473067A (en) | Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method | |
WO2015117434A1 (en) | Method and device for manufacturing patch, and method and device for activating patch | |
EP3151071B1 (en) | System for updating a control program while actively controlling an industrial process | |
CN103577311A (en) | Method and device for screening test cases | |
CN105653261A (en) | Development integration test method and system on the basis of cloud computing environment | |
EP2503449A2 (en) | Single development test environment | |
WO2015105486A1 (en) | Dynamically applying a software patch to a computer program | |
CN105511920A (en) | Container based mobile terminal operating system upgrading method and device | |
EP3447635A1 (en) | Application architecture generation | |
CN111078265A (en) | Jenkins-based web project update patch generation method | |
CN102156649B (en) | Patch installation method and device thereof | |
CN113064630A (en) | Mobile terminal APP automatic packaging method and system, electronic device and storage medium | |
CN105183580A (en) | Storage method and fault recovery method for bootstrap program, and devices | |
EP3891613B1 (en) | Software checkpoint-restoration between distinctly compiled executables | |
CN104461645B (en) | Firmware upgrade method and device for upgrading firmware based on kexec | |
EP2503450A2 (en) | Version numbering in single development and test environment | |
US8561027B2 (en) | Reflection capability in static programming languages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160608 |
|
RJ01 | Rejection of invention patent application after publication |