[go: up one dir, main page]

CN109710276B - An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform - Google Patents

An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform Download PDF

Info

Publication number
CN109710276B
CN109710276B CN201811570600.6A CN201811570600A CN109710276B CN 109710276 B CN109710276 B CN 109710276B CN 201811570600 A CN201811570600 A CN 201811570600A CN 109710276 B CN109710276 B CN 109710276B
Authority
CN
China
Prior art keywords
mirror image
personalized
generating
library
openstack
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
Application number
CN201811570600.6A
Other languages
Chinese (zh)
Other versions
CN109710276A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811570600.6A priority Critical patent/CN109710276B/en
Publication of CN109710276A publication Critical patent/CN109710276A/en
Application granted granted Critical
Publication of CN109710276B publication Critical patent/CN109710276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an agile method for continuous integration and continuous delivery of an OpenStack cloud platform, which comprises the following steps: generating a needed personalized mirror image library based on the community open source OpenStack basic mirror image library; generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library; and on the basis of the generated personalized mirror image library, upgrading the OpenStack related environment by using an environment upgrading script. The agile method for continuous integration and continuous delivery of the OpenStack cloud platform can be operated for multiple times within one day, and the agility of cloud platform product research and development is improved, so that the product research and development period is further shortened, and the product quality is improved.

Description

