CN108196843B - Operation and maintenance method for automatic compilation and deployment of visual Docker container - Google Patents
Operation and maintenance method for automatic compilation and deployment of visual Docker container Download PDFInfo
- Publication number
- CN108196843B CN108196843B CN201810018736.XA CN201810018736A CN108196843B CN 108196843 B CN108196843 B CN 108196843B CN 201810018736 A CN201810018736 A CN 201810018736A CN 108196843 B CN108196843 B CN 108196843B
- Authority
- CN
- China
- Prior art keywords
- container
- docker
- rancher
- api
- mirror image
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an operation and maintenance method for automatic compiling and deploying of a visual Docker container, which comprises the following steps of triggering a page trigger key on a visual interface to start to create a container mirror image: the method comprises the steps of automatically downloading codes from a code base, automatically compiling the codes into executable programs, constructing the programs into Docker container mirror image files, uploading the Docker container mirror image files to a container warehouse, cutting the container warehouse to obtain code version labels through an API (application program interface), downloading container mirror images corresponding to the labels in the container warehouse to a server host in a production environment for automatic deployment and operation, solving the technical problems of manual deployment, inconvenience in operation, difficulty in deployment, high cost and the like in the existing operation and maintenance method, achieving one-key code release to the production environment, and being simple in operation and high in efficiency.
Description
Technical Field
The invention relates to the field of software product development, in particular to an operation and maintenance method for automatic compiling and deploying of a visual Docker container.
Background
In the field of internet technology, with the rapid development of IT technology, the related services are more and more complex, the user requirements are more and more diversified, and the requirements on the aspects of technology, services, management and the like cannot be met by conventional operation and maintenance. The conventional operation and maintenance method needs a large amount of manual customization in the deployment process due to the inconsistency of machine environments, so that the development progress of products is influenced, meanwhile, different production environments have differences, and the deployment workload is increased.
Disclosure of Invention
In order to solve the technical problems of high cost, difficulty in deployment and the like caused by manual intervention and difference of production environments in the existing operation and maintenance method, the invention provides an operation and maintenance method for automatic compilation and deployment of a visual Docker container.
The operation and maintenance method for automatic compilation and deployment of the visual Docker container comprises the following steps,
step S101: clicking a page trigger key of the visual interface;
step S102: acquiring a code, and automatically compiling and packaging the acquired code;
step S103: generating a Docker container mirror image and pushing the Docker container mirror image to a container warehouse;
step S104: and downloading the container mirror image of the corresponding label in the container warehouse to a server host in each production environment through a Rancher management platform for automatic deployment and operation.
Further, step S102 specifically includes the following steps, step S21: acquiring an update code from a code base; step S22: and calling Jenkins Api to obtain task project names, and then automatically compiling codes and packaging.
Further, step S103 specifically includes the following steps, step S31: calling a Docker Api ImageBuild to create a container mirror image; step S32: and calling Docker Api ImagePush to push the created container mirror to a private warehouse of Docker.
Further, step S103 further includes the container warehouse obtaining the code version label through the Api interface, and transmitting the code version label to the Rancher container management platform.
Further, step S104 specifically includes the following steps, step S41: filling ImageUuid in the Rancher configuration information of the Service to be upgraded into a new Docker mirror image by calling the Api of the Rancher, and submitting the new Docker mirror image to a Rancher Api Updrade interface to trigger the updating operation of the Rancher; step S42: generating a Docker-composition. yml template file of the container environment parameters in the composition format and a Rancher-composition. yml template file of the cluster service; step S43: importing yml template by calling Rancher Api interface Environment Updide; step S44: and the Rancher server triggers the Rancher host agent end to pull down the Docker image and the Docker-composition.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the operation and maintenance method is executed by utilizing a visual interface, and is simple, convenient, rapid, visual and strong in operability;
2. the invention can realize automatic downloading and compiling of codes and can download the codes to a server host in a production environment for automatic deployment and operation;
3. the invention integrates task scheduling, container management and code deployment into an organic whole, releases codes to a production environment in a one-key mode, and has simple operation and high efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a flowchart of an operation and maintenance method for automatic compilation and deployment of a visual Docker container according to the present invention.
FIG. 2 is a visual interface diagram of the operation and maintenance method for visualization Docker container automatic compilation and deployment according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Examples
As shown in fig. 1 and fig. 2, according to the operation and maintenance method for automatic compiling and deployment of a visual Docker container provided by the invention, by clicking a page trigger button of a visual interface, a result page display is run, a visual interface background automatically creates and deploys a container mirror image, and pushes the container to a server host in each production environment for automatic deployment and operation, so that one-click code release into the production environment is realized, and the operation is simple and efficient.
Step S101: clicking a page trigger key of the visual interface;
step S102: acquiring a code, and automatically compiling and packaging the acquired code;
the step specifically includes the following steps, step S21: acquiring an update code from a code base; step S22: and calling Jenkins Api to obtain task project names, and then automatically compiling codes and packaging.
Step S103: generating a Docker container mirror image and pushing the Docker container mirror image to a container warehouse;
the step specifically includes the following steps, step S31: calling a Docker Api ImageBuild to create a container mirror image; step S32: and calling Docker Api ImagePush to push the created container mirror to a private warehouse of Docker.
The step also comprises that the container warehouse acquires the code version label through the Api interface and transmits the code version label to the Rancher container management platform.
Step S104: and downloading the container mirror image of the corresponding label in the container warehouse to a server host in each production environment through a Rancher management platform for automatic deployment and operation.
The step specifically includes the following steps, step S41: filling ImageUuid in the Rancher configuration information of the Service to be upgraded into a new Docker mirror image by calling the Api of the Rancher, and submitting the new Docker mirror image to a Rancher Api Updrade interface to trigger the updating operation of the Rancher; step S42: generating a Docker-composition. yml template file of the container environment parameters in the composition format and a Rancher-composition. yml template file of the cluster service; step S43: importing yml template by calling Rancher Api interface Environment Updide; step S44: and the Rancher server triggers the Rancher host agent end to pull down the Docker image and the Docker-composition.
According to the method, code compiling is simply and quickly carried out through operation keys (restarting, upgrading and refreshing) of the page, the container is generated and deployed, and meanwhile, the running state and version information are displayed through the page friendly in running result.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (4)
1. The operation and maintenance method for automatic compilation and deployment of the visual Docker container is characterized by comprising the following steps,
step S101: clicking a page trigger key of the visual interface;
step S102: acquiring a code, and automatically compiling and packaging the acquired code;
step S103: generating a Docker container mirror image and pushing the Docker container mirror image to a container warehouse;
step S104: downloading container images of corresponding labels in a container warehouse to server hosts in each production environment through a Rancher management platform for automatic deployment and operation;
step S104 specifically includes the following steps, step S41: filling ImageUuid in the Rancher configuration information of the Service to be upgraded into a new Docker mirror image by calling the Api of the Rancher, and submitting the new Docker mirror image to a Rancher Api Updrade interface to trigger the updating operation of the Rancher; step S42: generating a Docker-composition. yml template file of the container environment parameters in the composition format and a Rancher-composition. yml template file of the cluster service; step S43: importing yml template by calling Rancher Api interface Environment Updide; step S44: and the Rancher server triggers the Rancher host agent end to pull down the Docker image and the Docker-composition.
2. The operation and maintenance method according to claim 1, wherein the step S102 specifically includes the following steps, step S21: acquiring an update code from a code base; step S22: and calling Jenkins Api to obtain task project names, and then automatically compiling codes and packaging.
3. The operation and maintenance method according to claim 1, wherein the step S103 specifically comprises the following steps, step S31: calling a Docker Api ImageBuild to create a container mirror image; step S32: and calling Docker Api ImagePush to push the created container mirror to a private warehouse of Docker.
4. The operation and maintenance method according to claim 1, wherein step S103 further comprises the container warehouse obtaining the code version label through the Api interface and transmitting the code version label to the Rancher container management platform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810018736.XA CN108196843B (en) | 2018-01-09 | 2018-01-09 | Operation and maintenance method for automatic compilation and deployment of visual Docker container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810018736.XA CN108196843B (en) | 2018-01-09 | 2018-01-09 | Operation and maintenance method for automatic compilation and deployment of visual Docker container |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108196843A CN108196843A (en) | 2018-06-22 |
CN108196843B true CN108196843B (en) | 2021-03-26 |
Family
ID=62588798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810018736.XA Active CN108196843B (en) | 2018-01-09 | 2018-01-09 | Operation and maintenance method for automatic compilation and deployment of visual Docker container |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108196843B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984179B (en) * | 2018-06-28 | 2022-08-02 | 奇安信科技集团股份有限公司 | Linux compiling processing method and device |
CN109254830A (en) * | 2018-09-04 | 2019-01-22 | 郑州云海信息技术有限公司 | Visual management method and device in deep learning system |
CN109408064A (en) * | 2018-09-10 | 2019-03-01 | 杭州安恒信息技术股份有限公司 | A kind of visual micro services system automation dispositions method of layout and system |
CN109358858B (en) * | 2018-09-19 | 2022-03-22 | 网易(杭州)网络有限公司 | Automatic deployment method, device, medium and electronic equipment |
CN109582315A (en) * | 2018-10-26 | 2019-04-05 | 北京百度网讯科技有限公司 | Service privatization method, apparatus, computer equipment and storage medium |
CN109683887B (en) * | 2018-12-17 | 2022-04-26 | 杭州玳数科技有限公司 | Construction method and device supporting multi-scheme user-defined web project |
CN109684420B (en) * | 2018-12-21 | 2021-11-02 | 郑州云海信息技术有限公司 | Method and device for deploying hardor mirror image warehouse with high availability based on kubernets |
CN109743199A (en) * | 2018-12-25 | 2019-05-10 | 中国联合网络通信集团有限公司 | Containerization management system based on micro services |
CN111427949B (en) * | 2019-01-09 | 2023-10-20 | 杭州海康威视数字技术股份有限公司 | Method and device for creating big data service |
CN109857462B (en) * | 2019-01-25 | 2021-07-09 | 东莞理工学院 | Background Docker task mapping method of remote sensing image visual editor |
CN110007948A (en) * | 2019-02-22 | 2019-07-12 | 贵州力创科技发展有限公司 | A kind of O&M method, apparatus and storage medium |
CN109840111B (en) * | 2019-02-26 | 2022-03-22 | 广州衡昊数据科技有限公司 | Graphical service processing system and method |
CN109933315A (en) * | 2019-02-26 | 2019-06-25 | 广州衡昊数据科技有限公司 | A kind of patterned transaction processing system and method |
CN110134399B (en) * | 2019-03-15 | 2024-01-09 | 北京车和家信息技术有限公司 | Compiling method and device |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110704082A (en) * | 2019-09-25 | 2020-01-17 | 许昌许继软件技术有限公司 | Continuous integration method and system for monitoring platform |
CN111273926A (en) * | 2020-01-14 | 2020-06-12 | 一飞智控(天津)科技有限公司 | Airport client remote upgrade management method, system, storage medium and unmanned aerial vehicle |
CN111352653B (en) * | 2020-03-06 | 2023-07-14 | 中国工商银行股份有限公司 | System development method based on PaaS cloud platform server and server |
CN112328301B (en) * | 2020-10-28 | 2022-04-12 | 北京百度网讯科技有限公司 | Method and device for maintaining consistency of operating environments, storage medium and electronic equipment |
CN112764753B (en) * | 2020-12-31 | 2024-04-12 | 北京知因智慧科技有限公司 | Project deployment method and device, electronic equipment and storage medium |
CN113238831A (en) * | 2021-04-30 | 2021-08-10 | 中核武汉核电运行技术股份有限公司 | Nuclear power production service loading method and device based on container technology |
CN115495148B (en) * | 2022-11-17 | 2023-09-22 | 深圳代码兄弟技术有限公司 | Unified construction management method and system for deployment package based on low-code program |
CN116431277A (en) * | 2023-03-13 | 2023-07-14 | 浙江海规技术有限公司 | Multi-place operation and maintenance containerization method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187500A (en) * | 2015-08-07 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Container-based distributed storage system deployment method |
CN105653449A (en) * | 2015-12-28 | 2016-06-08 | 湖南蚁坊软件有限公司 | Continuous integration method based on container virtualization |
EP3109758A1 (en) * | 2015-06-25 | 2016-12-28 | Alcatel Lucent | Method and apparatus for scaling an application |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104793946B (en) * | 2015-04-27 | 2018-07-06 | 广州杰赛科技股份有限公司 | Dispositions method and system are applied based on cloud computing platform |
CN105847045B (en) * | 2016-01-04 | 2019-06-18 | 中国电子科技网络信息安全有限公司 | It is a kind of that package system and management method are applied based on Docker container |
CN107329800B (en) * | 2017-06-29 | 2019-11-05 | 北京北信源软件股份有限公司 | A kind of middleware application management-control method and device based on Docker platform |
-
2018
- 2018-01-09 CN CN201810018736.XA patent/CN108196843B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3109758A1 (en) * | 2015-06-25 | 2016-12-28 | Alcatel Lucent | Method and apparatus for scaling an application |
CN105187500A (en) * | 2015-08-07 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Container-based distributed storage system deployment method |
CN105653449A (en) * | 2015-12-28 | 2016-06-08 | 湖南蚁坊软件有限公司 | Continuous integration method based on container virtualization |
Also Published As
Publication number | Publication date |
---|---|
CN108196843A (en) | 2018-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108196843B (en) | Operation and maintenance method for automatic compilation and deployment of visual Docker container | |
CN102129378B (en) | A kind of software menu updating method and device | |
CN102523268B (en) | Client side upgrading method and system | |
KR100775554B1 (en) | Method and system for providing dynamic wall paper service based contents | |
CN103064663B (en) | The generation of browser plug-in, issue, loading and update method and system | |
US20150220245A1 (en) | Branded computer devices and apparatus to connect user and enterprise | |
WO2013189341A2 (en) | Method for dynamically modifying application startup icon, message sending method and terminal | |
CN101283572A (en) | Application program update deployment to a mobile device | |
CN102667751A (en) | Apparatus and method for implementing web-based user interface on mobile terminal | |
CN103873934A (en) | Method and system for real-time prompting of video tracking | |
CN102750176A (en) | Software upgrading method and device for network TV | |
CN106775817A (en) | Intelligent terminal is spread its tail control method, system and the intelligent terminal of advertisement | |
CN105808278A (en) | Client version upgrading method and device | |
CN116301951B (en) | Micro-service application installation upgrading method and device based on kubernetes | |
CN108073511B (en) | Test code generation method and device | |
CN105404522A (en) | Method for building intelligent terminal application program, device for building intelligent terminal application program and intelligent terminal | |
CN112114905B (en) | Software version switching method and device | |
JP5359835B2 (en) | Information processing apparatus, distribution system, and reception method | |
CN110888669B (en) | Method and system for creating template engineering on IDE | |
CN112379934B (en) | Deployment method and device of cloud computing platform and storage medium | |
WO2011117957A1 (en) | Virtual machine management device, virtual machine virtual machine management device, virtual machine management system, virtual machine management method, and program | |
CN102043855B (en) | Method and system for integrating configuration management and defect management | |
JP2006331202A (en) | Management system | |
CN112506487A (en) | Micro-service development method and device | |
JP2013137687A (en) | Generation method of application which does not need compilation |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |