CN108196843A - Visualization Docker containers compile the O&M method of deployment automatically - Google Patents

Visualization Docker containers compile the O&M method of deployment automatically Download PDF

Info

Publication number
CN108196843A
CN108196843A CN201810018736.XA CN201810018736A CN108196843A CN 108196843 A CN108196843 A CN 108196843A CN 201810018736 A CN201810018736 A CN 201810018736A CN 108196843 A CN108196843 A CN 108196843A
Authority
CN
China
Prior art keywords
docker
rancher
container
code
api
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.)
Granted
Application number
CN201810018736.XA
Other languages
Chinese (zh)
Other versions
CN108196843B (en
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.)
Hangzhou Digital Peak Technology Co Ltd
Chengdu Rui Code Technology Co Ltd
Original Assignee
Hangzhou Digital Peak Technology Co Ltd
Chengdu Rui Code Technology Co 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 Hangzhou Digital Peak Technology Co Ltd, Chengdu Rui Code Technology Co Ltd filed Critical Hangzhou Digital Peak Technology Co Ltd
Priority to CN201810018736.XA priority Critical patent/CN108196843B/en
Publication of CN108196843A publication Critical patent/CN108196843A/en
Application granted granted Critical
Publication of CN108196843B publication Critical patent/CN108196843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of O&M methods for visualizing Docker containers and compiling deployment automatically, trigger button by triggering the page on visualization interface, start to create container mirror image:Automatically code is downloaded from code library, and program structure for executable program and into Docker containers image file and is uploaded to container warehouse by automatic compiled code, it cuts container warehouse and code release label is obtained by api interface, then automatic deployment in the server host in the container image download to production environment of corresponding label in container warehouse is run, it solves and is manually disposed in existing O&M method, it is inconvenient, deployment is difficult, the technical problems such as of high cost, it realizes in one-touch release code to production environment, it is easy to operate, efficient.

Description