Agile method and device for continuous integration and continuous delivery of OpenStack cloud platform
Technical Field
The invention relates to the technical field of cloud computing data centers, in particular to an agile method and device for continuous integration and continuous delivery of an OpenStack cloud platform.
Background
In the cloud computing era, OpenStack has numerous developers and users worldwide, which have become de facto standard in the cloud computing field. At present, numerous cloud computing manufacturers construct cloud platforms with their own characteristics according to their own characteristics and customer requirements based on open source OpenStack cloud platforms. The OpenStack is used as a large and complex cloud platform, and the continuous integration and continuous delivery process of the OpenStack greatly influences the development progress and the product quality of cloud platform products based on the OpenStack.
Disclosure of Invention
The invention aims to provide an agile method and device for continuous integration and continuous delivery of an OpenStack cloud platform, wherein the agile method for continuous integration and continuous delivery of the OpenStack cloud platform can be operated for many times in one day, and the agility of cloud platform product research and development is improved, so that the product research and development period is further shortened, and the product quality is improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
an agile method for continuous integration and continuous delivery of an OpenStack cloud platform comprises the following steps:
generating a needed personalized mirror image library based on the community open source OpenStack basic mirror image library;
generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library;
and on the basis of the generated personalized mirror image library, upgrading the OpenStack related environment by using an environment upgrading script.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the generating a required personalized image library based on the community open source OpenStack base image library specifically includes:
dynamically generating a TAG required by the construction of a personalized mirror image library;
traversing the modules in the white list and generating Dockerfile of the corresponding modules;
according to the generated Dockerfile, generating a mirror image of a corresponding module by using a docker command, and pushing the mirror image to a corresponding private library;
and traversing the modules in the blacklist, and directly pushing the corresponding mirror images to the corresponding private libraries.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the traversing modules in a white list and generating a Dockerfile of a corresponding module specifically includes:
reading a white list module list;
downloading codes of the corresponding modules from the gitlab;
and traversing all the mirror images of the corresponding modules and dynamically generating the Dockerfile of the mirror images of the corresponding modules.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the traversing modules in the blacklist directly pushes corresponding mirror images to corresponding private libraries, and specifically includes:
reading an image list in a blacklist;
acquiring a corresponding mirror image from a community basic private library;
and pushing the mirror image to a corresponding private library.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the generating an ISO product file using an ISO construction script on the basis of the generated personalized image library specifically includes:
cleaning related data in the corresponding base;
copying the generated personalized mirror image library and the personalized deployment tool to a corresponding base;
modifying the TAG number of the file in the personalized deployment tool;
and generating an ISO product file.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, on the basis of the generated personalized image library, upgrading an OpenStack-related environment by using an environment upgrading script specifically includes:
obtaining a personalized mirror image TAG required by OpenStack environment upgrading;
modifying the mirror image version of the personalized deployment tool file;
modifying the personalized mirror image source of the personalized deployment tool file;
the environment is upgraded using a personalized deployment tool.
The invention provides an agile device for continuous integration and continuous delivery of an OpenStack cloud platform, which comprises:
the personalized mirror image library generating module is used for generating a needed personalized mirror image library on the basis of the community open source OpenStack basic mirror image library;
the ISO product file generation module is used for generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library;
and the OpenStack environment upgrading module is used for upgrading the OpenStack related environment by using the environment upgrading script on the basis of the generated personalized mirror image library.
The agile device for continuous integration and continuous delivery of the OpenStack cloud platform in the second aspect of the invention can implement the method in the first aspect, and achieve the same effect.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
the method comprises the steps of constructing the personalized mirror image private library on the basis of open source OpenStack, and generating a cloud platform product for production and deployment by using an ISO construction program on the basis of the personalized mirror image private library. Meanwhile, the existing environment can be upgraded by using an OpenStack environment updating program on the basis of the personalized mirror image private library. The agile method for continuous integration and continuous delivery of the OpenStack cloud platform can be operated for multiple times within one day, and the agility of cloud platform product research and development is improved, so that the product research and development period is further shortened, and the product quality is improved.
Drawings
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
FIG. 2 is a flow chart of a second method of an embodiment of the invention;
FIG. 3 is a flow chart of a three-way method of an embodiment of the present invention;
FIG. 4 is a flow diagram of a four-way method of an embodiment of the present invention;
FIG. 5 is a flow chart of a fifth method embodiment of the present invention;
FIG. 6 is a schematic diagram of the structure of the device of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, an agile method for continuous integration and continuous delivery of an OpenStack cloud platform includes the following steps:
s1, generating a needed personalized mirror image library based on the community open source OpenStack basic mirror image library;
s2, generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library;
and S3, on the basis of the generated personalized image library, upgrading the OpenStack related environment by using an environment upgrading script.
And generating a needed personalized mirror image library by using a personalized mirror image construction module based on the community open source OpenStack basic mirror image library, wherein the process needs to depend on an internal personalized gitlab code library, internal pip and yum sources and the like. On the basis of the personalized image library, an ISO construction script is used for generating an ISO product file, and the product file comprises an OS basic file, monitoring related plug-ins and a personalized deployment tool kolla-infrastructure. Meanwhile, an environment upgrading script can be used for upgrading the existing OpenStack related environment on the basis of the personalized mirror image library.
Example two
As shown in fig. 2, in step S1, generating a required personalized image library based on the community open source OpenStack base image library specifically includes:
s11, dynamically generating a TAG required by the construction of the personalized mirror image library;
s12, traversing the modules in the white list and generating Dockerfile of the corresponding modules;
s13, according to the generated Dockerfile, generating a mirror image of a corresponding module by using a docker command, and pushing the mirror image to a corresponding private library;
s14, traversing the module in the black list, and directly pushing the corresponding mirror image to the corresponding private library.
EXAMPLE III
As shown in fig. 3, in step S1, generating a required personalized image library based on the community open source OpenStack base image library specifically includes:
generating a TAG number for constructing the personalized private library; defining related variables; checking whether a white list exists, if so, reading a white list module list; downloading codes of the corresponding modules from the gitlab; traversing all the mirror images of the corresponding modules, dynamically generating Dockerfile of the mirror images of the corresponding modules, generating the corresponding mirror images according to the generated Dockerfile, and pushing the corresponding mirror images to the corresponding personalized private libraries; until all modules are processed;
reading an image list in a blacklist; acquiring a corresponding mirror image from a community basic private library; and pushing the mirror image to a corresponding private library until the blacklist is processed, and packaging the generated docker directory of the personalized private library to a corresponding date directory of target _ registration.
Example four
As shown in fig. 4, in step S2, on the basis of the generated personalized image library, generating an ISO product file using an ISO build script, specifically including:
s21, cleaning related data in the corresponding base;
s22, copying the generated personalized mirror image library and the personalized deployment tool to a corresponding base;
s23, modifying the TAG number of the file in the personalized deployment tool;
and S24, generating an ISO product file.
EXAMPLE five
As shown in fig. 5, in step S3, on the basis of the generated personalized image library, upgrading the OpenStack-related environment by using an environment upgrading script specifically includes:
s31, obtaining a personalized mirror image TAG required by OpenStack environment upgrading;
s32, modifying the mirror image version of the personalized deployment tool file;
s33, modifying the personalized mirror image source of the personalized deployment tool file;
and S34, upgrading the environment by using the personalized deployment tool.
As shown in fig. 6, an agile device for continuous integration and continuous delivery of an OpenStack cloud platform includes:
the personalized mirror image library generating module 101 generates a needed personalized mirror image library based on the community open source OpenStack basic mirror image library;
the ISO product file generation module 102 is used for generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror library;
the OpenStack environment upgrading module 103 uses an environment upgrading script to upgrade the OpenStack related environment on the basis of the generated personalized image library.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (4)

