Application construction method, device, computer storage medium and electronic device

By automatically obtaining and updating the build package and parameter table of the source cloud platform, efficient application construction on the target cloud platform environment is achieved, low efficiency and error problems caused by manual operations are solved, and construction stability and efficiency are improved.

CN115421776BActive Publication Date: 2025-08-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211085365.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2025-08-26
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

In the prior art, relying on manual operations during the construction of the platform environment leads to low construction efficiency, and parameter synchronization and modification are prone to errors, which is a large workload.

Method used

By automatically obtaining the build package and parameter table of the source cloud platform environment, determining the parameter table of the target application to be updated, and building applications on the target cloud platform environment based on this data, and using the automated process to update the parameter table and construction package to achieve automated construction.

Benefits of technology

Improve construction efficiency, reduce errors and workload caused by manual operations, and ensure the stability and efficiency of construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421776B_ABST
    Figure CN115421776B_ABST
Patent Text Reader

Abstract

The present invention discloses an application building method, device, computer storage medium, and electronic device. Relating to the field of cloud computing, the method comprises: obtaining multiple build packages and multiple parameter tables for building applications on a source cloud platform environment; determining at least one target application to be updated to be built on a target cloud platform environment; determining at least one target parameter table corresponding to each target application to be updated from multiple parameter tables; updating preset target parameters to the target parameter table to obtain an updated target parameter table; and building the application on the target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table. The present invention solves the technical problem of low building efficiency caused by relying on manual labor to build applications in related environments in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing, and in particular to an application building method, device, computer storage medium and electronic equipment. Background Art

[0002] After completing the basic environment setup (such as VCDS cloning and VAIM environment replication) in the current platform environment, most parameter values ​​remain the same as in the source environment before cloning, requiring manual version synchronization. For example, for the environment for applications to be built in September, the environment builders need to manually synchronize the August versions of the applications in the August environment to the September environment for the applications to be built. After version synchronization, the relevant parameters need to be manually modified based on the environment announcements for each application. A single operations and maintenance staff member is typically responsible for building more than ten applications, resulting in low build efficiency.

[0003] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0004] Embodiments of the present invention provide an application building method, device, computer storage medium, and electronic device to at least solve the technical problem of low building efficiency caused by relying on manual construction of applications in related environments in the prior art.

[0005] According to one aspect of an embodiment of the present invention, there is provided an application building method, comprising: obtaining multiple build packages and multiple parameter tables for building applications on a source cloud platform environment, wherein each application corresponds to at least one build package, each build package includes at least one target template, and the target template consists of multiple configuration files, the configuration files are files required for running the applications, and the parameter tables record parameters required when running the configuration files; determining at least one target application to be updated to be built on a target cloud platform environment, wherein the source cloud platform environment is at least used to run at least one target application to be updated; determining at least one target parameter table corresponding to each target application to be updated from multiple parameter tables; updating preset target parameters to the target parameter table to obtain an updated target parameter table; building the application on the target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table, wherein the original parameter table is a parameter table among the multiple parameter tables other than at least one target parameter table.

[0006] Furthermore, the application building method also includes: determining multiple target templates running on the source cloud platform environment; determining the identifier and template information of the construction package corresponding to each target template; determining multiple construction packages based on the identifier of the construction package corresponding to each target template; and determining multiple parameter tables based on the template information of each target template.

[0007] Furthermore, the application building method also includes: determining a first application to be updated, wherein the first application to be updated is an application to be built on a target cloud platform environment; based on the business type corresponding to the first application to be updated, determining at least one second application to be updated that has an associated relationship with the first application to be updated, wherein the second application to be updated is an application on a source cloud platform environment; determining the first application to be updated and / or the second application to be updated as the target application to be updated.

[0008] Furthermore, the application building method also includes: after building the application on the target cloud platform environment based on multiple build packages, the original parameter table and the updated target parameter table, determining at least one server cluster for deploying the source cloud platform environment; determining a first target container from at least one server cluster, wherein the first target container is used to run at least one target template in the multiple build packages, and the first target container corresponds one-to-one to the target template; running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template.

[0009] Furthermore, the application building method also includes: before running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, determining the target dynamic variables required for running the application on the source cloud platform environment; updating the target dynamic variables based on the preset target values ​​to obtain updated target dynamic variables; determining a configuration platform for managing the target dynamic variables; and uploading the updated target dynamic variables to the configuration platform.