Visualization Docker containers compile the O&M method of deployment automatically
Technical field
The present invention relates to Software Development fields, and in particular to a kind of visualization Docker containers compile deployment automatically O&M method.
Background technology
In Internet technical field, with the rapid development of IT technology, involved business becomes increasingly complex, user demand More and more diversified, conventional O&M can not meet the requirement in technology, business, management etc..Conventional O&M is because of machine Device environment it is inconsistent, can cause to need a large amount of artificial customization during deployment, influence research and development of products progress, meanwhile, it is different Production environment have differences, also increase deployment workload, and existing automatic compiling deployment O&M method generally use is empty Plan machine technology, it is not only of high cost, and the influence of machine environment is limited to, need customization deployment path and correlation during deployment Component is relied on, and is influenced by other systems, is realized difficult.
Invention content
In order to solve in existing O&M method caused by the difference of manual intervention and production environment it is of high cost, map out the work The technical problems such as difficulty, the present invention provide a kind of O&M method for visualizing Docker containers and compiling deployment automatically, use Docker container mirror image technologies, download code automatically, and compiled code is for executable program and by programming automatic generation container mirror image File, and run in automatic deployment to production environment.
The visualization Docker containers of the present invention compile the O&M method of deployment automatically, include the following steps,
Step S101:Click the page triggering button of visualization interface;
Step S102:Code is obtained, the code of acquisition is compiled and is packaged automatically;
Step S103:Docker container mirror images are generated, and push it to container warehouse;
Step S104:By Rancher management platforms by the container image download of corresponding label in container warehouse to each Automatic deployment is run in server host in production environment.
Further, step S102 specifically includes following steps, step S21:More fresh code is obtained from code library;Step S22:Jenkins Api is called to obtain task items name, then automatic compiled code and are packaged.
Further, step S103 specifically includes following steps, step S31:Docker Api ImageBuild is called to create Container mirror image;Step S32:Call Docker Api ImagePush that the container mirror image of establishment is pushed to the privately owned storehouse of Docker Library.
Further, step S103 further includes container warehouse and obtains code release label by Api interfaces, and sends to Rancher Container Management platforms.
Further, step S104 specifically includes following steps, step S41:By calling the Api of Rancher needing to rise ImageUuid inserts new Docker mirror images, then submit to Rancher Api in the Rancher configuration informations of the Service of grade Upgrade interfaces trigger the update operation of Rancher;Step S42:Generate compose format container environmental parameters The Rancher-compose.yml template files of Docker-compose.yml template files and cluster service;Step S43:It is logical Calling Rancher Api interface Environment Upgrade are crossed to import in yml templates;Step S44:Rancher server-sides are touched It sends out on Rancher master agents end drop-down Docker image and Docker-compose.yml to service host, Rancher master Machine agent side is responsible for according to Docker-compose.yml templates operation Docker image generation Docker containers.
Compared with prior art, the present invention it has the following advantages and advantages:
1st, the present invention performs above-mentioned O&M method, simple and efficient, intuitive, strong operability using visualization interface;
2nd, the present invention can realize download, the compiled code of automation, and can download to the server in production environment Automatic deployment is run in host;
3rd, task scheduling and the deployment of Container Management and code are integrated into an organic whole, one-touch publication generation by the present invention It is easy to operate, efficient in code to production environment.
Description of the drawings
Attached drawing described herein is used for providing further understanding the embodiment of the present invention, forms one of the application Point, do not form the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart for the O&M method that present invention visualization Docker containers compile deployment automatically.
Fig. 2 is the visualization interface figure for the O&M method that present invention visualization Docker containers compile deployment automatically.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiment and attached drawing, to this Invention is described in further detail, and exemplary embodiment of the invention and its explanation are only used for explaining the present invention, do not make For limitation of the invention.
Embodiment
As depicted in figs. 1 and 2, visualization Docker containers provided by the invention compile the O&M method of deployment automatically, lead to The page triggering button for clicking visualization interface is crossed, operation result page presentation, visualization interface backstage carries out container mirror image It automatically creates and disposes, and container is pushed to automatic deployment in the server host in each production environment and is run, realize one It is easy to operate, efficient in keyed release code to production environment.
Step S101:Click the page triggering button of visualization interface;
Step S102:Code is obtained, the code of acquisition is compiled and is packaged automatically;
The step specifically includes following steps, step S21:More fresh code is obtained from code library;Step S22:It calls Jenkins Api obtain task items name, then automatic compiled code and are packaged.
Step S103:Docker container mirror images are generated, and push it to container warehouse;
The step specifically includes following steps, step S31:Docker Api ImageBuild is called to create container mirror image; Step S32:Call Docker Api ImagePush that the container mirror image of establishment is pushed to the privately owned warehouse of Docker.
The step further includes container warehouse and obtains code release label by Api interfaces, and sends Rancher container tubes to Platform.
Step S104:By Rancher management platforms by the container image download of corresponding label in container warehouse to each Automatic deployment is run in server host in production environment.
The step specifically includes following steps, step S41:Needs are upgraded by the Api for calling Rancher ImageUuid inserts new Docker mirror images in the Rancher configuration informations of Service, then submits to Rancher Api Upgrade interfaces trigger the update operation of Rancher;Step S42:Generate compose format container environmental parameters The Rancher-compose.yml template files of Docker-compose.yml template files and cluster service;Step S43:It is logical Calling Rancher Api interface Environment Upgrade are crossed to import in yml templates;Step S44:Rancher server-sides are touched It sends out on Rancher master agents end drop-down Docker image and Docker-compose.yml to service host, Rancher master Machine agent side is responsible for according to Docker-compose.yml templates operation Docker image generation Docker containers.
This method passes through the simple and fast carry out code compilation of the operation button (restart, upgrade, refresh) of the page, container life Into and complete to dispose, while by operation result it is friendly pass through page presentation operating status and version information.
Above-described specific embodiment has carried out the purpose of the present invention, technical solution and advantageous effect further It is described in detail, it should be understood that the foregoing is merely the specific embodiment of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (5)

