CN107608735A - A kind of container mirror image integrated approach and its device - Google Patents

A kind of container mirror image integrated approach and its device Download PDF

Info

Publication number
CN107608735A
CN107608735A CN201710891281.8A CN201710891281A CN107608735A CN 107608735 A CN107608735 A CN 107608735A CN 201710891281 A CN201710891281 A CN 201710891281A CN 107608735 A CN107608735 A CN 107608735A
Authority
CN
China
Prior art keywords
image
upgrade
mirror image
container
engine file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710891281.8A
Other languages
Chinese (zh)
Inventor
解晓哲
李红卫
雷亚帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710891281.8A priority Critical patent/CN107608735A/en
Publication of CN107608735A publication Critical patent/CN107608735A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of container mirror image integrated approach and its device.This method, including:Obtain upgrading container engine file;According to the upgrading container engine file and foundation image, upgrade image is determined;The upgrade image is pushed to mirror image warehouse.The modular container mirror image that realizing only needs to change is built, and saves the time of installation mirror image, improves the efficiency of lasting structure openstack mirror images.

Description

Container mirror image integration method and device
Technical Field
The present invention relates to computer technology, and is especially container image integrating method and device.
Background
With the increasingly widespread application of cloud computing, a cloud computing management platform project OpenStack is proposed, wherein the OpenStack can be combined by several main components to realize specific work.
In the prior art, Kolla can containerize all components used in the OpenStack project, and currently 206 images are containerized. That is to say, by installing a containerized mirror image, specific work of OpenStack can be realized, and further, by installing an upgraded containerized mirror image, upgrade of OpenStack can be realized.
However, in a scenario where a plurality of upgrade images are installed, if a network is unstable, it may cause an installation failure of one upgrade image, which may cause all upgrade images to be installed again, thereby consuming a lot of time.
Disclosure of Invention
In order to solve the technical problem, the invention provides a container mirror image integration method and a device thereof, which are used for solving the problem that an alarm cannot be accurately given.
In order to achieve the object of the present invention, the present invention provides a container mirror image integration method, comprising:
obtaining an upgrading container engine file;
determining an upgrade image according to the upgrade container engine file and the basic image;
and pushing the upgrade mirror image to a mirror image warehouse.
Further, after pushing the upgrade image to the image repository, the method further includes:
and packaging the upgrade image to obtain an upgrade image package.
Further, the packaging the upgrade image to obtain an upgrade image package further includes:
and loading the upgrade image package to an image hosting service, wherein the image hosting service is used for managing images.
Further, the packaging the upgrade image, before obtaining the packaged upgrade image, further includes:
and carrying out operation on the upgrade mirror image, and determining that the operation is normal.
Further, before obtaining the upgrade container engine file, the method further includes:
and performing incremental construction on the basic container engine file according to the basic mirror image.
The invention also provides a container mirror image integration device, which comprises:
the acquisition module is used for acquiring an upgrade container engine file;
the processing module is used for determining an upgrade image according to the upgrade container engine file and the basic image;
and the pushing module is used for pushing the upgrade mirror image to a mirror image warehouse.
Further, the obtaining module is further configured to perform packaging processing on the upgrade image to obtain an upgrade image package.
Further, the processing module is further configured to load the upgrade image package to an image hosting service, where the image hosting service is configured to manage images.
Further, the processing module is further configured to perform an operation on the upgrade image to determine that the operation is normal.
Further, the processing module is further configured to build an increment of the base container engine file according to the base mirror image.
The invention provides a container mirror image integration method and a device thereof, wherein a container engine file is upgraded by acquiring; determining an upgrade image according to the upgrade container engine file and the basic image; and pushing the upgrade mirror image to a mirror image warehouse. The method and the device realize that the mirror image of the module container only needs to be changed is constructed, save the time for installing the mirror image and improve the efficiency for continuously constructing the openstack mirror image.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a schematic flow chart illustrating a container mirror image integration method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a container mirror image integration method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a container mirror image integration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The container mirror image integration method provided by the embodiment of the invention can be particularly applied to the integration of the upgraded container mirror images. The container mirroring integration method provided by this embodiment may be performed by a container mirroring integration apparatus, which may be integrated in a terminal or separately provided, where the container mirroring integration apparatus may be implemented in a software and/or hardware manner. The container mirror image integration method and apparatus provided in the present embodiment will be described in detail below.
FIG. 1 is a schematic flow chart illustrating a container mirror image integration method according to an embodiment of the present invention; as shown in fig. 1, the execution subject of this embodiment may be a container mirror image integration apparatus, and the container mirror image integration method provided by the present invention includes:
step 101, obtaining an upgrade container engine file.
The applicable scenario of this embodiment is when the basic image is upgraded, specifically, the basic container engine file may be incrementally constructed according to the basic image to obtain the upgrade container engine file. For example, the content of the basic image horizon module needs to be changed, and the container engine file docker file in the horizon component needs to be modified to add an operation to be changed, so as to obtain an upgraded container engine file.
And step 102, determining an upgrade image according to the upgrade container engine file and the basic image.
For example, a new image, i.e., an upgrade image, is constructed based on a currently existing base image and an upgrade container engine file.
And 103, pushing the upgrade image to an image warehouse.
In the embodiment, the upgrade container engine file is acquired; determining an upgrade image according to the upgrade container engine file and the basic image; and pushing the upgrade mirror image to a mirror image warehouse. The method and the device realize that the mirror image of the module container only needs to be changed is constructed, save the time for installing the mirror image and improve the efficiency for continuously constructing the openstack mirror image.
FIG. 2 is a schematic flow chart illustrating a container mirror image integration method according to a second embodiment of the present invention; as shown in fig. 2, the execution subject of this embodiment may be a container mirror image integration apparatus, and on the basis of the above embodiment, the container mirror image integration method provided by the present invention includes:
step 201, obtaining an upgrade container engine file;
step 202, determining an upgrade image according to the upgrade container engine file and the basic image;
and step 203, pushing the upgrade image to an image warehouse.
And 204, performing operation on the upgrade image to determine that the operation is normal.
And 205, packaging the upgrade image to obtain an upgrade image package.
Step 206, loading the upgrade image package to an image hosting service.
The image hosting service in this embodiment is used to manage images.
In the embodiment, the efficiency of continuously constructing the openstack mirror image is improved, the operation flow of constructing the mirror image is simplified, and the accuracy of constructing the mirror image is further improved.
On the basis of the above embodiment, before obtaining the upgrade container engine file, the method further includes:
and performing incremental construction on the basic container engine file according to the basic mirror image.
FIG. 3 is a schematic structural diagram of an embodiment of a container mirror image integration apparatus according to the present invention; as shown in fig. 3, the container mirror image integration method provided by the present invention includes: an acquisition module 31, a processing module 32 and a pushing module 33; wherein,
an obtaining module 31, configured to obtain an upgrade container engine file;
the processing module 32 is used for determining an upgrade image according to the upgrade container engine file and the basic image;
and a pushing module 33, configured to push the upgrade image to an image warehouse.
In the embodiment, the upgrade container engine file is acquired; determining an upgrade image according to the upgrade container engine file and the basic image; and pushing the upgrade mirror image to a mirror image warehouse. The method and the device realize that the mirror image of the module container only needs to be changed is constructed, save the time for installing the mirror image and improve the efficiency for continuously constructing the openstack mirror image.
Further, on the basis of the above embodiment, the obtaining module 31 is further configured to perform a packaging process on the upgrade image to obtain an upgrade image package.
Further, on the basis of the foregoing embodiment, the processing module 32 is further configured to load the upgrade image package to an image hosting service, where the image hosting service is used to manage images.
Further, on the basis of the foregoing embodiment, the processing module 32 is further configured to perform a running operation on the upgrade image, and determine that the running operation is normal.
Further, on the basis of the foregoing embodiment, the processing module 32 is further configured to perform incremental building on the base container engine file according to the base image.
In the embodiment, the efficiency of continuously constructing the openstack mirror image is improved, the operation flow of constructing the mirror image is simplified, and the accuracy of constructing the mirror image is further improved.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A container mirroring integration method, comprising:
obtaining an upgrading container engine file;
determining an upgrade image according to the upgrade container engine file and the basic image;
and pushing the upgrade mirror image to a mirror image warehouse.
2. The method of claim 1, wherein after pushing the upgraded image to an image repository, further comprising:
and packaging the upgrade image to obtain an upgrade image package.
3. The method of claim 2, wherein packaging the upgrade image to obtain an upgrade image package further comprises:
and loading the upgrade image package to an image hosting service, wherein the image hosting service is used for managing images.
4. The method of claim 3, wherein packaging the upgrade image before obtaining the packaged upgrade image further comprises:
and carrying out operation on the upgrade mirror image, and determining that the operation is normal.
5. The method according to any one of claims 1 to 4, wherein before the obtaining the upgrade container engine file, further comprising:
and performing incremental construction on the basic container engine file according to the basic mirror image.
6. A container mirror image integration apparatus, comprising:
the acquisition module is used for acquiring an upgrade container engine file;
the processing module is used for determining an upgrade image according to the upgrade container engine file and the basic image;
and the pushing module is used for pushing the upgrade mirror image to a mirror image warehouse.
7. The apparatus of claim 6, wherein the obtaining module is further configured to perform a packaging process on the upgrade image to obtain an upgrade image package.
8. The apparatus of claim 7, wherein the processing module is further configured to load the upgrade image package to an image hosting service, and wherein the image hosting service is configured to manage images.
9. The apparatus of claim 8, wherein the processing module is further configured to perform a running operation on the upgrade image to determine that the running operation is normal.
10. The apparatus of any of claims 6-9, wherein the processing module is further configured to build an incremental build of a base container engine file from a base image.
CN201710891281.8A 2017-09-27 2017-09-27 A kind of container mirror image integrated approach and its device Pending CN107608735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710891281.8A CN107608735A (en) 2017-09-27 2017-09-27 A kind of container mirror image integrated approach and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710891281.8A CN107608735A (en) 2017-09-27 2017-09-27 A kind of container mirror image integrated approach and its device