[0010] Furthermore, the application building method also includes: before running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, determining the database used to store application data on the target cloud platform environment; determining the data transmission rules between the application on the target cloud platform environment and the database; updating the data transmission rules based on the preset target information to obtain the updated data transmission rules; and uploading the updated data transmission rules to the database.

[0011] Furthermore, the application building method also includes: after running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, detecting the startup status of the second target container, wherein the second target container is determined based on the container information of the first target container, and the second target container is used to run the application on the target cloud platform environment; if it is detected that the second target container is successfully started, detecting the running status of the application corresponding to the second target container; and determining the building result of the application on the target cloud platform environment based on the running status.

[0012] According to another aspect of an embodiment of the present invention, an application building device is also provided, including an acquisition module for acquiring multiple construction packages and multiple parameter tables for building applications on a source cloud platform environment, wherein each application corresponds to at least one construction package, each construction package includes at least one target template, and the target template is composed of multiple configuration files, the configuration files are files required for running the applications, and the parameter tables record the parameters required when running the configuration files; a first determination module for determining at least one target application to be updated to be built on a target cloud platform environment, wherein the source cloud platform environment is at least used to run at least one target application to be updated; a second determination module for determining at least one target parameter table corresponding to each target application to be updated from multiple parameter tables; an update module for updating preset target parameters to the target parameter table to obtain an updated target parameter table; a building module for building an application on a target cloud platform environment based on multiple construction packages, an original parameter table, and an updated target parameter table, wherein the original parameter table is a parameter table among multiple parameter tables other than at least one target parameter table.

[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned application building method when running.

[0014] According to another aspect of an embodiment of the present invention, an electronic device is also provided, which includes one or more processors; a memory for storing one or more programs, which enables the one or more processors to run the programs when the one or more programs are executed by the one or more processors, wherein the programs are configured to execute the above-mentioned application building method when running.

[0015] In an embodiment of the present invention, a method is adopted in which the relevant data for building an application on a source cloud platform environment is automatically obtained and the relevant data is modified to build an application on a target cloud platform environment based on the modified data. The method is performed by obtaining multiple build packages and multiple parameter tables for building an application on the source cloud platform environment, and then determining at least one target application to be updated on the target cloud platform environment. Then, at least one target parameter table corresponding to each target application to be updated is determined from the multiple parameter tables, and the preset target parameters are updated to the target parameter table to obtain an updated target parameter table, thereby building an application on the target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table. In this method, each application corresponds to at least one build package, each build package includes at least one target template, and the target template is composed of multiple configuration files. The configuration file is a file required when running the application, and the parameter table records the parameters required when running the configuration file. The source cloud platform environment is at least used to run at least one target application to be updated, and the original parameter table is a parameter table in the multiple parameter tables other than at least one target parameter table.

[0016] In the above process, by obtaining multiple build packages and multiple parameter tables for building applications on the source cloud platform environment and determining at least one target parameter table corresponding to the target application to be updated, the high cost of manually determining the parameter table corresponding to the target application to be updated from a large amount of data is avoided, thereby improving work efficiency. Furthermore, by automatically updating the target parameter table based on preset target parameters, the problems of manual modification of the target parameter table, which are prone to errors, omissions, and a large workload, are avoided. This allows for greater stability and efficiency when building applications on the target cloud platform environment based on multiple build packages, original parameter tables, and updated target parameter tables.

[0017] It can be seen that the solution provided by this application achieves the purpose of automatically obtaining relevant data for building applications on the source cloud platform environment, and modifying the relevant data to build applications on the target cloud platform environment based on the modified data, thereby achieving the technical effect of improving building efficiency, and thus solving the technical problem of low building efficiency caused by relying on manual labor to build applications in related environments in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a schematic diagram of an optional application building method according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of an optional application building method according to an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of an optional application building method according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of an optional application building system according to an embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of an optional application building device according to an embodiment of the present invention;

[0024] Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0028] Example 1

[0029] According to an embodiment of the present invention, an embodiment of an application building method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] Figure 1 is a schematic diagram of an optional application building method according to an embodiment of the present invention, such as Figure 1 As shown, the method includes the following steps:

[0031] Step S101, obtain multiple build packages and multiple parameter tables for building applications on the source cloud platform environment, where each application corresponds to at least one build package, each build package includes at least one target template, and the target template is composed of multiple configuration files. The configuration file is the file required to run the application, and the parameter table records the parameters required when running the configuration file.

