Cloud service delivery processing method and device, electronic equipment and medium
By extracting delivery operating environment information and initial configuration files, generating target configuration files and compiling them, it solves the problem of high labor and time costs in cloud service delivery, achieves fast delivery and deployment, and improves delivery efficiency in various environments.
Patent Information
- Application Number
- CN202410711137.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-30
AI Technical Summary
During the cloud service delivery process, R&D personnel and operation and maintenance personnel are required to adjust project codes for different operating environments, resulting in high labor and time costs, long delivery cycles, and low efficiency.
By extracting the delivery running environment information, the program code package and initial configuration file are obtained, the delivery configuration interface is presented, the application and resource information configured by the user is obtained, the delivery status is configured based on this information, the target configuration file is generated, and the code package and configuration file are Compile and generate offline delivery file packages to adapt to different delivery environments.
It realizes the decoupling of application development process and delivery configuration, saves repeated configuration workload, adapts to different delivery environments, improves delivery efficiency, and simplifies the deployment process in multiple environments.
Smart Images

Figure CN118567708A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cloud computing and cloud service, and in particular to a method, device, electronic device and medium for cloud service delivery processing. Background Art
[0002] With the development of cloud computing, various forms of cloud services are becoming more and more widely used, such as IaaS (Infrastructure as a Service), SaaS (Software as a Service), PaaS (Platform as a Service), DaaS (Data as a Service), etc.
[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following technical problems in the related technology: in the process of service project delivery by cloud service providers, most of the time, R&D personnel and operation and maintenance personnel are required to cooperate to iterate the relevant project codes and adapt to different operating environments based on the deployment center (for example, DevOps, a deployment tool that only provides deployment services for internal containers of the enterprise or containers purchased by the enterprise); however, when the deployment center faces different service requirements, different operating environments (for example, public clouds, private clouds) and other scenarios, relevant personnel are required to adjust the project codes separately for each specific service requirement and specific operating environment, which consumes a lot of manpower and time costs, has a long delivery cycle, and has low delivery efficiency. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a method, device, electronic device and medium for cloud service delivery processing.
[0005] In the first aspect, an embodiment of the present disclosure provides a method for cloud service delivery processing. The above method includes: extracting delivery operation environment information from a received delivery configuration request for a target development application; obtaining a program code package and an initial configuration file corresponding to the above target development application; presenting a delivery configuration interface according to the configuration information in the above initial configuration file; obtaining application information and resource information configured by the first user in the above delivery configuration interface; configuring the delivery status according to the above application information, the above resource information, the above delivery operation environment information and the above initial configuration file to obtain a target configuration file; compiling the above program code package and the above target configuration file to obtain a delivery file package.
[0006] According to an embodiment of the present disclosure, the configuration information in the above-mentioned initial configuration file includes: the upstream application information that the above-mentioned target development application depends on, the middleware information that the above-mentioned target development application depends on, and the server-side configuration information corresponding to the above-mentioned target development application. Wherein, the above-mentioned presentation of the delivery configuration interface according to the configuration information in the above-mentioned initial configuration file includes: presenting the default component options and component new function keys of the middleware in the delivery configuration interface according to the above-mentioned middleware information; wherein the above-mentioned default component options constitute the default content of the resource information configured by the user, and the above-mentioned component new function keys are used to configure the new component content of the resource information; presenting the application deployment basic information and the application information new function keys in the delivery configuration interface according to the above-mentioned upstream application information and the above-mentioned server-side configuration information; wherein the above-mentioned application deployment basic information constitutes the default content of the application information configured by the user, and the above-mentioned application information new function keys are used to configure the new application content of the application information.
[0007] According to an embodiment of the present disclosure, the above-mentioned delivery file package is an offline delivery file package; wherein, the above-mentioned delivery status configuration is performed according to the above-mentioned application information, the above-mentioned resource information, the above-mentioned delivery operating environment information and the above-mentioned initial configuration file to obtain the target configuration file, including: according to the mapping relationship between the preset delivery environment and the data production strategy, determining the target data production strategy and delivery list corresponding to the above-mentioned delivery operating environment information; based on the above-mentioned target data production strategy and the above-mentioned delivery list, introducing the above-mentioned application information and the above-mentioned resource information into the above-mentioned initial configuration file to obtain the target configuration file; the above-mentioned target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operating environment information.
[0008] According to an embodiment of the present disclosure, based on the target data production strategy and the delivery list, the application information and the resource information are introduced into the initial configuration file to obtain the target configuration file, including: based on the target data production strategy, processing the application information and the resource information to obtain a deployment file adapted to the delivery operating environment information; according to the delivery items in the delivery list, merging the deployment file and the initial configuration file to obtain the target configuration file.
[0009] According to an embodiment of the present disclosure, the above-mentioned delivery project includes: a target development application adapted to the delivery operating environment information, and cloud platform service information corresponding to the above-mentioned target development application; the above-mentioned cloud platform service information includes at least one of the following: the domain name of the cloud platform, the configuration information of the service cluster corresponding to the cloud platform, firewall information, middleware initialization information, and database configuration information.
[0010] According to an embodiment of the present disclosure, a component placeholder page is provided in the above-mentioned initial configuration file; wherein, the above-mentioned deployment file and the above-mentioned initial configuration file are merged and processed, including: filling the processed resource information in the above-mentioned deployment file into the above-mentioned component placeholder page.
[0011] According to an embodiment of the present disclosure, obtaining a program code package and an initial configuration file corresponding to the above-mentioned target development application includes: obtaining a list of developed applications, the above-mentioned developed application list contains at least one developed application developed by a second user, and the above-mentioned developed application does not need to pay attention to the delivery environment during the development process; the above-mentioned developed application has a corresponding program code package and an initial configuration file; determining whether the above-mentioned target development application exists in the above-mentioned developed application list; in response to determining that the above-mentioned target development application exists in the above-mentioned developed application list, obtaining a program code package and an initial configuration file corresponding to the above-mentioned target development application; in response to determining that the above-mentioned target development application does not exist in the above-mentioned developed application list, issuing a prompt message for developing the target development application.
[0012] In the second aspect, an embodiment of the present disclosure provides a device for cloud service delivery processing. The above-mentioned device includes: a request receiving module, a first acquisition module, an interface presentation module, a second acquisition module, a configuration file generation module and a compilation module. The above-mentioned request receiving module is used to extract the delivery operation environment information from the received delivery configuration request for the target development application. The above-mentioned first acquisition module is used to obtain the program code package and the initial configuration file corresponding to the above-mentioned target development application. The above-mentioned interface presentation module is used to present the delivery configuration interface according to the configuration information in the above-mentioned initial configuration file. The above-mentioned second acquisition module is used to obtain the application information and resource information configured by the first user in the above-mentioned delivery configuration interface. The above-mentioned configuration file generation module is used to configure the delivery status according to the above-mentioned application information, the above-mentioned resource information, the above-mentioned delivery operation environment information and the above-mentioned initial configuration file to obtain the target configuration file. The above-mentioned compilation module is used to compile the above-mentioned program code package and the above-mentioned target configuration file to obtain a delivery file package.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device. The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the cloud service delivery processing method as described above when executing the program stored in the memory.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for cloud service delivery processing as described above is implemented.
[0015] In a fifth aspect, an embodiment of the present disclosure provides a computer program product. When the computer program code included in the computer program product is executed by a processor, the method for cloud service delivery processing is implemented.
[0016] The above technical solution provided by the embodiments of the present disclosure has at least some or all of the following advantages:
[0017] The solution provided by the above method decouples the application development process from the configuration process of the application to meet the delivery requirements during the delivery process for the target development application. By obtaining the program code package and the initial configuration file corresponding to the target development application, and using the configuration information in the initial configuration file of the target development application to present the delivery configuration interface, the first user (for example, an operation and maintenance personnel) can build the configuration required for delivery based on the developed application, such as application information and resource information. By configuring the delivery status according to the application information, resource information, delivery operating environment information and the initial configuration file, a target configuration file is obtained, and the target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operating environment information; the program code package and the target configuration file are compiled to obtain a delivery file package; the process of delivery configuration can effectively utilize the existing configuration in the application development stage, saving the workload of repeated configuration; at the same time, for the same developed application, different application information and resource information configurations can be performed multiple times according to actual delivery requirements, so as to adapt to the delivery environment corresponding to different delivery operating environment information, achieve fast delivery and deployment, and improve delivery efficiency under multiple delivery environments. The above solution can adapt the configuration files to different delivery requirements of the same developed target application and automatically generate the delivery file package, without the need for R&D personnel to pay attention to the delivery environment, thus achieving the decoupling of the application development process and the delivery configuration process. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 The system architecture of the cloud service delivery processing method applicable to the embodiment of the present disclosure is schematically shown;
[0021] Figure 2The flowchart schematically shows a method for cloud service delivery processing according to an embodiment of the present disclosure;
[0022] Figure 3 The detailed implementation flow chart of step S220 according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 4 A schematic diagram schematically shows a delivery configuration interface in a configuration state according to an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram schematically shows a delivery configuration interface in a configuration completed state according to an embodiment of the present disclosure;
[0025] Figure 6 The detailed implementation flow chart of step S250 according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 7 The structure block diagram of the apparatus for cloud service delivery processing according to an embodiment of the present disclosure is schematically shown;
[0027] Figure 8 The structural block diagram of the electronic device provided by the embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0029] Figure 1 The system architecture of the cloud service delivery processing method applicable to the embodiment of the present disclosure is schematically shown.
[0030] Reference Figure 1 As shown, the system architecture 100 of the cloud service delivery processing method applicable to the embodiment of the present disclosure includes: a delivery terminal 110 and a delivery server 120, and the delivery terminal 110 and the delivery server 120 communicate with each other through a network.
[0031] In some embodiments, the delivery terminal 110 has a cloud service delivery platform 111 , and the cloud service delivery platform 111 may be a software system, or a system composed of software and hardware.
[0032] In some embodiments, reference Figure 1As shown, there are three user roles of the cloud service delivery platform 111, namely, a delivery platform administrator, an operation and maintenance personnel (hereinafter referred to as an example of a first user), and a research and development personnel (hereinafter referred to as an example of a second user).
[0033] In some application scenarios, the delivery platform administrator creates component options required for application development and delivery, creates component resource pages, creates component environment pages, etc. on the cloud service delivery platform 111. The component resource pages are used by R&D personnel or operation and maintenance personnel to select or fill in component resources; the component environment page displays various delivery operating environment information for operation and maintenance personnel to select.
[0034] In some application scenarios, R&D personnel can develop applications in the cloud service delivery platform 111. The development process does not need to pay attention to the delivery environment. They only need to write the application program code and some dependency information of the application, such as the upstream application information that the application depends on, the middleware information that the application depends on, and the server configuration information corresponding to the application. The server configuration information (which can also be described as load information) can be the domain name of the cloud platform and the configuration information of the cloud platform service cluster.
[0035] In other application scenarios, developers can develop applications in other development platforms and upload the program code packages and dependency information of the developed applications to the cloud service delivery platform 111. The application development process does not need to pay attention to the delivery environment, but only needs to write the application program code and some dependency information of the application.
[0036] The cloud service delivery platform 111 generates an initial configuration file according to the dependency information of the developed application. The initial configuration file and the program code package can be stored in the delivery server 120, and a corresponding developed application list is generated.
[0037] In some application scenarios, the operation and maintenance personnel may interact with the delivery terminal 110 and perform cloud service delivery processing in the cloud service delivery platform 111. The delivery terminal 110 may execute the cloud service delivery processing method provided in the embodiment of the present disclosure.
[0038] During the delivery processing by the delivery terminal 110 , the delivery terminal 110 performs data communication with the delivery server 120 . For example, the delivery terminal 110 obtains a program code package and an initial configuration file corresponding to the target development application from the delivery server 120 .
[0039] The first exemplary embodiment of the present disclosure provides a method for cloud service delivery processing. The above method is applied to Figure 1 A delivery terminal 110 in the exemplary system architecture 100 .
[0040] Figure 2The flowchart schematically shows a method for cloud service delivery processing according to an embodiment of the present disclosure.
[0041] Reference Figure 2 As shown, the method for cloud service delivery processing provided by the embodiment of the present disclosure includes the following steps: S210, S220, S230, S240, S250 and S260.
[0042] In step S210, delivery operating environment information is extracted from the received delivery configuration request for the target development application.
[0043] In some implementation scenarios, the first user (for example, an operation and maintenance personnel) enters the name of the target development application in the cloud service delivery platform 111 on the delivery terminal 110, selects the delivery operating environment information corresponding to the current delivery from the component environment page, and clicks the delivery configuration function key, which is deemed that the delivery terminal 110 has received the delivery configuration request.
[0044] Delivery operating environment information refers to the delivery environment that the target development application must meet under one or more delivery requirements; for example, if the target development application is to run in a public cloud environment or a private cloud environment, the corresponding delivery environment is: public cloud or private cloud. If the target development application is to run in a private cloud environment and based on a virtual machine corresponding to a target operating system, the corresponding delivery environment is: private cloud + virtual machine environment corresponding to the target operating system.
[0045] In some embodiments, the target development application can be a developed application that has been uploaded or developed in advance by a developer on the cloud service delivery platform 111; in this case, the above-mentioned target development application corresponds to different delivery requirements (such as delivery of multiple different cloud environments) and only needs to use the same target development application to perform multiple delivery configurations corresponding to different delivery environments.
[0046] In other embodiments, the target development application may also be an application that has not yet been developed; in this case, after the delivery terminal 110 receives the above-mentioned delivery configuration request, the result of executing step S220 is that the program code package and initial configuration file corresponding to the target development application cannot be obtained, then the delivery terminal 110 will send a prompt message to the R&D personnel account to develop the target development application; and the subsequent steps S230 to S260 will not be executed.
[0047] In step S220, a program code package and an initial configuration file corresponding to the target development application are obtained.
[0048] Figure 3 The detailed implementation flow chart of step S220 according to an embodiment of the present disclosure is schematically shown.
[0049] Reference Figure 3As shown, in some embodiments, in the above step S220, obtaining the program code package and the initial configuration file corresponding to the above target development application includes the following steps: S310, S320, S330a or S330b. In the response process of the same delivery configuration request, steps S330a and S330b are executed one by one; in the scenario of performing response processing of multiple delivery configuration requests, execution branches corresponding to S330a and S330b may exist at the same time.
[0050] In step S310, a list of developed applications is obtained, where the list of developed applications includes at least one developed application developed by a second user, and the developed application does not need to pay attention to the delivery environment during the development process.
[0051] The developed application mentioned above has a corresponding program code package and an initial configuration file.
[0052] For example, if the second user is a developer, the developer can develop applications in the cloud service delivery platform 111, and the developed applications generate a list of developed applications. Alternatively, the developer uploads the program code package and some dependency information of the developed application to the cloud service delivery platform 111, and generates the configuration information in the initial configuration file based on the dependency information.
[0053] For example, the R&D personnel pull the initial configuration file of a target development application to be delivered in the cloud service delivery platform 111 to fill in the configuration information, fill in the component resources required for the target development application (such as the dependent middleware information) on the resource application page, and set up a component placeholder page in the initial configuration file (for example, specifically constructed in a placeholder manner), and can also fill in the upstream application information that the target development application depends on and the corresponding server configuration information.
[0054] According to an embodiment of the present disclosure, the configuration information in the above initial configuration file includes but is not limited to: upstream application information that the above target development application depends on, middleware information that the above target development application depends on, and server-side configuration information corresponding to the above target development application, etc. In some embodiments, the server-side configuration information (which can also be described as load information) may include but is not limited to: the domain name of the cloud platform and the configuration information of the cloud platform service cluster, etc.
[0055] In step S320, it is determined whether the target development application exists in the developed application list.
[0056] In step S330a, if the target development application exists, a program code package and an initial configuration file corresponding to the target development application are obtained.
[0057] If the target development application is an application that has been developed by the R&D personnel, the execution result of step S320 is yes, and step S330a is executed.
[0058] If the target development application is an application that has not yet been developed by the R&D personnel, the result of step S320 is no, and the delivery terminal 110 executes step S330b to send a prompt message to the second user to develop the target development application.
[0059] In step S230, a delivery configuration interface is presented according to the configuration information in the initial configuration file.
[0060] The above delivery configuration interface is presented based on the configuration information in the initial configuration file. During the subsequent delivery configuration process based on the delivery configuration interface, the operation and maintenance personnel can reuse the existing configurations of the R&D personnel during the application development stage, thus saving the workload of repeated configuration.
[0061] Figure 4 A schematic diagram schematically shows a delivery configuration interface in a configuration state according to an embodiment of the present disclosure.
[0062] In some embodiments, reference Figure 4 As shown, in the above step S230, according to the configuration information in the above initial configuration file, a delivery configuration interface is presented, including:
[0063] According to the above middleware information, the default component option 401 of the middleware and the component new function key 402 are presented in the delivery configuration interface 400; the above default component option 401 constitutes the default content of the resource information configured by the user, for example Figure 4 Two default component options, Z1 and Z2, are illustrated; the above-mentioned component new function key 402 is used to configure the new component content of resource information, for example Figure 4 The configuration content of the newly added component is presented on the component details page, such as but not limited to: the name and type of the newly added component (for example, it can be middleware (including microservice middleware, message middleware, scheduling middle key, etc.) or database, such as MQ message middleware, Nginx reverse proxy server, Redis database, etc.), the data source of the newly added component, etc.; for example, if the newly added component is database X, the corresponding configuration information includes: database port (port), host (host), etc.
[0064] Based on the above-mentioned upstream application information and the above-mentioned server-side configuration information, application deployment basic information 411 and application information new function key 412 are presented in the delivery configuration interface 400; the above-mentioned application deployment basic information 411 constitutes the default content of the application information configured by the user, and the above-mentioned application information new function key 412 is used to configure the new application content of the application information, for example, the new application content includes but is not limited to: the IP address and port of the application, etc.
[0065] In step S240, the application information and resource information configured by the first user in the delivery configuration interface are obtained.
[0066] Figure 5 A schematic diagram schematically shows a delivery configuration interface in a configuration completed state according to an embodiment of the present disclosure.
[0067] Reference Figure 4 As shown, the operation and maintenance personnel (as an example of the first user) can configure the application information and resource information related to delivery in the delivery configuration interface 400. Since the default component option 401 and the application deployment basic information 411 are presented in the delivery configuration interface 400, these information are the default options required by the application itself. Generally speaking, these default options are not enough for the delivery requirements. The operation and maintenance personnel are usually required to supplement the configuration information through the component new function key 402 and the application information new function key 412, so that all the default options and new options finally configured constitute the above-mentioned application information and resource information. The configured delivery configuration interface 500 is shown in FIG. Figure 5 As shown, the configured application information and resource information will be presented. In the example configured application information, the cloud platform name corresponding to the application Xxxx-T, the version name of the application, the IP address of the server where the application is deployed, the deployment priority and the person in charge are exemplified; in the example configured resource information, the resource name, resource type, creator, creation time and update time are exemplified; specific resources can include various middleware components or database components, such as database component main (belonging to the database type of mySQLDB), main-public public storage component (belonging to the OSS storage type), main-private private cloud storage component (belonging to the OSS storage type), other public components, etc. In the delivery configuration interface 500, there are also operation function keys, which have two operation buttons, one is an edit button, and the other is an associated information operation button; based on the edit button, the information of the corresponding component can be edited and modified; based on the associated information operation button, the information associated with the corresponding component can be configured and modified.
[0068] For the same developed application, multiple different application information and resource information configurations can be performed based on actual delivery requirements, so as to adapt to the delivery environment corresponding to different delivery operating environment information, achieve fast delivery and deployment, and improve delivery efficiency in multiple delivery environments.
[0069] In step S250, the delivery state configuration is performed according to the application information, the resource information, the delivery operation environment information and the initial configuration file to obtain a target configuration file. The target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operation environment information.
[0070] Figure 6 The detailed implementation flow chart of step S250 according to an embodiment of the present disclosure is schematically shown.
[0071] Reference Figure 6 As shown, in some embodiments, in the above step S250, the delivery status configuration is performed according to the above application information, the above resource information, the above delivery operating environment information and the above initial configuration file to obtain the target configuration file, including the following steps: S610 and S620.
[0072] In step S610, according to the mapping relationship between the preset delivery environment and the data production strategy, the target data production strategy and the delivery list corresponding to the above delivery operation environment information are determined.
[0073] The mapping relationship between different delivery environments and data production strategies can be pre-configured by operation and maintenance personnel. Data production strategies are data processing logics used to adapt to the delivery environment. For example, the data processing logics for private clouds and public clouds are different. The corresponding data processing logics for different types of private clouds are also different.
[0074] In step S620, based on the target data production strategy and the delivery list, the application information and the resource information are introduced into the initial configuration file to obtain a target configuration file.
[0075] According to an embodiment of the present disclosure, in the above step S620, based on the above target data production strategy and the above delivery list, the above application information and the above resource information are introduced into the above initial configuration file to obtain the target configuration file, including: based on the above target data production strategy, the above application information and the above resource information are processed to obtain a deployment file adapted to the above delivery operating environment information; according to the delivery items in the above delivery list, the above deployment file and the above initial configuration file are merged to obtain the target configuration file.
[0076] As an example, based on the target data production strategy corresponding to the private cloud, add access account information to the middleware components in the resource information, including access account and password, etc.; add access permission control information to the server configuration information.
[0077] According to an embodiment of the present disclosure, the above-mentioned delivery project includes: a target development application adapted to the delivery operating environment information, and cloud platform service information corresponding to the above-mentioned target development application; the above-mentioned cloud platform service information includes at least one of the following: the domain name of the cloud platform, the configuration information of the service cluster corresponding to the cloud platform, firewall information, middleware initialization information, and database configuration information.
[0078] Because the application information and resource information are processed based on the target data production strategy to obtain a deployment file adapted to the delivery environment; the target configuration file obtained by merging the deployment file with the initial configuration file can effectively adapt to the deployment of the delivery environment corresponding to the delivery operating environment information.
[0079] In some embodiments, the initial configuration file is provided with a component placeholder page, which is used to place component content. For example, during the application development process, the content of the component placeholder page can be empty; the developer (as an example of the second user) can set the dependency information corresponding to the application during the application development stage, and the dependency information can be stored in the delivery server 120 (refer to Figure 1 As shown). In the process of the operation and maintenance personnel delivering relevant configurations based on the delivery configuration interface, the above deployment file and the above initial configuration file are merged and processed, including: filling the resource information processed in the above deployment file into the above component placeholder page. By setting up a component placeholder page, the embodiment of the present disclosure can pre-open a specific storage location for the component content and directly perform storage positioning of the corresponding information based on the component placeholder page in the future. This can not only effectively save the time required to open up storage space during the operation process, the time spent in searching for the component storage location, etc., but also ensure that the storage and setting of each information in the initial configuration file are systematic, ensure the unification and consistency of the configuration file, and reduce the configuration data reading errors or transmission errors caused by the dispersion of configuration files, and the security risks caused by transmission.
[0080] The processed resource information includes: default component information set by R&D personnel, component information supplemented by operation and maintenance personnel, and related information newly added to adapt to the delivery environment, etc. This information is filled into the component placeholder page.
[0081] In step S260, the program code package and the target configuration file are compiled to obtain a delivery file package.
[0082] By compiling the program code package and target configuration file corresponding to the target development application, the corresponding delivery file package is an offline delivery file package, which may include: the target development application adapted to the delivery operating environment information, the cloud platform service information corresponding to the above target development application, etc.
[0083] After the above target development application is actually deployed in the corresponding delivery environment, it can be run immediately after deployment based on the target configuration file.
[0084] In an embodiment including steps S210 to S260, during the delivery of the target development application, the application development process is decoupled from the configuration process of the application to meet the delivery requirements. By obtaining the program code package and the initial configuration file corresponding to the target development application, and presenting the delivery configuration interface using the configuration information in the initial configuration file of the target development application, a first user (for example, an operation and maintenance personnel) can build the configuration required for delivery, such as application information and resource information, based on the developed application. By configuring the delivery status according to the application information, resource information, delivery operating environment information and the initial configuration file, a target configuration file is obtained, and the target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operating environment information; the program code package and the target configuration file are compiled to obtain a delivery file package; the process of performing delivery configuration can effectively utilize the existing configuration in the application development stage, saving the workload of repeated configuration; at the same time, for the same developed application, multiple different application information and resource information configurations can be performed according to actual delivery requirements, so as to adapt to the delivery environment corresponding to different delivery operating environment information, achieve fast delivery and deployment, and improve delivery efficiency under multiple delivery environments. The above solution can adapt the configuration files to different delivery requirements of the same developed target application and automatically generate the delivery file package, without the need for R&D personnel to pay attention to the delivery environment, thus achieving the decoupling of the application development process and the delivery configuration process.
[0085] A second exemplary embodiment of the present disclosure provides an apparatus for cloud service delivery processing.
[0086] Figure 7 The structure block diagram of the apparatus for cloud service delivery processing according to an embodiment of the present disclosure is schematically shown.
[0087] Reference Figure 7 As shown, the cloud service delivery processing device 700 provided by the embodiment of the present disclosure includes: a request receiving module 701, a first acquisition module 702, an interface presentation module 703, a second acquisition module 704, a configuration file generation module 705 and a compilation module 706.
[0088] The request receiving module 701 is used to extract the delivery operating environment information from the received delivery configuration request for the target development application.
[0089] The first acquisition module 702 is used to acquire a program code package and an initial configuration file corresponding to the target development application.
[0090] The interface presenting module 703 is used to present the delivery configuration interface according to the configuration information in the initial configuration file.
[0091] The second acquisition module 704 is used to acquire the application information and resource information configured by the first user in the delivery configuration interface.
[0092] The configuration file generating module 705 is used to perform delivery status configuration according to the application information, the resource information, the delivery operation environment information and the initial configuration file to obtain a target configuration file.
[0093] The compiling module 706 is used to compile the program code package and the target configuration file to obtain a delivery file package.
[0094] According to an embodiment of the present disclosure, the configuration information in the initial configuration file includes: upstream application information that the target development application depends on, middleware information that the target development application depends on, and server configuration information corresponding to the target development application.
[0095] In some embodiments, the interface presentation module 703 includes: a component function presentation submodule and an application function presentation submodule.
[0096] The above-mentioned component function presentation submodule is used to present the default component options and component new function keys of the middleware in the delivery configuration interface according to the above-mentioned middleware information; wherein the above-mentioned default component options constitute the default content of the resource information configured by the user, and the above-mentioned component new function keys are used to configure the new component content of the resource information.
[0097] The above-mentioned application function presentation submodule is used to present the application deployment basic information and the application information new function key in the delivery configuration interface according to the above-mentioned upstream application information and the above-mentioned server-side configuration information; wherein the above-mentioned application deployment basic information constitutes the default content of the application information configured by the user, and the above-mentioned application information new function key is used to configure the new application content of the application information.
[0098] According to an embodiment of the present disclosure, the above-mentioned delivery file package is an offline delivery file package.
[0099] In some embodiments, the configuration file generation module 705 includes: a delivery information determination submodule and a configuration submodule.
[0100] The delivery information determination submodule is used to determine the target data production strategy and delivery list corresponding to the delivery operation environment information according to the mapping relationship between the preset delivery environment and the data production strategy. The configuration submodule is used to introduce the application information and the resource information into the initial configuration file based on the target data production strategy and the delivery list to obtain the target configuration file; wherein the target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operation environment information.
[0101] According to an embodiment of the present disclosure, the configuration submodule includes: a deployment file generation submodule and a merge processing submodule. The deployment file generation submodule is used to process the application information and the resource information based on the target data production strategy to obtain a deployment file adapted to the delivery operating environment information. The merge processing submodule is used to merge the deployment file and the initial configuration file according to the delivery items in the delivery list to obtain the target configuration file.
[0102] According to an embodiment of the present disclosure, the above-mentioned delivery project includes: a target development application adapted to the delivery operating environment information, and cloud platform service information corresponding to the above-mentioned target development application; the above-mentioned cloud platform service information includes at least one of the following: the domain name of the cloud platform, the configuration information of the service cluster corresponding to the cloud platform, firewall information, middleware initialization information, and database configuration information.
[0103] According to an embodiment of the present disclosure, a component placeholder page is provided in the above-mentioned initial configuration file; wherein, the above-mentioned deployment file and the above-mentioned initial configuration file are merged and processed, including: filling the processed resource information in the above-mentioned deployment file into the above-mentioned component placeholder page.
[0104] According to an embodiment of the present disclosure, obtaining a program code package and an initial configuration file corresponding to the target development application includes: obtaining a list of developed applications, the list of developed applications includes at least one developed application developed by a second user, and the developed application does not need to pay attention to the delivery environment during the development process; the developed application has a corresponding program code package and an initial configuration file; determining whether the target development application exists in the list of developed applications; if the target development application exists, obtaining the program code package and the initial configuration file corresponding to the target development application.
[0105] Referring to the description of the system architecture 100, the device 700 provided in this embodiment can be applied to the data processing of the three roles in different processing periods. The core logic of the cloud service delivery processing is mainly for the stage where the target development application has been completed and various delivery environment configurations are performed for the target development application. The delivery platform administrator can interact with the above-mentioned device 700 to implement processes such as component creation, configuration of component resource pages, configuration of component environment pages, and configuration of component public pages (as a page shared by the application development stage and the application delivery configuration process, the default components therein can be reused in the delivery configuration process). In other embodiments, the component placeholder page is configured by the delivery platform administrator or R&D personnel.
[0106] For more details and beneficial effects of this embodiment, please refer to the detailed description of the first embodiment, which will not be repeated here.
[0107] Any number of the functional modules included in the above-mentioned device 700 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. At least one of the functional modules included in the device 700 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the functional modules included in the device 700 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.
[0108] A third exemplary embodiment of the present disclosure provides an electronic device.
[0109] Figure 8 The structural block diagram of the electronic device provided by the embodiment of the present disclosure is schematically shown.
[0110] Reference Figure 8 As shown, the electronic device 800 provided by the embodiment of the present disclosure includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 communicate with each other through the communication bus 804; the memory 803 is used to store computer programs; the processor 801 is used to implement the cloud service delivery processing method as described above when executing the program stored in the memory.
[0111] The fourth exemplary embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for cloud service delivery processing as described above is implemented.
[0112] The computer-readable storage medium may be included in the device or apparatus described in the above embodiment; or it may exist independently without being assembled into the device or apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0113] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0114] The fifth exemplary embodiment of the present disclosure also provides a computer program product. When the computer program code contained in the above computer program product is executed by the processor, the above cloud service delivery processing method is implemented. The above computer program product may include but is not limited to: a code snippet, a program package, a software product, etc. transmitted, distributed, downloaded, uploaded, and deployed in the form of a signal through the Internet.
[0115] It should be noted that the collection, collection, update, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution provided by the embodiments of the present disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0116] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0117] The foregoing is merely a specific embodiment of the present disclosure, which enables those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features applied herein.
Claims
1. A method for cloud service delivery processing, characterized in that: include: Extracting delivery operating environment information from a received delivery configuration request for a target development application; Obtaining a program code package and an initial configuration file corresponding to the target development application; Presenting a delivery configuration interface according to the configuration information in the initial configuration file; Acquire application information and resource information configured by the first user on the delivery configuration interface; Perform delivery status configuration according to the application information, the resource information, the delivery operating environment information and the initial configuration file to obtain a target configuration file; The program code package and the target configuration file are compiled to obtain a delivery file package.
2. The method according to claim 1, characterized in that The configuration information in the initial configuration file includes: upstream application information that the target development application depends on, middleware information that the target development application depends on, and server configuration information corresponding to the target development application; The presenting of the delivery configuration interface according to the configuration information in the initial configuration file includes: According to the middleware information, the default component options and component new function keys of the middleware are presented in the delivery configuration interface; wherein the default component options constitute the default content of the resource information configured by the user, and the component new function keys are used to configure the new component content of the resource information; Based on the upstream application information and the server configuration information, application deployment basic information and application information new addition function keys are presented in the delivery configuration interface; wherein the application deployment basic information constitutes the default content of the application information configured by the user, and the application information new addition function keys are used to configure the new application content of the application information.
3. The method according to claim 1, characterized in that The delivery file package is an offline delivery file package; The step of performing delivery status configuration according to the application information, the resource information, the delivery operating environment information and the initial configuration file to obtain a target configuration file includes: Determine the target data production strategy and delivery list corresponding to the delivery operation environment information according to the mapping relationship between the preset delivery environment and the data production strategy; Based on the target data production strategy and the delivery list, the application information and the resource information are introduced into the initial configuration file to obtain a target configuration file; wherein the target configuration file is adapted to the deployment of the delivery environment corresponding to the delivery operating environment information.
4. The method according to claim 3, characterized in that Based on the target data production strategy and the delivery list, the application information and the resource information are introduced into the initial configuration file to obtain a target configuration file, including: Based on the target data production strategy, the application information and the resource information are processed to obtain a deployment file adapted to the delivery operation environment information; According to the delivery items in the delivery list, the deployment file and the initial configuration file are merged to obtain a target configuration file.
5. The method according to claim 4, characterized in that The delivery project includes: a target development application adapted to the delivery operation environment information, and cloud platform service information corresponding to the target development application; The cloud platform service information includes at least one of the following: a domain name of the cloud platform, configuration information of a service cluster corresponding to the cloud platform, firewall information, initialization information of middleware, and configuration information of a database.
6. The method according to claim 4, characterized in that The initial configuration file is provided with a component placeholder page; The step of merging the deployment file and the initial configuration file includes: filling the processed resource information in the deployment file into the component placeholder page.
7. The method according to any one of claims 1 to 6, characterized in that Obtaining a program code package and an initial configuration file corresponding to the target development application, including: Acquire a list of developed applications, the list of developed applications including at least one developed application developed by a second user, the developed application not needing to pay attention to a delivery environment during development; the developed application having a corresponding program code package and an initial configuration file; Determining whether the target development application exists in the developed application list; In response to determining that the target development application exists in the developed application list, obtaining a program code package and an initial configuration file corresponding to the target development application; In response to determining that the target development application does not exist in the developed application list, prompt information for developing the target development application is issued.
8. A cloud service delivery processing device, characterized in that: include: A request receiving module, used to extract the delivery operating environment information from the received delivery configuration request for the target development application; A first acquisition module, used to acquire a program code package and an initial configuration file corresponding to the target development application; An interface presentation module, used to present a delivery configuration interface according to the configuration information in the initial configuration file; A second acquisition module is used to acquire application information and resource information configured by the first user on the delivery configuration interface; A configuration file generation module, used to perform delivery status configuration according to the application information, the resource information, the delivery operation environment information and the initial configuration file to obtain a target configuration file; The compiling module is used to compile the program code package and the target configuration file to obtain a delivery file package.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the computer program code contained in the computer program product is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
