Management method and device for application
By creating new code branches and initializing application TAG after the application is released, combining application deployment requests from user equipment, building multi-application merged image packages and generating executable configuration scripts, the complex problems of application version management and configuration resource management in the existing technology are solved, and efficient application deployment and maintenance costs are achieved.
Patent Information
- Application Number
- CN202311413820.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, application version management and configuration resource management are complex, resulting in a large amount of labor costs and high maintenance costs in the deployment process.
After the application is released, a new code branch is created based on the application's code branch, the initialization configuration information is pulled and the initialization application TAG is created, and the initialization application TAG and configuration information are determined based on the application deployment request of the user equipment, the multi-application merged image package is built, and executable configuration scripts are generated to realize application deployment.
It reduces the complexity of application deployment, reduces the consumption of network resources, improves download efficiency, and reduces the later maintenance costs.
Smart Images

Figure CN119902776A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a technology for application management. Background Art
[0002] In the prior art, the management of deployed application versions and corresponding configuration resource management is relatively complex. Different users purchase different resources, and the resource configuration and address in different environments are also different, which consumes a lot of manpower costs for deployment and inspection. Therefore, how to reduce the complexity of application deployment and reduce maintenance costs has become an urgent problem to be solved. Summary of the invention
[0003] The purpose of this application is to provide a management method and device for applications.
[0004] According to one aspect of the present application, a method for managing an application is provided, wherein the method comprises:
[0005] After the application is released, a new code branch is created based on the code branch corresponding to the application, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG;
[0006] When an application deployment request sent by a user device is obtained, a corresponding initialization application TAG and initialization configuration information of the application are determined, wherein the application deployment request is used to request deployment of multiple applications;
[0007] Based on the initialization application tags corresponding to multiple applications and the initialization configuration information of the applications, a multi-application merged image package is constructed;
[0008] An executable configuration script is generated in the cloud environment where the user is located based on the multi-application merged image package to implement deployment of the application requested for the application deployment.
[0009] Optionally, before creating a new code branch based on the code branch corresponding to the application, the method further includes:
[0010] Determine whether the application is in a list of independently deployed applications;
[0011] Wherein, creating a new code branch based on the code branch corresponding to the application includes:
[0012] When in the list of independently deployed applications, create a new code branch based on the code branch corresponding to the application.
[0013] Furthermore, the method further comprises:
[0014] Compare the latest full configuration information of the application with the initial configuration information to determine the newly added configuration information;
[0015] A new executable configuration script is generated based on the new configuration information to implement update deployment of the application.
[0016] Further, wherein the pulling of the initialization configuration information of the application in the new code branch includes:
[0017] Pull the application's apollo configuration information and the configuration information of mq service management and Task task management and overwrite the corresponding configuration script file content.
[0018] Optionally, the application deployment request includes function module attribute information, wherein each function module includes multiple applications, and the constructing of a multi-application merged image package based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications includes:
[0019] Based on the initialization application TAGs corresponding to multiple applications in the same functional module and the initialization configuration information of the applications, a multi-application merged image package is constructed.
[0020] Optionally, the method further comprises:
[0021] The multi-application merged image package is sent to the image warehouse for storage, wherein the generating an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package to implement the deployment of the application requested by the application includes: generating an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package obtained from the image warehouse.
[0022] According to another aspect of the present application, there is also provided a management device for an application, the device comprising:
[0023] A creation unit, configured to create a new code branch based on a code branch corresponding to the application after the application is released, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG;
[0024] A request unit, configured to determine a corresponding initialization application TAG and initialization configuration information of the application when an application deployment request sent by a user device is obtained, wherein the application deployment request is used to request deployment of multiple applications;
[0025] A merging unit, used to construct a multi-application merged image package based on the initialization application tags corresponding to the multiple applications and the initialization configuration information of the applications;
[0026] The deployment unit is used to generate an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package, so as to implement the deployment of the application requested by the application deployment.
[0027] According to another aspect of the present application, a computer-readable medium is provided, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the operations of the aforementioned method.
[0028] Compared with the prior art, the present application creates a new code branch based on the code branch corresponding to the application after the application is released, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG, and when an application deployment request sent by the user device is obtained, the corresponding initialization application TAG and the initialization configuration information of the application are determined, wherein the application deployment request is used to request the deployment of multiple applications, and then based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications, a multi-application merged image package is constructed, and based on the multi-application merged image package, an executable configuration script is generated in the user's cloud environment to implement the deployment of the application requested by the application deployment. This method improves download efficiency, reduces the consumption of network resources, and reduces the complexity of deployment and the subsequent maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0030] Figure 1 A flow chart of a management method for an application according to one aspect of the present application is shown;
[0031] Figure 2 A schematic diagram of an initialization process for application management according to a preferred embodiment of the present application is shown;
[0032] Figure 3 A flow chart of a management method for applications according to a preferred embodiment of the present application is shown;
[0033] Figure 4 A schematic diagram of a management device for applications according to another aspect of the present application is shown.
[0034] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0035] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0036] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.
[0037] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0038] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0039] In order to further explain the technical means adopted by the present application and the effects achieved, the technical solution of the present application is clearly and completely described below in combination with the accompanying drawings and preferred embodiments.
[0040] Figure 1 A flow chart of a management method for an application provided in one aspect of the present application is shown, the method comprising the following steps:
[0041] S11: After the application is released, a new code branch is created based on the code branch corresponding to the application, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG;
[0042] S12: upon obtaining an application deployment request sent by the user equipment, determining a corresponding initialization application TAG and initialization configuration information of the application, wherein the application deployment request is used to request deployment of multiple applications;
[0043] S13 builds a multi-application merged image package based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications;
[0044] S14 generates an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package, so as to implement deployment of the application requested for application deployment.
[0045] In this embodiment, the method can be executed on the own cloud, and the user device obtains the corresponding application by sending an application deployment request to the own cloud. Specifically, in step S11, when the application is published on the publishing platform, the own cloud can be notified synchronously, so that it can create a new code branch based on the code branch corresponding to the application. Specifically, the application published by the publishing platform can be backed up by snapshot backup. Here, the new code branch includes the code branch corresponding to the application, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG. Here, the TAG is used to identify the application, including but not limited to the application version, application configuration information, etc. Here, the initialization configuration information includes the configuration information of the application itself and the configuration information of service governance.
[0046] Preferably, the pulling of the initialization configuration information of the application in the new code branch includes: pulling the configuration information of apollo and the configuration information of mq service management and Task management of the application and overwriting the corresponding configuration script file content. Figure 2 As shown, a schematic diagram of an initialization process for application management is shown. Among them, pulling the meta information of the application corresponds to the initialization configuration information of the application. This process belongs to the preparation stage in the self-owned cloud before the user can download the application.
[0047] Preferably, before creating a new code branch based on the code branch corresponding to the application, the method further comprises: determining whether the application is in a list of independently deployed applications;
[0048] Wherein, creating a new code branch based on the code branch corresponding to the application includes:
[0049] When in the independently deployed application list, a new code branch is created based on the code branch corresponding to the application. Here, the independently deployed application list includes applications that can be externally downloaded, that is, applications that can be directly downloaded by external users, including applications that can be downloaded separately or can be downloaded in combination. Here, the independently deployed application list can be modified based on actual conditions, including addition or deletion.
[0050] Continuing with this embodiment, in step S12, when the user needs to install multiple applications at the same time, an application deployment request can be sent to the own cloud. Accordingly, when the own cloud obtains the application deployment request sent by the user device, it determines the corresponding initialization application TAG and the initialization configuration information of the application.
[0051] Continuing in this embodiment, in step S13, a multi-application merged image package is constructed based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications. Here, the image package is an image package of code, including compiled code, and the merged image package is determined by merging the compiled codes of multiple applications. In this way, by constructing a merged image package from multiple applications, the common parts between multiple applications can be merged, thereby saving the user's network resources compared to downloading each application separately, reducing the resource consumption cost of installation, and better meeting user needs.
[0052] Continuing in this embodiment, in step S14, an executable configuration script is generated in the cloud environment where the user is located based on the multi-application merged image package to implement the deployment of the application requested for the application. Here, the executable configuration script enables the user to install the application.
[0053] Preferably, the application deployment request includes function module attribute information, wherein each function module includes multiple applications, and step S13 includes:
[0054] Based on the initialization application TAGs corresponding to multiple applications in the same functional module and the initialization configuration information of the applications, a multi-application merged image package is constructed. In this embodiment, multiple applications can be classified into one functional module, such as a commodity module or an order module. Each functional module may include multiple applications. By providing a list of functional modules to the user, the user can select a certain functional module to achieve simultaneous downloading of multiple applications in the functional module. Specifically, a multi-application merged image package for each functional module can be pre-constructed in the own cloud and an executable configuration script can be pre-generated in the cloud environment where the user is located. When the user has a download request, the request can be responded to in a timely manner, and the simultaneous download of multiple applications can be achieved, thereby improving download efficiency.
[0055] In a preferred embodiment, even if the function module list is not provided to the user in advance, the user can independently select a combination of multiple applications according to his or her needs, and then download the multiple applications at the same time. This method increases the reusability of the configuration and saves network resources.
[0056] Preferably, the method further comprises:
[0057] The multi-application merged image package is sent to the image warehouse for storage, wherein the step S14 includes: generating an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package obtained from the image warehouse. In this embodiment, the multi-application merged image package is not constructed in real time, but is pre-constructed and stored in the image warehouse, which improves download efficiency.
[0058] Figure 3 A flowchart of a management method for applications according to a preferred embodiment of the present application is shown. In this embodiment, steps S31, S32, S33, S34 and Figure 1 Steps S11, S12, S13, and S14 in the embodiment are the same or partially the same, and will not be repeated here. Preferably, in this embodiment, the method also includes: S35 comparing the latest full configuration information of the application with the initialization configuration information to determine the newly added configuration information; S36 generating a newly added executable configuration script based on the newly added configuration information to implement the update deployment of the application. In this embodiment, when there is a version update of the application, the latest full configuration information of the application can be compared with the initialization configuration information, so that the newly added configuration information can be determined, and the user can download the updated version of the application. Therefore, in the present application, the deployment of the application also supports subsequent update operations, especially for the situation where there are many applications installed and the consumption of resources is relatively large, the update operation can save resource consumption.
[0059] Compared with the prior art, the present application creates a new code branch based on the code branch corresponding to the application after the application is released, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG, and when an application deployment request sent by the user device is obtained, the corresponding initialization application TAG and the initialization configuration information of the application are determined, wherein the application deployment request is used to request the deployment of multiple applications, and then based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications, a multi-application merged image package is constructed, and based on the multi-application merged image package, an executable configuration script is generated in the user's cloud environment to implement the deployment of the application requested by the application deployment. This method improves download efficiency, reduces the consumption of network resources, and reduces the complexity of deployment and the subsequent maintenance costs.
[0060] Figure 4 A schematic diagram of a management device for applications according to another aspect of the present application is shown.
[0061] The device 1 comprises:
[0062] The creation unit 11 is used to create a new code branch based on the code branch corresponding to the application after the application is released, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG;
[0063] The request unit 12 is used to determine the corresponding initialization application TAG and the initialization configuration information of the application when obtaining the application deployment request sent by the user equipment, wherein the application deployment request is used to request the deployment of multiple applications;
[0064] A merging unit 13, configured to construct a multi-application merged image package based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications;
[0065] The deployment unit 14 is used to generate an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package, so as to implement the deployment of the application requested by the application deployment.
[0066] In addition, an embodiment of the present application also provides a computer-readable medium on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the aforementioned method.
[0067] The embodiment of the present application further provides a management device for an application, wherein the device includes:
[0068] one or more processors; and
[0069] A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the aforementioned method.
[0070] For example, when the computer-readable instructions are executed, the one or more processors: after the application is released, create a new code branch based on the code branch corresponding to the application, so as to pull the initialization configuration information of the application within the new code branch and create an initialization application TAG; when an application deployment request sent by a user device is obtained, determine the corresponding initialization application TAG and the initialization configuration information of the application, wherein the application deployment request is used to request the deployment of multiple applications; based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications, construct a multi-application merged image package; based on the multi-application merged image package, generate an executable configuration script in the user's cloud environment to implement the deployment of the application requested by the application deployment.
[0071] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A management method for an application, wherein: The method includes: After the application is released, a new code branch is created based on the code branch corresponding to the application, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG; When an application deployment request sent by a user device is obtained, a corresponding initialization application TAG and initialization configuration information of the application are determined, wherein the application deployment request is used to request deployment of multiple applications; Based on the initialization application tags corresponding to multiple applications and the initialization configuration information of the applications, a multi-application merged image package is constructed; An executable configuration script is generated in the cloud environment where the user is located based on the multi-application merged image package to implement deployment of the application requested for the application deployment.
2. The method according to claim 1, wherein: Before creating a new code branch based on the code branch corresponding to the application, the method further includes: Determine whether the application is in a list of independently deployed applications; Wherein, creating a new code branch based on the code branch corresponding to the application includes: When in the list of independently deployed applications, create a new code branch based on the code branch corresponding to the application.
3. The method according to claim 1, wherein: The method further comprises: Compare the latest full configuration information of the application with the initial configuration information to determine the newly added configuration information; A new executable configuration script is generated based on the new configuration information to implement update deployment of the application.
4. The method according to claim 1, wherein: Pulling the initialization configuration information of the application in the new code branch includes: Pull the application's apollo configuration information and the configuration information of mq service management and Task task management and overwrite the corresponding configuration script file content.
5. The method according to claim 1, wherein: The application deployment request includes function module attribute information, wherein each function module includes multiple applications, and the construction of a multi-application merged image package based on the initialization application TAGs corresponding to the multiple applications and the initialization configuration information of the applications includes: Based on the initialization application TAGs corresponding to multiple applications in the same functional module and the initialization configuration information of the applications, a multi-application merged image package is constructed.
6. The method according to claim 1, wherein: The method further comprises: The multi-application merged image package is sent to an image warehouse for storage, wherein the generating an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package includes: generating an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package obtained from the image warehouse.
7. A management device for an application, the device comprising: A creation unit, configured to create a new code branch based on a code branch corresponding to the application after the application is released, so as to pull the initialization configuration information of the application in the new code branch and create an initialization application TAG; A request unit, configured to determine a corresponding initialization application TAG and initialization configuration information of the application when an application deployment request sent by a user device is obtained, wherein the application deployment request is used to request deployment of multiple applications; A merging unit, used to construct a multi-application merged image package based on the initialization application tags corresponding to the multiple applications and the initialization configuration information of the applications; The deployment unit is used to generate an executable configuration script in the cloud environment where the user is located based on the multi-application merged image package, so as to implement the deployment of the application requested by the application deployment.
8. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 6.
9. A management device for an application, wherein: The equipment includes: one or more processors; and A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the method as claimed in any one of claims 1 to 6.