[0032] In step S101, multiple build packages and multiple parameter tables for building applications on a source cloud platform environment can be obtained through electronic devices, application systems, servers, and other devices. In the present application, the aforementioned multiple build packages and multiple parameter tables are obtained through an application building system. In the present application, the aforementioned source cloud platform environment can specifically be a Platform as a Service (PAAS) environment. PAAS is a deployment platform after an application is put on the cloud, and the aforementioned parameter table can be an XLS (spreadsheet, Microsoft Excel) file that records PAAS hierarchical parameter information.

[0033] Optionally, first explain the relationship between the cloud platform environment, application, build package, target template, configuration file and parameter table. Specifically, multiple applications can be built on the cloud platform environment, each application can correspond to multiple build packages, each build package can include multiple target templates, and each target template can be composed of multiple configuration files. The cloud platform environment can be deployed on a server cluster, and the servers in the server cluster can be provided with multiple containers, each container corresponding to a target template one-to-one. By running all target templates corresponding to a certain application based on multiple containers, the application can be run. And in the process of running the target template, each container needs to determine the parameters required to run the configuration file in the target template based on the aforementioned parameter table.

[0034] Specifically, the application building system can first log in to the source cloud platform environment based on the preset first account information, so that the source cloud platform environment can determine the operating authority of the application building system. Furthermore, the application building system can obtain a record list of multiple build packages and multiple parameter tables in the source cloud platform environment from the preset storage area, thereby obtaining the aforementioned multiple build packages and multiple parameter tables from the source cloud platform environment based on the record list. The application building system can also determine the multiple build packages and multiple parameter tables based on the relevant information of the configuration file running on the source cloud platform environment, thereby obtaining them. Among them, the aforementioned preset storage area can be a database used for the source cloud platform environment, or a database associated with the source cloud platform environment, or other storage areas. The aforementioned application building system can be implemented based on Selenium Web Driver, which is a Web-based automated testing framework.

[0035] Furthermore, the application building system logs into the target cloud platform environment based on the preset second account information, so that the target cloud platform environment can determine the operating authority of the application building system, and import the obtained multiple build packages and multiple parameter tables into the target cloud platform environment. Among them, the application built on the source cloud platform environment and the application to be built on the target cloud platform environment have at least some overlapping applications. The source cloud platform environment and the application built on the source cloud platform environment can be the historical versions corresponding to the target cloud platform environment and the application built on the target cloud platform environment. For example, the source platform environment is the environment and application used by the current organization in July, and the target cloud platform environment is the environment and application that the current organization needs to use in August. In layman's terms, the target cloud platform environment and its applications can be upgraded versions of the source platform environment and its applications.

[0036] It should be noted that by obtaining multiple build packages and multiple parameter tables for building applications on the source cloud platform environment, it is possible to build applications more efficiently on the target cloud platform environment, avoiding the high work cost caused by manually obtaining a large number of files.

[0037] Step S102 : determining at least one target application to be updated to be built on the target cloud platform environment, wherein the source cloud platform environment is at least used to run the at least one target application to be updated.

[0038] In step S102, the application building system can select the applications to be updated (i.e., the aforementioned target applications to be updated) from the applications synchronized from the source cloud platform environment to the target cloud platform environment based on the requirements pre-set by relevant staff. Optionally, the application building system can also determine the applications that have an associated relationship with the aforementioned selected applications from the applications synchronized from the source cloud platform environment to the target cloud platform environment, and use these applications as target applications to be updated as well.

[0039] Step S103: determining at least one target parameter table corresponding to each target application to be updated from the multiple parameter tables.

[0040] In step S103, since the parameters required for running an application will also change when the application version changes, the application building system can determine at least one target parameter table corresponding to each target application to be updated based on the aforementioned record list of multiple build packages and multiple parameter tables in the active cloud platform environment. Optionally, the application building system can also determine at least one target parameter table corresponding to each target application to be updated based on relevant information of the configuration file corresponding to the target application to be updated.

[0041] It should be noted that by determining at least one target parameter table corresponding to the target application to be updated, relevant parameters for running the target application to be updated can be modified, thereby achieving effective update of the target application to be updated.

[0042] Step S104: updating the preset target parameters to the target parameter table to obtain an updated target parameter table.