Publications (1)

Publication Number Publication Date
CN107608735A true CN107608735A (en) 2018-01-19

Family

ID=61058960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710891281.8A Pending CN107608735A (en) 2017-09-27 2017-09-27 A kind of container mirror image integrated approach and its device

Country Status (1)

Country Link
CN (1) CN107608735A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874405A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of OpenStack environment upgrade method
CN108984165A (en) * 2018-07-16 2018-12-11 郑州云海信息技术有限公司 A kind of building customizes the method and system of mirror image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN105511920A (en) * 2015-12-08 2016-04-20 北京元心科技有限公司 Container based mobile terminal operating system upgrading method and device
CN106227579A (en) * 2016-07-12 2016-12-14 深圳市中润四方信息技术有限公司 A kind of Docker container construction method and Docker manage control station
CN106528224A (en) * 2016-11-03 2017-03-22 腾讯科技(深圳)有限公司 Content updating method and system for Docker container, and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN105511920A (en) * 2015-12-08 2016-04-20 北京元心科技有限公司 Container based mobile terminal operating system upgrading method and device
CN106227579A (en) * 2016-07-12 2016-12-14 深圳市中润四方信息技术有限公司 A kind of Docker container construction method and Docker manage control station
CN106528224A (en) * 2016-11-03 2017-03-22 腾讯科技(深圳)有限公司 Content updating method and system for Docker container, and server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874405A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of OpenStack environment upgrade method
CN108874405B (en) * 2018-06-20 2021-08-06 郑州云海信息技术有限公司 OpenStack environment upgrading method
CN108984165A (en) * 2018-07-16 2018-12-11 郑州云海信息技术有限公司 A kind of building customizes the method and system of mirror image

