Service mirror image hierarchical deployment method and device and electronic equipment
By adopting the business mirroring hierarchical deployment method in cloud computing, and combining extended image packages and fixed image packages, the redundant construction and resource waste caused by mismatch in module update cycles in cloud business upgrades are solved, and the image deployment efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202411546053.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-03-28
AI Technical Summary
In the field of cloud computing technology, due to the mismatch of the update cycles of each module during the cloud business upgrade, the modules with low update frequency during the business image construction process have redundant construction, which reduces the efficiency of image construction, and the new image package is large in size, resulting in wasted deployment resources.
A business image hierarchical deployment method is proposed. By determining the update image package, including the extended image package, it characterizes the extension operation of the environment image package, combines the extended image package with the fixed image package, and obtains the deployed service image to avoid redundant updates and the transmission of large-scale image packages.
Improve the efficiency of image deployment, reduce the time overhead and network bandwidth overhead during the transmission of update image packets, and avoid redundant updates and resource waste.
Smart Images

Figure CN119718348A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device and electronic device for hierarchical deployment of business images. Background Art
[0002] In the field of cloud computing technology, each cloud business upgrade requires the deployment of a new image package, but a complete business container may contain multiple modules, and the update cycles of each module are not matched, which may lead to redundant construction of modules with low update frequency during the business image construction process, thereby reducing the efficiency of image construction. In addition, new image packages are often large in size, and there is a large time overhead and network bandwidth overhead when performing business upgrade transmission, which wastes deployment resources. Summary of the invention
[0003] The present disclosure provides a method, device and electronic device for hierarchical deployment of service images, so as to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a method for hierarchical deployment of a business image is provided, comprising: determining an update image package of a business image, wherein the update image package includes at least an extension image package, wherein the extension image package represents an extended operation on an environment image package, and wherein the extension image package and the environment image package are used to support an environment required for the operation of business software; and combining the extension image package with a fixed image package to obtain a deployed business image, wherein the fixed image package includes the environment image package and a basic image package, and wherein the basic image package is used to support an environment required for the installation of business software.
[0005] In one possible implementation, the update image package also includes a software image package, and determining the update image package of the business image includes: generating a software image package based on the updated business software, where the business software is an application that implements business functions; generating the extended image package based on an extended operation on the environment image package; and combining the software image package and the extended image package to obtain the update image package.
[0006] In one possible implementation, the extension operation is selected from at least one of the following combinations: an add operation, a delete operation, a modify operation, a version limit operation, and a version rollback operation.
[0007] In one possible implementation manner, the determining the update image package of the service image includes: merging the update image packages of all the service images; and deduplicating the update image package obtained after merging.
[0008] In one possible implementation, combining the extended image package with the fixed image package includes: identifying the extended image package corresponding to each business image from the update image package; and combining the extended image package corresponding to each business image with the fixed image package to obtain the deployed business image.
[0009] In one possible implementation, combining the extended image package with the fixed image package includes: identifying the software image package and the extended image package corresponding to each business image from the update image package; combining the software image package and the extended image package corresponding to each business image with the fixed image package to obtain a deployed business image.
[0010] In one possible implementation, identifying the software image package and the extended image package corresponding to each business image from the update image package includes: determining the software image package and the extended image package corresponding to each business image based on the index information of the image package in the update image package, wherein the index information represents the correspondence between the image package and the business image.
[0011] In one possible implementation, the combining of the software image package and the extended image package corresponding to each business image with the fixed image package includes: based on the hierarchical relationship of the image packages in the update image package, combining the software image package and the extended image package corresponding to each business image with the fixed image package in the order indicated by the hierarchical relationship to obtain the deployed business image.
[0012] According to a second aspect of the present disclosure, a business image hierarchical deployment device is provided, including: a determination module, used to determine an update image package of a business image, the update image package at least including an extended image package, the extended image package representing an extended operation on an environment image package, the extended image package and the environment image package are used to support the environment required for the operation of business software; a combination module, used to combine the extended image package with a fixed image package to obtain a deployed business image, the fixed image package including the environment image package and a basic image package, the basic image package is used to support the environment required for the installation of business software.
[0013] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0017] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0020] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0021] Figure 1 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 1 ;
[0022] Figure 2 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 2 ;
[0023] Figure 3 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 3 ;
[0024] Figure 4 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 4 ;
[0025] Figure 5 A schematic diagram showing a scenario of a method for hierarchical deployment of service images according to an embodiment of the present disclosure Figure 1 ;
[0026] Figure 6 A schematic diagram showing a scenario of a method for hierarchical deployment of service images according to an embodiment of the present disclosure Figure 2 ;
[0027] Figure 7 A schematic diagram of the structure of a device for hierarchical deployment of service images according to an embodiment of the present disclosure is shown;
[0028] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0029] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0030] Figure 1 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 1 ,like Figure 1 As shown, a method for hierarchical deployment of service images includes:
[0031] Step S101: determining an update image package of a service image, wherein the update image package at least includes an extension image package.
[0032] Figure 5 A schematic diagram showing a scenario of a method for hierarchical deployment of service images according to an embodiment of the present disclosure Figure 1 ,like Figure 5 As shown, the business image before the update includes a basic image package and an environment image package. In some cases, it also includes other image packages required to support business operation. The basic image package is used to support the environment required for the installation of business software. It mainly provides an operating system environment, such as Centos and Ubuntu, which are based on Linux and are usually not updated; the environment image package is used to support the underlying tool environment required for the operation of business software, including a large number of basic commands and standard libraries, etc., and is usually large in size and has a low update frequency. When there is a small probability of update demand for the environment image package, directly updating the complete environment image package will result in redundant updates, which reduces the update efficiency and has a large time cost and network bandwidth cost. In order to solve the above problems, in this embodiment, when there is an update to the environment image package, only the update content of the environment image package, that is, the update or extension operation of the environment image package, is packaged into an extended image package, and an updated image package is generated based on the extended image package. That is to say, the extended image package represents the update or extension operation of the environment image package, and the extended image package and the environment image package are used together to support the environment required for the operation of the updated business software. Other image packages are generally small in size and updated frequently, so they can be directly updated when they are updated.
[0033] Step S102: Combine the extended image package with the fixed image package to obtain a deployed business image.
[0034] In this embodiment, when the environment image package is updated, only the update or extension operation of the environment image package is packaged into the update image package, and there is no need to modify the environment image package before the update. Therefore, the environment image package before the update and the base image package are packaged into a fixed image package, such as Figure 5 As shown, there is no update content in the fixed image package, so when the service upgrade is transmitted, there is no need to transmit the fixed image package. After the update image package is determined, the extended image package in the update image package is directly combined with the fixed image package in the current environment to obtain the updated business image. It can be seen that the updated business image includes the extended image package, the environment image package and the basic image package.
[0035] In the present disclosure, when updating a business image, only the extended image package corresponding to the update or extension operation of the environment image package is packaged into the update image package, rather than packaging the entire updated environment image package into the update image package. Then, after obtaining the update image package, the extended image package is combined with the saved fixed image package to obtain the deployed business image. Thus, during the update process of the business image, only the extended image package corresponding to the update or extension operation of the environment image package is packaged into the update image package, the update image package is smaller in size, and the environment image package with a lower update frequency will not be redundantly updated, which improves the efficiency of image deployment and reduces the time overhead and network bandwidth overhead during the transmission of the update image package.
[0036] Figure 2 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 2 ,like Figure 2 As shown, the update image package also includes a software image package. A method for hierarchical deployment of business images includes:
[0037] Step S201, generating a software image package based on the updated business software.
[0038] In this embodiment, if Figure 5 The other image packages shown may be software image packages, which are used to provide specific business functions to the outside world. Software image packages rely on basic image packages and environment image packages to run. They are often small in size and have a high update frequency. When updating the business image, an updated software image package is generated directly based on the updated business software. The business software is an application that implements business functions.
[0039] Step S202: Generate an extended image package based on the extended operation on the environment image package.
[0040] In this embodiment, the extended operation of the environment image package includes an add operation, a delete operation, a modify operation, a version limit operation, and a version rollback operation, etc., that is, any operation that can cause changes in the environment image package belongs to the extended operation of the environment image package, wherein the add operation is used to add the required basic commands or standard libraries, etc., the delete operation is used to delete redundant basic commands or standard libraries, etc., the modify operation is used to modify the existing basic commands or standard libraries, etc., the version limit operation is used to specify the version of the basic commands or standard libraries, etc., and the version rollback operation is used to indicate that the version of the basic commands or standard libraries, etc. is rolled back to the previous version. In one example, the location and content of the operations such as the add operation, the delete operation, the modify operation, the version limit operation, and the version rollback operation can be recorded, and the extended image package is generated based on the recorded data.
[0041] Step S203: Combine the software image package and the extended image package to obtain an updated image package.
[0042] Step S204: Combine the software image package and the extended image package with the fixed image package to obtain a deployed business image.
[0043] In this embodiment, the updated software image package and the extended image package are combined to obtain the updated image package. After obtaining the updated image package, the software image package and the extended image package can be combined with the fixed image package to obtain the deployed business image. Therefore, during the update process of the business image, only the extended image package corresponding to the update or extension operation of the software image package and the environment image package is packaged into the updated image package, the update image package is smaller in size, and the environment image package with a larger volume and a lower update frequency will not be redundantly updated, which improves the image deployment efficiency and reduces the time overhead and network bandwidth overhead during the transmission of the update image package.
[0044] Figure 3 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 3 ,like Figure 3 As shown, a method for hierarchical deployment of service images includes:
[0045] Step S301: merge the update image packages of all business images.
[0046] Step S302, deduplication of the merged update image package.
[0047] In this embodiment, if there are multiple business images that need to be updated, the update image packages corresponding to all business images can be packaged into one update image package. First, the update image packages of all business images are merged, and then the merged update image package is deduplicated.
[0048] Figure 6 A schematic diagram showing a scenario of a method for hierarchical deployment of service images according to an embodiment of the present disclosure Figure 2 ,like Figure 6 As shown, there are two business images in the development environment warehouse in the image building stage. After the two business images are built and updated, they are business image A and business image B. Business image A includes fixed image package a, extended image package b and software image package c1, and business image B includes fixed image package a, extended image package b and software image package c2. It can be seen that the update image packages of business image A and business image B have the same extended image package b, as well as different software image packages c1 and software image packages c2. When merging, the corresponding update image packages can be extracted from business image A and business image B, and then the update image packages of business image A and business image B can be merged, and the same extended image package b in the merged update image package can be deduplicated, and only one extended image package b is retained; it can also be as follows Figure 5 As shown, the business image A and the business image B are directly merged, and the same extended image package b in the merged business image is deduplicated, only one extended image package b is retained, and then all fixed image packages in the merged business image are removed, and the final updated image package includes extended image package b, software image package c1 and software image package c2. Therefore, in the scenario of updating multiple business images, there is no need to send multiple business image packages separately, and multiple business images can be updated at one time, which further improves the efficiency of image deployment and reduces the time overhead and network bandwidth overhead during the transmission of the update image package.
[0049] Step S303: Combine the extended image package with the fixed image package to obtain a deployed business image.
[0050] The specific implementation details of step S303 are similar to those of step S102 and will not be repeated here.
[0051] Figure 4 The schematic diagram shows a process of a method for hierarchical deployment of service images in an embodiment of the present disclosure. Figure 4 ,like Figure 4 As shown, a method for hierarchical deployment of service images includes:
[0052] Step S401: determine an update image package of a service image, where the update image package at least includes an extension image package.
[0053] The specific implementation details of step S401 are similar to those of step S101 and will not be repeated here.
[0054] Step S402: identifying the extended image package corresponding to each service image from the updated image package.
[0055] Step S403: Combine the extended image package corresponding to each service image with the fixed image package to obtain a deployed service image.
[0056] In this embodiment, after determining the update image package, if the update image package only includes the extended image package, the extended image package corresponding to each business image can be identified from the update image package, and the extended image package corresponding to each business image can be combined with the fixed image package to obtain the deployed business image; if the update image package includes the software image package and the extended image package, the software image package and the extended image package corresponding to each business image can be identified from the update image package, and the software image package and the extended image package corresponding to each business image can be combined with the fixed image package to obtain the deployed business image.
[0057] like Figure 6 As shown, after obtaining the update image packages corresponding to business image A and business image B, the production environment warehouse in the image deployment stage identifies the extended image package b and software image package c1 corresponding to business image A from the update image package, identifies the extended image package b and software image package c2 corresponding to business image B, and then combines the extended image package b and software image package c1 with the fixed image package a to obtain business image A, and combines the extended image package b and software image package c2 with the fixed image package a to obtain business image B.
[0058] In another embodiment, identifying the software image package and the extended image package corresponding to each business image from the update image package includes: determining the software image package and the extended image package corresponding to each business image based on the index information of the image package in the update image package, wherein the index information represents the correspondence between the image package and the business image. In one example, before packaging the update image packages corresponding to all business images, index information can be established based on the correspondence between the image package and the business image. When it is necessary to identify the software image package and the extended image package corresponding to each business image from the update image package, the business image to which the image package belongs can be determined based on the index information. Figure 6 As shown, the index information may include (b, A), (b, B), (c1, A) and (c2, B), indicating that the extended image package b belongs to business image A and business image B, the software image package c1 belongs to business image A, and the software image package c2 belongs to business image B.
[0059] In another embodiment, the software image package and the extended image package corresponding to each business image are combined with the fixed image package, including: based on the hierarchical relationship of the image packages in the update image package, the software image package and the extended image package corresponding to each business image are combined with the fixed image package in the order indicated by the hierarchical relationship to obtain the deployed business image. In one example, before packaging the update image packages corresponding to all business images, the hierarchical relationship of each image package in the business image can also be determined. When it is necessary to combine the software image package and the extended image package corresponding to each business image with the fixed image package, they can be combined based on the hierarchical relationship. Figure 6 As shown, in the development environment warehouse in the image building phase, the hierarchical relationship of business image A is, from bottom to top, fixed image package a, extended image package b, and software image package c1, and the hierarchical relationship of business image B is, from bottom to top, fixed image package a, extended image package b, and software image package c2; in the production environment warehouse in the image deployment phase, after identifying the software image package and extended image package corresponding to business image A and business image B from the update image package, when merging them with the fixed image package a, they can be combined in the order indicated in the hierarchical relationship of business image A and the hierarchical relationship of business image B, thereby ensuring that the business image after deployment is accurately obtained.
[0060] Figure 7 A schematic diagram of the structure of a device for hierarchical deployment of service images according to an embodiment of the present disclosure is shown. Figure 7 As shown, a service image hierarchical deployment device includes:
[0061] A determination module 10 is used to determine an update image package of a business image, wherein the update image package includes at least an extended image package, which represents an extended operation on an environment image package. The extended image package and the environment image package are used to support the environment required for the operation of the business software; a combination module 11 is used to combine the extended image package with the fixed image package to obtain a deployed business image, wherein the fixed image package includes an environment image package and a basic image package, and the basic image package is used to support the environment required for the installation of the business software.
[0062] In one possible implementation, the determination module 10 is also used to: generate a software image package based on the updated business software, where the business software is an application that implements business functions; generate an extended image package based on an extended operation on the environment image package; combine the software image package and the extended image package to obtain an updated image package; wherein the extended operation is selected from at least one of the following combinations: an add operation, a delete operation, a modify operation, a version limit operation, and a version rollback operation.
[0063] In one possible implementation, the determination module 10 is further used to: merge the update image packages of all business images; and perform image package deduplication on the merged update image packages.
[0064] In one possible implementation, the combining module 11 is further used to: identify the extended image package corresponding to each business image from the updated image package; and combine the extended image package corresponding to each business image with the fixed image package to obtain the deployed business image.
[0065] In one embodiment, the combination module 11 is further used to: identify the software image package and the extended image package corresponding to each business image from the update image package; combine the software image package and the extended image package corresponding to each business image with the fixed image package to obtain the deployed business image.
[0066] In one possible implementation, the combining module 11 is further used to determine the software image package and the extended image package corresponding to each service image based on the index information of the image package in the update image package, wherein the index information represents the correspondence between the image package and the service image.
[0067] In one embodiment, the combining module 11 is further used to: based on the hierarchical relationship of the image packages in the update image package, combine the software image package and the extended image package corresponding to each business image with the fixed image package in the order indicated by the hierarchical relationship to obtain the deployed business image.
[0068] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0069] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0070] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0071] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0072] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a business image hierarchical deployment method. For example, in some embodiments, a business image hierarchical deployment method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of a business image hierarchical deployment method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a business image hierarchical deployment method in any other appropriate manner (e.g., by means of firmware).
[0073] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0074] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0075] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0076] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0077] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0078] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0079] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0080] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0081] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for hierarchical deployment of service images, comprising: Determine an update image package of the business image, wherein the update image package includes at least an extension image package, wherein the extension image package represents an extension operation on the environment image package, and the extension image package and the environment image package are used to support an environment required for the operation of the business software; The extended image package is combined with a fixed image package to obtain a deployed business image, wherein the fixed image package includes the environment image package and a basic image package, and the basic image package is used to support the environment required for the business software installation.
2. According to the method of claim 1, the update image package also includes a software image package, and the update image package of the business image is determined, comprising: Generate a software image package based on the updated business software, where the business software is an application that implements business functions; Based on the extension operation of the environment image package, generating the extended image package; The software image package and the extended image package are combined to obtain the update image package.
3. The method according to claim 2, wherein the expansion operation is selected from at least one of the following combinations: Add operations, delete operations, modify operations, version limit operations, and version rollback operations.
4. According to the method of claim 1, the step of determining the update image package of the service image comprises: Merging the update image packages of all the business images; De-duplicate the merged update image package.
5. The method according to claim 1, wherein combining the extended image package with the fixed image package comprises: Identify the extended image package corresponding to each business image from the update image package; The extended image package corresponding to each business image is combined with the fixed image package to obtain the deployed business image.
6. The method according to claim 2, wherein combining the extended image package with the fixed image package comprises: Identify the software image package and the extension image package corresponding to each business image from the update image package; The software image package and the extended image package corresponding to each business image are combined with the fixed image package to obtain the deployed business image.
7. The method according to claim 6, wherein the step of identifying the software image package and the extended image package corresponding to each service image from the update image package comprises: Based on the index information of the mirror package in the update mirror package, the software mirror package and the extended mirror package corresponding to each business mirror are determined, and the index information represents the corresponding relationship between the mirror package and the business mirror.
8. The method according to claim 6, wherein the step of combining the software image package and the extended image package corresponding to each service image with the fixed image package comprises: Based on the hierarchical relationship of the image packages in the update image package, the software image package and the extended image package corresponding to each business image are combined with the fixed image package in the order indicated by the hierarchical relationship to obtain a deployed business image.
9. A service image hierarchical deployment device, comprising: A determination module, used to determine an update image package of a business image, wherein the update image package includes at least an extension image package, wherein the extension image package represents an extension operation on the environment image package, and the extension image package and the environment image package are used to support the environment required for the operation of the business software; The combination module is used to combine the extended image package with the fixed image package to obtain the deployed business image, wherein the fixed image package includes the environment image package and the basic image package, and the basic image package is used to support the environment required for the business software installation.
10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.