[0043] In step S104, after determining at least one target parameter table corresponding to each target application to be updated, the application building system can obtain the preset target parameters based on the preset adjustment rules. Optionally, the application building system can also obtain the new version information of the target application to be updated from the relevant authoritative website or the storage area shared by the current organization, thereby obtaining the preset target parameters based on the new version information. Among them, the aforementioned preset parameters may include host interface parameters, version parameters, etc. Among them, the aforementioned adjustment rules may vary based on different applications, so as to facilitate improving the applicability of this application.

[0044] Furthermore, after obtaining the preset target parameters, the application building system may parse the target parameter table and replace the aforementioned target parameters into the parsed target parameter table, thereby updating the target parameter table.

[0045] It should be noted that by automatically updating the target parameter table based on preset target parameters, the problems of easy errors, omissions and large workload caused by manual modification of the target parameter table are avoided, thereby further improving the work efficiency of building applications.

[0046] Step S105 , building an application on a target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table, wherein the original parameter table is a parameter table among the multiple parameter tables except for at least one target parameter table.

[0047] In step S105, the application building system can import the updated target parameter table into the target cloud platform environment, thereby building the application on the target cloud platform environment based on the aforementioned multiple construction packages, the unmodified parameter table (that is, the aforementioned original parameter table) and the updated target parameter table.

[0048] Based on the scheme defined in steps S101 to S105 above, it can be seen that in an embodiment of the present invention, the method of automatically obtaining relevant data for building an application on the source cloud platform environment and modifying the relevant data to build an application on the target cloud platform environment based on the modified data is adopted. By obtaining multiple build packages and multiple parameter tables for building an application on the source cloud platform environment, at least one target application to be updated on the target cloud platform environment is determined, and then at least one target parameter table corresponding to each target application to be updated is determined from the multiple parameter tables, and the preset target parameters are updated to the target parameter table to obtain an updated target parameter table, thereby building an application on the target cloud platform environment based on the multiple build packages, the original parameter table and the updated target parameter table. In this case, each application corresponds to at least one build package, each build package includes at least one target template, and the target template consists of multiple configuration files, the configuration file is a file required when running the application, the parameter table records the parameters required when running the configuration file, the source cloud platform environment is used to run at least one target application to be updated, and the original parameter table is a parameter table in the multiple parameter tables other than at least one target parameter table.

[0049] It is easy to notice that in the above process, by obtaining multiple build packages and multiple parameter tables for building applications on the source cloud platform environment, and determining at least one target parameter table corresponding to the target application to be updated, the high cost of manually determining the parameter table corresponding to the target application to be updated from a large amount of data is avoided, thereby improving work efficiency. Furthermore, by automatically updating the target parameter table based on preset target parameters, the problems of easy mistakes, omissions, and large workload caused by manual modification of the target parameter table are avoided, thereby achieving better construction stability and higher construction efficiency when building applications on the target cloud platform environment based on multiple build packages, original parameter tables, and updated target parameter tables.

[0050] It can be seen that the solution provided by this application achieves the purpose of automatically obtaining relevant data for building applications on the source cloud platform environment, and modifying the relevant data to build applications on the target cloud platform environment based on the modified data, thereby achieving the technical effect of improving building efficiency, and thus solving the technical problem of low building efficiency caused by relying on manual labor to build applications in related environments in the existing technology.

[0051] In an optional embodiment, in the process of obtaining multiple build packages and multiple parameter tables for building an application on a source cloud platform environment, the application building system can determine multiple target templates running on the source cloud platform environment, and then determine the identifier and template information of the build package corresponding to each target template, thereby determining multiple build packages based on the identifier of the build package corresponding to each target template, and determining multiple parameter tables based on the template information of each target template.

[0052] Optionally, the application building system can first determine multiple target templates running on the source cloud platform environment, and then obtain the correspondence between each target template and the build package version number (i.e., the aforementioned build package identifier) ​​from the aforementioned preset storage area, thereby determining the identifier of the build package corresponding to each target template. Furthermore, the application building system can also obtain template information from the source cloud platform environment through crawler technology, so that based on the template information, it can determine the parameter table required to run the target template, thereby achieving the acquisition of the parameter table.

[0053] It should be noted that by determining the construction package and parameter table to be obtained based on the relevant information of the target template, it is convenient to accurately obtain the construction package and parameter table.

[0054] In an optional embodiment, in the process of determining at least one target application to be updated to be built on the target cloud platform environment, such as Figure 2 As shown, the application building system can perform the following steps:

[0055] Step S201: A first application to be updated may be determined, wherein the first application to be updated is an application to be built on a target cloud platform environment.

[0056] In step S201, the application building system can determine the application to be built on the target cloud platform environment (i.e., the first reference to be updated mentioned above) based on the requirements pre-set by relevant staff. The application can be an application that has been previously built on the source cloud platform environment, or it can be an application that has not been built on the source cloud platform environment before and needs to be added on the target cloud platform.

[0057] Step S202: Based on the business type corresponding to the first application to be updated, determine at least one second application to be updated that is associated with the first application to be updated, wherein the second application to be updated is an application on the source cloud platform environment.

[0058] In step S202 , the application building system may determine, from the applications built on the source cloud platform, an application that has a business association with the aforementioned application (ie, a second application to be updated).

[0059] Step S203: Determine the first application to be updated and / or the second application to be updated as a target application to be updated.

[0060] In step S203, if the first application to be updated has been previously built on the source cloud platform environment, the application building system may determine both the first application to be updated and the second application to be updated as target applications to be updated. Alternatively, the application building system may determine only the first application to be updated as the target application to be updated. If the first application to be updated has not been previously built on the source cloud platform environment, the application building system may determine only the second application to be updated as the target application to be updated.

[0061] It should be noted that by updating the applications associated with a certain application when it needs to be updated, the problem of its business-related applications not being able to cooperate effectively when only a single application is updated is avoided, thereby ensuring the normal operation of each application after the application is built in the target cloud platform environment.

[0062] In an optional embodiment, after building an application on the target cloud platform environment based on multiple build packages, the original parameter table and the updated target parameter table, as shown in FIG. Figure 3 As shown, the application building system can perform the following steps:

[0063] Step S301: Determine at least one server cluster for deploying a source cloud platform environment.

[0064] Optionally, applications launched in the same cloud platform environment may be deployed on different server clusters, and the versions of the target templates being run may also be different. For example, if a target template has never been updated since May, the template versions of the target template used in the cloud platform environment in June, the cloud platform environment in July, and the cloud platform environment in August are all the May versions. If another target template has never been updated since July, the template version of the target template used in the cloud platform environment in August is the July version. Based on the above principles, after the setup is completed on the target cloud platform environment, the application setup system can determine at least one server cluster for deploying the source cloud platform environment, and determine the correspondence between each application and the server cluster.

[0065] Step S302: determining a first target container from at least one server cluster, wherein the first target container is used to run at least one target template in the plurality of build packages, and the first target container corresponds to the target template in a one-to-one manner.

[0066] In step S302, the application building system can determine the container (i.e., the first target container) used to run the application on the source cloud platform environment in each server in at least one server cluster to determine the correspondence between the application, server cluster, and container.

[0067] Step S303: running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template.

[0068] In step S303, the application building system can also determine the target version of the target template running in each first target container, thereby determining the startup information of each first target container based on the aforementioned correspondence between the first target container and the server cluster (i.e., the aforementioned container information) and the template version of the target template. Furthermore, based on the aforementioned startup information, the same container as the source cloud platform environment (i.e., the second target container) is started in the target cloud platform environment, thereby running the application on the target cloud platform environment through the second target container.

[0069] It should be noted that by determining the correspondence between the first target container used to run the application on the source cloud platform environment and the cluster, as well as the version information of each target template, the startup information of each first target container is determined, thereby facilitating the startup of the application on the target cloud platform environment.

[0070] In an optional embodiment, since in the process of running the application on the target cloud platform environment, it is often necessary to rely on other platforms or environments to run normally, therefore, before running the aforementioned application, the environment or platform associated with the target cloud platform environment can be synchronously changed. Specifically, the application building model can determine the target dynamic variables required when running the application on the source cloud platform environment. The target dynamic variables can be dynamic variables required for application building or operation, Apollo variables, etc., wherein the aforementioned Appolo is an open source distributed configuration center. Afterwards, the application building model can update the target dynamic variables based on the preset target values ​​to obtain the updated target dynamic variables, and then upload the updated target dynamic variables to the configuration platform for managing the target dynamic variables. In this application, the configuration platform can be built based on the aforementioned Apollo, and the configuration platform can be used for centralized management of parameters related to the target cloud platform environment.