1. An agile method for continuous integration and continuous delivery of an OpenStack cloud platform is characterized by comprising the following steps: generating a needed personalized mirror image library based on the community open source OpenStack basic mirror image library; generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library; on the basis of the generated personalized mirror image library, upgrading the OpenStack related environment by using an environment upgrading script;
the method for generating the needed personalized image library based on the community open source OpenStack base image library specifically comprises the following steps: dynamically generating a TAG required by the construction of a personalized mirror image library; traversing the modules in the white list and generating Dockerfile of the corresponding modules; according to the generated Dockerfile, generating a mirror image of a corresponding module by using a docker command, and pushing the mirror image to a corresponding private library; traversing the modules in the blacklist, and directly pushing the corresponding mirror images to the corresponding private libraries;
the traversing of the modules in the white list and the generation of the Dockerfile of the corresponding module specifically include: reading a white list module list; downloading codes of the corresponding modules from the gitlab; traversing all the mirror images of the corresponding modules, and dynamically generating Dockerfile of the mirror images of the corresponding modules;
the module in the traversal blacklist directly pushes the corresponding mirror image to the corresponding private library, and the method specifically includes: reading an image list in a blacklist; acquiring a corresponding mirror image from a community basic private library; and pushing the mirror image to a corresponding private library.
2. The method of claim 1, wherein generating an ISO product file using an ISO build script based on the generated personalized image library comprises: cleaning related data in the corresponding base; copying the generated personalized mirror image library and the personalized deployment tool to a corresponding base; modifying the TAG number of the file in the personalized deployment tool; and generating an ISO product file.
3. The method as claimed in claim 1, wherein the upgrading the OpenStack-related environment using the environment upgrading script on the basis of the generated personalized image library specifically comprises: obtaining a personalized mirror image TAG required by OpenStack environment upgrading; modifying the mirror image version of the personalized deployment tool file; modifying the personalized mirror image source of the personalized deployment tool file; the environment is upgraded using a personalized deployment tool.
4. An agile device for continuous integration and continuous delivery of an OpenStack cloud platform, comprising: the personalized mirror image library generating module is used for generating a needed personalized mirror image library on the basis of the community open source OpenStack basic mirror image library; the ISO product file generation module is used for generating an ISO product file by using an ISO construction script on the basis of the generated personalized mirror image library; the OpenStack environment upgrading module is used for upgrading the OpenStack related environment by using an environment upgrading script on the basis of the generated personalized mirror image library;
the method for generating the needed personalized image library based on the community open source OpenStack base image library specifically comprises the following steps: dynamically generating a TAG required by the construction of a personalized mirror image library; traversing the modules in the white list and generating Dockerfile of the corresponding modules; according to the generated Dockerfile, generating a mirror image of a corresponding module by using a docker command, and pushing the mirror image to a corresponding private library; traversing the modules in the blacklist, and directly pushing the corresponding mirror images to the corresponding private libraries;
the traversing of the modules in the white list and the generation of the Dockerfile of the corresponding module specifically include: reading a white list module list; downloading codes of the corresponding modules from the gitlab; traversing all the mirror images of the corresponding modules, and dynamically generating Dockerfile of the mirror images of the corresponding modules;
the module in the traversal blacklist directly pushes the corresponding mirror image to the corresponding private library, and the method specifically includes: reading an image list in a blacklist; acquiring a corresponding mirror image from a community basic private library; and pushing the mirror image to a corresponding private library.
CN201811570600.6A 2018-12-21 2018-12-21 An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform Active CN109710276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811570600.6A CN109710276B (en) 2018-12-21 2018-12-21 An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811570600.6A CN109710276B (en) 2018-12-21 2018-12-21 An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform

Publications (2)

Publication Number Publication Date
CN109710276A CN109710276A (en) 2019-05-03
CN109710276B true CN109710276B (en) 2021-10-29

Family

ID=66257070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811570600.6A Active CN109710276B (en) 2018-12-21 2018-12-21 An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform

Country Status (1)

Country Link
CN (1) CN109710276B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459513B (en) * 2020-04-02 2024-04-02 西安远望谷物联网科技有限公司 Windows mirror image manufacturing system and method based on OpenStack platform
CN111459539B (en) * 2020-04-07 2023-03-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering
CN111722866B (en) * 2020-06-19 2022-06-17 浪潮电子信息产业股份有限公司 OpenStack code repairing method, device, equipment and storage medium
CN112558991B (en) * 2020-12-18 2024-08-13 北京华胜天成科技股份有限公司 Mirror image management method and system, cloud management platform and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951354A (en) * 2015-06-08 2015-09-30 北京大学 Virtual machine dispatch algorithm security verification method based on dynamic migration
CN106843837A (en) * 2016-12-21 2017-06-13 中电科华云信息技术有限公司 The construction method of openstack assembly containers
CN106873975A (en) * 2016-12-30 2017-06-20 武汉默联股份有限公司 Devops based on Docker persistently pays and automated system and method
US9792345B1 (en) * 2011-05-14 2017-10-17 Pivotal Software, Inc. Parallel database mirroring
CN107438102A (en) * 2017-07-31 2017-12-05 国云科技股份有限公司 A cloud platform image production system and method thereof
CN108228190A (en) * 2018-01-25 2018-06-29 杭州时趣信息技术有限公司 Continuous integrating and delivery method, system, equipment and computer readable storage medium
CN108234437A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of method and system based on the deployment OpenStack services of Docker technologies

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9792345B1 (en) * 2011-05-14 2017-10-17 Pivotal Software, Inc. Parallel database mirroring
CN104951354A (en) * 2015-06-08 2015-09-30 北京大学 Virtual machine dispatch algorithm security verification method based on dynamic migration
CN106843837A (en) * 2016-12-21 2017-06-13 中电科华云信息技术有限公司 The construction method of openstack assembly containers
CN108234437A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of method and system based on the deployment OpenStack services of Docker technologies
CN106873975A (en) * 2016-12-30 2017-06-20 武汉默联股份有限公司 Devops based on Docker persistently pays and automated system and method
CN107438102A (en) * 2017-07-31 2017-12-05 国云科技股份有限公司 A cloud platform image production system and method thereof
CN108228190A (en) * 2018-01-25 2018-06-29 杭州时趣信息技术有限公司 Continuous integrating and delivery method, system, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109710276A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109710276B (en) An agile method and device for continuous integration and continuous delivery of OpenStack cloud platform
US12032956B2 (en) Techniques to deploy an application as a cloud computing service
US10936293B2 (en) Container image layer reordering
US10834234B2 (en) Automatic interdependency resolution for micro-service deployments
CN108830720B (en) Intelligent contract running method, device, system and computer readable storage medium
US9442744B2 (en) Multilingual build integration for compiled applications
CN106775723B (en) Android platform-based system firmware customization method and Android device
US11226830B2 (en) System for building, managing, deploying and executing reusable analytical solution modules for industry applications
CN112631622B (en) Application installation method, device, server and computer readable medium
US8375387B2 (en) Product independent orchestration tool
CN108762767B (en) Application publishing method, device and computer readable storage medium
CN108647032B (en) Application loading method and apparatus, computer apparatus and computer-readable storage medium
CN108319460A (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN110716786B (en) Page display method, system and storage medium
CN113805882A (en) Method and device for developing application program, electronic equipment and storage medium
US20150019692A1 (en) Method and apparatus for firmware virtualization
US9513762B1 (en) Static content updates
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN111596951A (en) Method and device for configuring engineering file
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN106126303B (en) Installation method, the apparatus and system of (SuSE) Linux OS
US8615758B2 (en) Combining system blueprints, functional layer, and software bits in parallel development of machines
CN112416533A (en) Method and device for running application program on browser and electronic equipment
US20240419794A1 (en) Identifying vulnerabilities across software code repositories

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