1. visualization Docker containers compile the O&M method of deployment automatically, which is characterized in that include the following steps,
Step S101:Click the page triggering button of visualization interface;
Step S102:Code is obtained, the code of acquisition is compiled and is packaged automatically;
Step S103:Docker container mirror images are generated, and push it to container warehouse;
Step S104:By Rancher management platforms by the container image download of corresponding label in container warehouse to each production Automatic deployment is run in server host in environment.
2. O&M method according to claim 1, which is characterized in that step S102 specifically includes following steps, step S21:More fresh code is obtained from code library;Step S22:Jenkins Api is called to obtain task items name, then automatic compiling Code is simultaneously packaged.
3. O&M method according to claim 1, which is characterized in that step S103 specifically includes following steps, step S31:Docker Api ImageBuild is called to create container mirror image;Step S32:Call Docker Api ImagePush will The container mirror image of establishment is pushed to the privately owned warehouse of Docker.
4. O&M method according to claim 1, which is characterized in that step S103 further includes container warehouse and connect by Api Mouth obtains code release label, and sends Rancher Container Management platforms to.
5. O&M method according to claim 1, which is characterized in that step S104 specifically includes following steps, step S41:ImageUuid in the Rancher configuration informations for the Service that needs upgrade is inserted newly by the Api for calling Rancher Docker mirror images, then submit to Rancher Api Upgrade interfaces, trigger the update operation of Rancher;Step S42:It is raw Into the Docker-compose.yml template files of compose format container environmental parameters and the Rancher- of cluster service Compose.yml template files;Step S43:By the way that Rancher Api interface Environment Upgrade is called to import yml In template;Step S44:Rancher server-sides triggering Rancher master agents end drop-down Docker image and Docker- On compose.yml to service host, Rancher master agents end is responsible for running according to Docker-compose.yml templates Docker image generate Docker containers.
CN201810018736.XA 2018-01-09 2018-01-09 Operation and maintenance method for automatic compilation and deployment of visual Docker container Active CN108196843B (en)

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 true CN108196843A (en) 2018-06-22
CN108196843B 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)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984179A (en) * 2018-06-28 2018-12-11 北京奇安信科技有限公司 Process of compilation method and device under a kind of Linux
CN109254830A (en) * 2018-09-04 2019-01-22 郑州云海信息技术有限公司 Visual management method and device in deep learning system
CN109358858A (en) * 2018-09-19 2019-02-19 网易(杭州)网络有限公司 Automatically dispose method, apparatus, medium and electronic equipment
CN109408064A (en) * 2018-09-10 2019-03-01 杭州安恒信息技术股份有限公司 A kind of visual micro services system automation dispositions method of layout and system
CN109582315A (en) * 2018-10-26 2019-04-05 北京百度网讯科技有限公司 Service privatization method, apparatus, computer equipment and storage medium
CN109684420A (en) * 2018-12-21 2019-04-26 郑州云海信息技术有限公司 A kind of method and device in the High Availabitity deployment harbor mirror image warehouse based on kubernetes
CN109683887A (en) * 2018-12-17 2019-04-26 杭州玳数科技有限公司 A kind of construction method and device for supporting the customized web project of multi-scheme
CN109743199A (en) * 2018-12-25 2019-05-10 中国联合网络通信集团有限公司 Containerization management system based on micro services
CN109840111A (en) * 2019-02-26 2019-06-04 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN109857462A (en) * 2019-01-25 2019-06-07 东莞理工学院 The backstage Docker duty mapping method of remote sensing images visual editor
CN109933315A (en) * 2019-02-26 2019-06-25 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN110007948A (en) * 2019-02-22 2019-07-12 贵州力创科技发展有限公司 A kind of O&M method, apparatus and storage medium
CN110058863A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Construction method, device, equipment and the storage medium of Docker container
CN110134399A (en) * 2019-03-15 2019-08-16 北京车和家信息技术有限公司 Compilation Method and device
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
CN111352653A (en) * 2020-03-06 2020-06-30 中国工商银行股份有限公司 System development method based on PaaS cloud platform server and server
CN111427949A (en) * 2019-01-09 2020-07-17 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN112328301A (en) * 2020-10-28 2021-02-05 北京百度网讯科技有限公司 Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 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
CN115495148A (en) * 2022-11-17 2022-12-20 深圳代码兄弟技术有限公司 Low-code program based deployment package unified construction management method and system
CN116431277A (en) * 2023-03-13 2023-07-14 浙江海规技术有限公司 Multi-place operation and maintenance containerization method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
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
CN105915378A (en) * 2016-01-04 2016-08-31 中国电子科技网络信息安全有限公司 Container-application-based cross-platform unified management system
EP3109758A1 (en) * 2015-06-25 2016-12-28 Alcatel Lucent Method and apparatus for scaling an application
CN107329800A (en) * 2017-06-29 2017-11-07 北京北信源软件股份有限公司 A kind of middleware application management-control method and device based on Docker platforms

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
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
CN105915378A (en) * 2016-01-04 2016-08-31 中国电子科技网络信息安全有限公司 Container-application-based cross-platform unified management system
CN107329800A (en) * 2017-06-29 2017-11-07 北京北信源软件股份有限公司 A kind of middleware application management-control method and device based on Docker platforms

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AP: "青云推出Docker镜像仓库,打造一站式容器服务平台", 《电脑知识与技术-经验技巧》 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984179A (en) * 2018-06-28 2018-12-11 北京奇安信科技有限公司 Process of compilation method and device under a kind of Linux
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
CN109358858A (en) * 2018-09-19 2019-02-19 网易(杭州)网络有限公司 Automatically dispose method, apparatus, medium and electronic equipment
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
CN109683887A (en) * 2018-12-17 2019-04-26 杭州玳数科技有限公司 A kind of construction method and device for supporting the customized web project of multi-scheme
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
CN109684420A (en) * 2018-12-21 2019-04-26 郑州云海信息技术有限公司 A kind of method and device in the High Availabitity deployment harbor mirror image warehouse based on kubernetes
CN109743199A (en) * 2018-12-25 2019-05-10 中国联合网络通信集团有限公司 Containerization management system based on micro services
CN111427949A (en) * 2019-01-09 2020-07-17 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN111427949B (en) * 2019-01-09 2023-10-20 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN109857462A (en) * 2019-01-25 2019-06-07 东莞理工学院 The backstage Docker duty mapping method of remote sensing images visual editor
CN110007948A (en) * 2019-02-22 2019-07-12 贵州力创科技发展有限公司 A kind of O&M method, apparatus and storage medium
CN109933315A (en) * 2019-02-26 2019-06-25 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN109840111A (en) * 2019-02-26 2019-06-04 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN110134399A (en) * 2019-03-15 2019-08-16 北京车和家信息技术有限公司 Compilation 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
CN111352653A (en) * 2020-03-06 2020-06-30 中国工商银行股份有限公司 System development method based on PaaS cloud platform server and server
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
CN112328301A (en) * 2020-10-28 2021-02-05 北京百度网讯科技有限公司 Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 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
CN115495148A (en) * 2022-11-17 2022-12-20 深圳代码兄弟技术有限公司 Low-code program based deployment package unified construction management method and system
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