[0071] In an optional embodiment, before running the application on the target cloud platform environment based on the first target container and the template version of each target template, the application building system can also modify the traditional server environment associated with the target cloud platform environment, wherein the aforementioned traditional server environment is an application environment that is not on the cloud, which requires a traditional virtual server deployment for storing data related to the application on the target cloud platform environment, and the environment can be configured by modifying the text type parameter file and the relevant parameter table. Specifically, the application building system can determine the database for storing data for the application on the target cloud platform environment, which is the aforementioned traditional server environment. Afterwards, the application building system determines the data transmission rules between the application on the target cloud platform environment and the database, wherein the aforementioned data transmission rules can be determined based on the relevant information in FTP (File Transfer Protocol) and JDBC (Java Database Connectivity). Further, the application building system can update the data transmission rules based on the preset target information to obtain the updated data transmission rules, thereby uploading the updated data transmission rules to the database to achieve changes to the traditional server environment.

[0072] It should be noted that by making synchronous changes to the environments or platforms associated with the target cloud platform environment, the connectivity between the environments or platforms is further guaranteed after the application is built on the target cloud platform environment, thereby ensuring that the application on the target cloud platform environment can run normally.

[0073] In an optional embodiment, after running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, the application building system can detect the startup status of the second target container. If it is detected that the second target container is successfully started, the application building system can detect the running status of the application corresponding to the second target container, thereby determining the building result of the application on the target cloud platform environment based on the running status, wherein the second target container is determined based on the container information of the first target container, and the second target container is used to run the application on the target cloud platform environment.

[0074] In an optional embodiment, the application building system can determine the startup information of each first target container based on the container information of the first target container (such as: the correspondence between the first target container and the aforementioned server cluster) and the template version of each target template, and thus determine the startup information of the second target container based on the startup information, wherein the second target container is set in the server cluster used to deploy the target cloud platform environment.

[0075] Furthermore, the application building system can batch start all the second target containers corresponding to a certain application, thereby realizing the operation of the application. During the startup process, the application building system can detect the startup status of the second target container, so that when the second target container cannot be started, it is determined that the result of building the application on the target cloud platform environment is an abnormal build. Further, if it is detected that the second target container is successfully started, the application building system can then detect the running status of the application corresponding to the second target container. Specifically, the application building system can simulate sending a message to the application and determine whether the application can feedback the correct message, thereby realizing the determination of the running status of the application. When the running status indicates that the application is running normally, it is determined that the result of building the application on the target cloud platform environment is a successful build. Conversely, when the running status indicates that the application is running abnormally, it is determined that the result of building the application on the target cloud platform environment is an abnormal build. Optionally, the application building system can also perform health checks and smoke tests on each second target container to determine whether the application on the target cloud platform environment is available. In addition, in the aforementioned process of starting the second target container, the application building system preferably starts each second target container one by one.

[0076] It should be noted that after running the application on the target cloud platform environment, the startup status and running status of the second target container used to run the application are checked to further ensure the construction effect and stability of the application.

[0077] In an optional embodiment, the application building system can also perform checks on environments or platforms that are associated with the target cloud platform environment to solve parameter coverage issues due to version installation, human error, etc., thereby further ensuring environmental connectivity.

[0078] In an optional embodiment, as Figure 4As shown, a system architecture diagram of an optional application building system of the present application is described. Optionally, the application building system may include an access layer, a processing layer and a data layer, wherein the access layer is used to access each configuration platform or link information, and the access layer can be divided into a cloud application platform access module and a traditional application platform access module, wherein the cloud application platform access module is used to exchange information with the aforementioned target cloud platform and configuration platform, and the traditional application platform access module is used to exchange information with the aforementioned database. At the same time, it can also be used to obtain files transmitted from other channels. The processing layer is used to process the data and can feed the processed data back to the access layer. Specifically, the processing layer can be provided with a first interface (XLS interface), a log download interface, a second interface (sftp (Secure File Transfer Protocol, SSH File Transfer Protocol) interface) and a third interface (SQL (Structured Query Language, Structured Query Language) interface). The processing layer is used to perform table processing on the data transmitted by the first interface, perform retrieval and comparison on the data transmitted by the second interface, perform file processing on the data transmitted by the third interface, and perform parameter table processing on the data transmitted by the fourth interface. The aforementioned log download interface can specifically be a configuration platform log download interface. The data layer is used to store the login information of each platform (i.e. Figure 4 ), user permission information, application update information, various environment information, and log comparison information, etc.