Similar Documents

Publication Publication Date Title
CN102708050B (en) Method and system for testing mobile application
US20190095186A1 (en) Virtualization Platform for Creating, Deploying, Modifying, and Relocating Applications
CN106681718A (en) Toolkit-based desktop side plugin frame and implementation method thereof
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN103873534A (en) Method and device for application cluster migration
CN105204871A (en) Plug-in type development method and device
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN111190609B (en) Service processing method, device, equipment and storage medium
US20230259358A1 (en) Documentation enforcement during compilation
CN110084567A (en) E-seal application method, device, equipment and computer readable storage medium
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN107608735A (en) A kind of container mirror image integrated approach and its device
CN112507263A (en) Page loading updating method and device, electronic equipment and storage medium
CN103019798A (en) Method and device for recognizing android system pre-installed software
CN112860251A (en) Method and system for constructing website front end
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN110958138B (en) Container expansion method and device
CN110489090B (en) Application software development method and system based on application model
CN109697166B (en) Test data preparation method and related device
CN105183468A (en) Open plugin processing apparatus and distributed system
CN115190010A (en) Distributed recommendation method and device based on software service dependency relationship
US11163622B1 (en) Web application implementing a shared set of identifiers for handling links to web application plugins
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle

Legal Events

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

Application publication date: 20180119