Also Published As

Publication number Publication date
CN108196843B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108196843A (en) Visualization Docker containers compile the O&M method of deployment automatically
CN110058863A (en) Construction method, device, equipment and the storage medium of Docker container
US8671392B2 (en) Integrating software applications
US11513775B2 (en) Group control and management among electronic devices
KR101892702B1 (en) Server, apparatus and method for authoring app of supporting multiple platform
US20150106153A1 (en) Workflow compilation
CN104484189A (en) Construction and design method of application interface
JP2006107478A (en) Extensible flamework for designing work flow
CN107577609B (en) Embedded system dynamic module debugging system based on host end dynamic link
CN106201614A (en) A kind of universal method and system that multiple similar software can be carried out chain type upgrading
CN101226479A (en) Method for implementing dynamic collocation of mobile phone menu
US11977919B2 (en) Apparatus and method of securely and efficiently interfacing with a cloud computing service
CN111857801B (en) Construction method of mobile application
US20140143752A1 (en) Systems and methods for providing environments as a service
CN100547971C (en) A kind of method of Control Network bitcom function
CN101551746A (en) UI interface configuration method of mobile communication terminal
CN108287720B (en) Software compiling method, device, equipment and storage medium
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN109086042B (en) Business interface development method based on operator and control
CN105573769A (en) Visual configuration method and device of remote control of cement production
US11853727B2 (en) Group control and management among electronic devices
KR20130020135A (en) System and method of providing the developer list of developing code simultaneously in an integrated development environment
JP2009266149A (en) Job management program and job management apparatus
US20210271458A1 (en) Managing an app method and system
CN103530151A (en) Customization method of Linux operating system capable of switching service software systems

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