[0079] It can be seen that the solution provided by this application achieves the purpose of automatically obtaining relevant data for building applications on the source cloud platform environment, and modifying the relevant data to build applications on the target cloud platform environment based on the modified data, thereby achieving the technical effect of improving building efficiency, and thus solving the technical problem of low building efficiency caused by relying on manual labor to build applications in related environments in the existing technology.

[0080] Example 2

[0081] According to an embodiment of the present invention, an embodiment of an application building device is provided, wherein: Figure 5 is a schematic diagram of an optional application building device according to an embodiment of the present invention, such as Figure 5 As shown, the device includes:

[0082] Acquisition module 501 is used to obtain multiple build packages and multiple parameter tables for building applications on the source cloud platform environment, where each application corresponds to at least one build package, each build package includes at least one target template, and the target template is composed of multiple configuration files. The configuration files are files required to run the application, and the parameter tables record the parameters required to run the configuration files.

[0083] A first determining module 502 is configured to determine at least one target application to be updated to be built on a target cloud platform environment, wherein the source cloud platform environment is configured to run at least one target application to be updated;

[0084] A second determining module 503 is configured to determine at least one target parameter table corresponding to each target application to be updated from the plurality of parameter tables;

[0085] An updating module 504 is configured to update the preset target parameters to the target parameter table to obtain an updated target parameter table;

[0086] The building module 505 is used to build an application on the target cloud platform environment based on multiple building packages, original parameter tables and updated target parameter tables, wherein the original parameter table is a parameter table among the multiple parameter tables except for at least one target parameter table.

[0087] It should be noted that the above-mentioned acquisition module 501, first determination module 502, second determination module 503, update module 504 and construction module 505 correspond to steps S101 to S105 in the above-mentioned embodiment. The examples and application scenarios implemented by the five modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

[0088] Optionally, the acquisition module also includes: a first determination submodule, used to determine multiple target templates running on the source cloud platform environment; a second determination submodule, used to determine the identifier and template information of the construction package corresponding to each target template; a third determination submodule, used to determine multiple construction packages based on the identifier of the construction package corresponding to each target template; and a fourth determination submodule, used to determine multiple parameter tables based on the template information of each target template.

[0089] Optionally, the first determination module also includes: a fifth determination sub-module, used to determine a first application to be updated, wherein the first application to be updated is an application to be built on a target cloud platform environment; a sixth determination sub-module, based on the business type corresponding to the first application to be updated, determines at least one second application to be updated that has an associated relationship with the first application to be updated, wherein the second application to be updated is an application on a source cloud platform environment; a seventh determination sub-module, based on determining that the first application to be updated and / or the second application to be updated are target applications to be updated.

[0090] Optionally, the application building device also includes: an eighth determination submodule, used to determine at least one server cluster for deploying the source cloud platform environment; a ninth determination submodule, used to determine a first target container from at least one server cluster, wherein the first target container is used to run at least one target template in multiple build packages, and the first target container corresponds one-to-one to the target template; and an operation module, used to run the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template.

[0091] Optionally, the application building device also includes: a tenth determination submodule, used to determine the target dynamic variables required when running the application on the source cloud platform environment; a first update submodule, used to update the target dynamic variables based on a preset target value to obtain an updated target dynamic variable; an eleventh determination submodule, used to determine a configuration platform for managing the target dynamic variables; and a first upload module, used to upload the updated target dynamic variables to the configuration platform.

[0092] Optionally, the application building device also includes: a twelfth determination submodule, used to determine the database used to store application data on the target cloud platform environment; a thirteenth determination submodule, used to determine the data transmission rules between the application on the target cloud platform environment and the database; a second update submodule, used to update the data transmission rules based on preset target information to obtain updated data transmission rules; and a second upload module, used to upload the updated data transmission rules to the database.

[0093] Optionally, the application building device also includes: a first detection module, which detects the startup status of the second target container, wherein the second target container is determined based on the container information of the first target container, and the second target container is used to run the application on the target cloud platform environment; a second detection module, which is used to detect the running status of the application corresponding to the second target container if it is detected that the second target container is successfully started; a fourteenth determination submodule, which is used to determine the building result of the application on the target cloud platform environment based on the running status.

[0094] Example 3

[0095] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned application building method when running.

[0096] Example 4

[0097] According to another aspect of an embodiment of the present invention, an electronic device is provided, wherein: Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Figure 6As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when executed by one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned application building method when running.

[0098] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0099] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0101] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.

[0102] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.

[0104] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for building an application, characterized in that: include: Obtain multiple build packages and multiple parameter tables for building applications on the source cloud platform environment, where each application corresponds to at least one build package, each build package includes at least one target template, and the target template is composed of multiple configuration files required to run the application, and the parameter table records the parameters required to run the configuration files; Determining at least one target application to be updated to be built on a target cloud platform environment, wherein the source cloud platform environment is at least used to run the at least one target application to be updated; Determine at least one target parameter table corresponding to each target application to be updated from the plurality of parameter tables; Updating the preset target parameters to the target parameter table to obtain an updated target parameter table; Building an application on the target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table, wherein the original parameter table is a parameter table among the multiple parameter tables excluding the at least one target parameter table; Obtain multiple build packages and parameter tables for building applications on the source cloud platform environment, including: Determining multiple target templates running on the source cloud platform environment; Determine the identifier and template information of the build package corresponding to each target template; Determining the multiple construction packages based on the identifier of the construction package corresponding to each target template; Determining the plurality of parameter tables based on the template information of each target template; Determining at least one target application to be updated on the target cloud platform environment, including: Determining a first application to be updated, wherein the first application to be updated is an application to be built on the target cloud platform environment; Determining, based on the business type corresponding to the first application to be updated, at least one second application to be updated that has an associated relationship with the first application to be updated, wherein the second application to be updated is an application on the source cloud platform environment; The first application to be updated and / or the second application to be updated is determined as the target application to be updated.

2. The method according to claim 1, characterized in that After building the application on the target cloud platform environment based on the multiple build packages, the original parameter table, and the updated target parameter table, the method further includes: Determining at least one server cluster for deploying the source cloud platform environment; Determining a first target container from the at least one server cluster, wherein the first target container is used to run at least one target template in the multiple build packs, and the first target container corresponds to the target template in a one-to-one manner; The application on the target cloud platform environment is run based on the container information of the first target container and the template version of each target template.

3. The method according to claim 2, characterized in that Before running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, the method further includes: Determining target dynamic variables required when running the application on the source cloud platform environment; updating the target dynamic variable based on a preset target value to obtain an updated target dynamic variable; determining a configuration platform for managing the target dynamic variable; The updated target dynamic variables are uploaded to the configuration platform.

4. The method according to claim 2, characterized in that Before running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, the method further includes: Determine a database for storing application data on the target cloud platform environment; Determine data transmission rules between the application and the database on the target cloud platform environment; updating the data transmission rule based on the preset target information to obtain an updated data transmission rule; The updated data transmission rules are uploaded to the database.

5. The method according to claim 2, characterized in that After running the application on the target cloud platform environment based on the container information of the first target container and the template version of each target template, the method further includes: detecting a startup status of a second target container, wherein the second target container is determined based on container information of the first target container, and the second target container is used to run an application on the target cloud platform environment; If it is detected that the second target container is successfully started, detecting the running status of the application corresponding to the second target container; Determine the result of building the application on the target cloud platform environment based on the running status.

6. An application building device, used to implement an application building method according to claim 1, characterized in that: include: An acquisition module, configured to acquire multiple build packages and parameter tables for building applications on a source cloud platform environment, wherein each application corresponds to at least one build package, each build package includes at least one target template, and the target template is composed of multiple configuration files required to run the application, and the parameter tables record the parameters required to run the configuration files; A first determining module is configured to determine at least one target application to be updated to be built on a target cloud platform environment, wherein the source cloud platform environment is at least used to run the at least one target application to be updated; a second determining module, configured to determine at least one target parameter table corresponding to each target application to be updated from the plurality of parameter tables; An updating module, configured to update the preset target parameters to the target parameter table to obtain an updated target parameter table; A building module is used to build an application on the target cloud platform environment based on the multiple construction packages, the original parameter table and the updated target parameter table, wherein the original parameter table is a parameter table among the multiple parameter tables except for the at least one target parameter table.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the application building method according to any one of claims 1 to 5 when running.

8. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the application building method described in any one of claims 1 to 5 when running.

Citation Information

Patent Citations

  • Dynamic update of an application in compilation and deployment

    CN108027722A

  • Application running environment building method and device and storage medium

    CN114327779A