An application management method, an electronic device, and a storage medium
By pre-setting packaging specifications to package applications into standard installation packages, the problem of the lack of unified standards for applications in the Industrial Internet of Things is solved, and unified management and collaborative display of applications are realized, supporting multi-role collaborative work.
Patent Information
- Application Number
- CN202310383376.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-04-11
AI Technical Summary
The lack of a unified application packaging standard in the Industrial Internet of Things (IIoT) leads to fragmented management issues, hindering the unified management and large-scale replication of applications.
The application is packaged into a standard installation package using preset packaging specifications. This package includes basic application information files, default configuration files, and template directory files, and then sent to the application management platform for management.
It implements a unified packaging standard for different types of industrial IoT applications, provides a consistent presentation format, solves the problem of fragmented management, and supports collaborative work among developers, administrators, and users.
Smart Images

Figure CN116382761B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud-native industrial IoT application technology, and in particular to an application management method, electronic device, and storage medium. Background Technology
[0002] With the emergence of the Industrial Internet of Things (IIoT) concept, fragmentation remains an unavoidable topic when discussing the development of the IIoT industry. Many agree that fragmentation hinders the rapid development of IIoT, preventing companies from replicating IIoT projects on a large scale. Currently, the IIoT industry lacks standardized packaging for developed applications, and there is no unified management system in the cloud-based manufacturing sector. Therefore, standardizing application packaging and management within the IIoT industry, addressing fragmentation issues, and unifying them into a single standard are technical problems that those skilled in the art need to solve. Summary of the Invention
[0003] In view of this, the present invention provides an application management method, electronic device, and storage medium that can solve the problems of the lack of unified packaging standards and fragmented management in the Industrial Internet of Things (IIoT) industry. It enables a unified packaging standard so that different types of IIoT applications can use the same presentation format.
[0004] According to one aspect of the present invention, an embodiment of the present invention provides an application management method, the method being applied to a cloud service platform, the method comprising:
[0005] Receive application packaging instructions from developers;
[0006] According to the preset packaging specifications, the target application corresponding to the application packaging instruction is packaged into a standard installation package;
[0007] The standard installation package is transmitted to the application management platform for application management; wherein the standard installation package includes at least: application basic information file, default configuration file and template directory file.
[0008] According to another aspect of the present invention, embodiments of the present invention also provide an application management device applied to a cloud service platform, the device comprising:
[0009] The instruction receiving module is used to receive application packaging instructions from developers.
[0010] The packaging module is used to package the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications.
[0011] The delivery module is used to deliver the standard installation package to the application management platform for application management; wherein the standard installation package includes at least: an application basic information file, a default configuration file, and a template directory file.
[0012] According to another aspect of the present invention, embodiments of the present invention also provide an electronic device, the electronic device comprising:
[0013] At least one processor; and
[0014] A memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the application management method described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the application management method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, embodiments of the present invention also provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the application management method described in any embodiment of the present invention.
[0018] The technical solution of this invention packages the target application corresponding to the application packaging instruction into a standard installation package by pre-setting a packaging specification. The standard installation package includes at least: application basic information file, default configuration file and template directory file, so as to transmit the standard installation package to the application management platform for application management. This can solve the problem of the lack of a unified packaging specification and the fragmented management problem of applications in the industrial Internet of Things industry. It can realize a unified packaging specification so that different types of industrial Internet of Things applications can use the same presentation form.
[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating an application management method according to an embodiment of the present invention;
[0022] Figure 2 A flowchart illustrating another application management method provided in an embodiment of the present invention.
[0023] Figure 3 A flowchart illustrating another application management method provided in an embodiment of the present invention;
[0024] Figure 4 This is a schematic diagram illustrating a developer's operation of an application, provided as an embodiment of the present invention.
[0025] Figure 5 This is a schematic diagram of an administrator's application review process according to an embodiment of the present invention;
[0026] Figure 6 This is a schematic diagram illustrating a user's application usage process according to an embodiment of the present invention;
[0027] Figure 7 This is a schematic diagram illustrating the process of rendering files using a default configuration file and a container resource template, as provided in an embodiment of the present invention.
[0028] Figure 8 This is a schematic diagram of a backend architecture provided in an embodiment of the present invention;
[0029] Figure 9 This is a structural block diagram of an application management device provided in an embodiment of the present invention;
[0030] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] In one embodiment, Figure 1 This is a flowchart of an application management method provided in an embodiment of the present invention. This embodiment is applicable to the management of applications in the Industrial Internet of Things. The method can be executed by an application management processing device, which can be implemented in hardware and / or software and can be configured in an electronic device.
[0034] like Figure 1 As shown, this method is applied to a cloud service platform. The application management method includes the following specific steps:
[0035] S110: Receive application packaging instructions from the developer.
[0036] Here, "developer" refers to the developer of applications in the Industrial Internet of Things (IIoT). "Application packaging instruction" refers to the instruction used to package an application according to the corresponding specifications. This instruction can be triggered by a touch or a click; this implementation does not impose any restrictions.
[0037] In this embodiment, industrial IoT application developers can log in to the system using a corresponding username and password. After logging in, developers can perform operations such as creating, developing, deleting, modifying, and uploading applications. Of course, developers can use relevant specifications when developing applications, and the system executes the corresponding packaging instructions when receiving a developer's instruction to package the developed application.
[0038] S120. Package the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications; wherein, the standard installation package includes at least: application basic information file, default configuration file and template directory file.
[0039] The preset packaging specification can be understood as a pre-set specification for packaging the developed application. This preset packaging specification can be the Helm Chart specification or other specifications; this embodiment does not impose any restrictions. The target application refers to the application awaiting packaging. The standard installation package refers to the installation package corresponding to the target application, and this standard installation package corresponds to the preset packaging specification.
[0040] In this embodiment, the standard installation package corresponding to the target application includes, but is not limited to, an application basic information file, a default configuration file, and a template directory file. The application basic information file includes at least the following fields: application interface version, application package name, application version, maintainer name, compatible container versions, a list of keywords related to the application, and the application's Uniform Resource Locator (URL). The default configuration file can be understood as a predefined configuration file by the developer, containing default values that can be modified by the application's user by inputting the required information.
[0041] In this embodiment, a pre-created set of application files containing container resources can be obtained. This set of application files includes, but is not limited to, application basic information files, text-formatted license agreements, application introductions, usage instructions and guides, default value configuration files, directories storing application packaging dependencies, and directories storing deployment template files. The set of application files is used as a preset packaging specification to package the target application to obtain a standard installation package corresponding to the target application. In some embodiments, the files of the target application can also be encrypted based on a symmetric encryption key and encryption algorithm to obtain encrypted data. The encrypted data is stored in a specified storage location in the bytecode of the target application. The original instructions for reading the target data in the bytecode of the target application are modified into an adjustment instruction set. The modified target application and the decryption program corresponding to the first encryption algorithm are packaged to obtain the installation package of the target application. In addition, other methods can be used to package the target application, which are not limited in this embodiment.
[0042] S130. Transfer the standard installation package to the application management platform for application management.
[0043] The application management platform refers to the platform for managing developed applications. Application management includes, but is not limited to, testing applications, uploading applications, removing applications, and deleting applications.
[0044] In this embodiment, developers can send the packaged standard installation package to the application management platform for application management. It should be noted that this management is not limited to the role of the application developer; it can also be the role of the application user, or an administrator reviewing the application, etc. Different roles use different login accounts and passwords to log in to the application management platform for application management. In this embodiment, if the role is developer, the developer's management of the application includes, but is not limited to, creating the application, developing the application, testing the application, uploading the application, removing the application, and deleting the application. If the role is application user, the application user's management of the application includes, but is not limited to, testing the application, approving the application's uploading, and rejecting the user's uploading request. If the role is developer, the developer's management of the application includes, but is not limited to, browsing the app store, downloading the application, installing the application, using the application, and uninstalling the application.
[0045] The technical solution of this invention packages the target application corresponding to the application packaging instruction into a standard installation package by pre-setting a packaging specification. The standard installation package includes at least: application basic information file, default configuration file and template directory file, so as to transmit the standard installation package to the application management platform for application management. This can solve the problem of the lack of a unified packaging specification and the fragmented management problem of applications in the industrial Internet of Things industry. It can realize a unified packaging specification so that different types of industrial Internet of Things applications can use the same presentation form.
[0046] In one embodiment, Figure 2 This is a flowchart of another application management method provided in an embodiment of the present invention. Based on the above embodiments, this embodiment further refines the method of packaging the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications.
[0047] like Figure 2 As shown, the application management method in this embodiment may specifically include the following steps:
[0048] S210: Receive the developer's application packaging instructions.
[0049] S220. Obtain a pre-created set of application files containing container resources; wherein the set of application files includes: application basic information file, text-formatted license agreement, application introduction, usage instructions and guide, default value configuration file, directory storing application packaging dependencies, and directory storing deployment template files.
[0050] The application file set can be understood as a collection of files describing a set of container-related resources. This container can be Kubernetes or other containers.
[0051] In this embodiment, pre-created application basic information files containing container resources, a text-formatted license agreement, application introduction, usage instructions and guides, default value configuration files, directories storing application packaging dependencies, and directories storing deployment template files can be obtained. For example, a Chart is a collection of files describing a set of Kubernetes-related resources. All Chart-related files are stored in a directory, which typically contains: Chart.yaml, a YAML file containing basic Chart information (e.g., version and name, API); LICENSE, a plain text file containing the Chart license; README.md, application instructions and usage guides; values.yaml, the default configuration file for this Chart; values.schema.json, a JSON schema that adds structure to the values.yaml file, i.e., a correction file; charts, a directory containing any Charts that this Chart depends on; crds, custom resource definitions; templates, a template directory, which can generate valid Kubernetes configuration files if the corresponding values are provided; and templates / NOTES.txt, a plain text file containing usage instructions.
[0052] In some embodiments, basic information about the target application is stored in an application basic information file, which may include, but is not limited to, the following fields: application interface version, application package name, application version, maintainer name, compatible container version, a list of keywords about the application, and the application's Uniform Resource Locator.
[0053] For example, application-related information is defined in the Chart.yaml file. Below is a sample file with descriptions for each field. API Version: Chart API version; name: Chart name; version: Version, conforming to the SemVer2 standard; kube Version: Compatible Kubernetes version, conforming to the SemVer 2 standard; description: A one-sentence description of the application; type: The type of Chart; keywords: A list of keywords related to the application; home: The application's Universal Resource Locator (URL); sources: A list of URLs for the application's source code; dependencies: A list of requirements for the Chart; name: The name of the Chart, e.g., nginx; version: The version of the Chart, e.g., "1.2.3"; repository: The repository URL ("https: / / example.com / charts") or alias ("@repo-name"); condition: A YAML path that resolves to a boolean value, used to enable / disable the Chart (e.g., subchart1.enabled); tags: Used to group Charts and enable / disable them together; import-values: ImportValues stores the mapping of source values to the parent keys to be imported. Each item can be a string or a pair of child / parent-child list items; alias: the alias to be used by the Chart; name: the maintainer's name; annotations: example: a list of annotations entered by name.
[0054] S230. Use the application file set as a preset packaging specification to package the target application to obtain a standard installation package.
[0055] In this embodiment, a set of application files, including application basic information files, a text-formatted license agreement, application introduction, usage instructions and guides, default value configuration files, directories storing application packaging dependencies, and directories storing deployment template files, can be used as a preset packaging specification to package the target application.
[0056] S240: Transfer the standard installation package to the application management platform for application management.
[0057] The technical solution of this invention involves obtaining a pre-created set of application files containing container resources. This set includes: an application basic information file, a text-based license agreement, an application introduction, usage instructions and guidelines, a default value configuration file, a directory storing application packaging dependencies, and a directory storing deployment template files. Additionally, basic information about the target application is stored in the application basic information file. This file includes at least the following fields: application interface version, application package name, application version, maintainer name, compatible container versions, a list of keywords related to the application, and the application's Uniform Resource Locator (URL). By using this set of application files as a preset packaging standard to package the target application into a standard installation package, the problem of the lack of a unified packaging standard and fragmented management in the industrial IoT industry can be further solved. This unified packaging standard enables different types of industrial IoT applications to use the same presentation format.
[0058] In one embodiment, Figure 3 This is a flowchart illustrating another application management method provided in an embodiment of the present invention. This embodiment further refines the above embodiments. It should be noted that this embodiment uses the process of a developer uploading the packaged application installation package to the application management center using a preset packaging specification for administrator review, and then the user downloading and installing the application installation package from the app store after the administrator's review, as an example for illustration.
[0059] like Figure 3 As shown, the application management method in this embodiment may specifically include the following steps:
[0060] S310: Receives application packaging instructions from developers.
[0061] S320. Package the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications. The standard installation package includes at least: application basic information file, default configuration file and template directory file.
[0062] S330: Transmits the standard installation package to the application management platform for application management.
[0063] S340. Upon receiving the developer's second operation instruction, download and install the standard installation package of the target application, test the target application according to the type of the target application, and send the successfully tested application to the application management platform so that the administrator can review the target application.
[0064] The second operation instruction refers to the operation instruction for the developer to download and install the installation package of the target application. This operation instruction can be generated by touch or by clicking a button, and this embodiment does not impose any restrictions.
[0065] In this embodiment, upon receiving the developer's second operation instruction, the standard installation package of the target application is downloaded and installed. After the standard installation package is installed, the target application can be tested according to its type, and the successfully tested application is sent to the application management platform for the administrator to review. It can be understood that different target applications require different testing methods. This embodiment does not limit the testing method for the application and can use existing testing methods. The successfully tested target application can be uploaded to the application management platform for the administrator to review.
[0066] For example, to facilitate a better understanding of the process and methods developers use to operate the application, Figure 4 This is a flowchart illustrating a developer's operation of an application according to an embodiment of the present invention, which executes as follows: Figure 4 The process described:
[0067] a1. When developing an application, developers can upload it to the system after packaging it using the Helm Chart specification.
[0068] In this embodiment, after the developer completes the application development using a text editor locally, they use the Helm Chart specification to package the application to obtain the corresponding standard installation package.
[0069] a2. Upload the standard installation package corresponding to the application to the application management platform.
[0070] a3. Download the standard installation package and install the application to test it.
[0071] a4. After the application testing is completed, the application can be uploaded to the application management platform and provided to the administrator for application review.
[0072] S350: Upon receiving the application review instruction from the administrator, review the target application in the application management platform, select the appropriate testing method according to the type of the target application, test the target application, and upload the successfully tested application to the application store in the application management platform.
[0073] Application review instructions refer to the instructions given by administrators to review applications uploaded by developers.
[0074] In this embodiment, upon receiving an application review instruction from the administrator, the target application in the application management platform is reviewed, and the target application is tested according to the type of the target application by selecting the appropriate testing method. The successfully tested application is then listed in the application store in the application management platform. It can be understood that different target applications correspond to different testing methods, and this embodiment does not restrict the testing method for the application.
[0075] For example, to facilitate a better understanding of the process and methods for administrators to review applications, Figure 5 This is a schematic diagram of an administrator's application review process according to an embodiment of the present invention, which executes as follows: Figure 5 The process described:
[0076] b1. After the developer submits the target application, the administrator tests and reviews the application in the background.
[0077] b2. After testing the application, the administrator checks whether the application was successfully tested. Applications that are successfully tested can be approved for listing; applications that fail to be tested should be rejected for listing.
[0078] b3. After administrator approval, developers can publish their applications to the app store in the application details.
[0079] S360, in response to the target user's first operation command to the target application in the application store within the application management platform, downloads and installs the standard installation package of the target application.
[0080] The first operation instruction refers to the operation instruction that the application user downloads for the target user.
[0081] In this embodiment, the application user can browse the application store. In response to the target user's first operation command on the application store in the application management platform, the application user downloads and installs the standard installation package of the target application. In addition, the application user can also delete the application that has been downloaded, which can be understood as uninstalling the application that has been downloaded.
[0082] For example, to facilitate a better understanding of the user's workflow in using the application, Figure 6 This is a schematic diagram illustrating a user's application usage process according to an embodiment of the present invention:
[0083] c1. Users can browse the app store and download and install the standard installation package of the target application;
[0084] c2. After the standard installation package of the target application is installed, the corresponding application instance will be displayed in the application list. Click on the corresponding instance to view the application details.
[0085] S370: Obtain the target application's default configuration file and pre-configured container resource template.
[0086] The default configuration file refers to the default configuration file for the target application pre-set by the developer. This default configuration file contains default values, which users can change to the desired values. In other words, users can input the corresponding configuration file according to their needs. The container resource template refers to the pre-configured resource template corresponding to the container.
[0087] In some embodiments, the container resource template is written in Go template language and stored in a template directory file; the field information in the container resource template includes at least: container resource type, container version, metadata, application package name, tag, container name, image, image pull strategy and value; wherein, the image field information includes container image repository and container image tag; the image pull strategy field includes pull strategy; the value field information includes the value storage backend.
[0088] In some embodiments, the input to the default configuration file includes one of the following:
[0089] Create a first default configuration file in the installation package of the target application that can be referenced; wherein the first default configuration file is in the form of key-value pairs, with container image repository, container image tag, image pull policy, and storage backend as keys, and the corresponding input values of container image repository, container image tag, image pull policy, and storage backend as values, forming key-value pairs;
[0090] Create a second default configuration file containing the necessary values in the target application's installation package, and use the second default configuration file via the Helm Install command.
[0091] In this embodiment, values can be provided to the pre-configured container resource template in two ways: One is to create a first default configuration file containing referenceable values in the target application's installation package. This first default configuration file is in key-value pair format, with the container image repository, container image tag, image pull strategy, and storage backend as keys, and the corresponding input values for each key, value, and storage backend as values. The other is to create a second default configuration file containing necessary values in the target application's installation package and use the second default configuration file via the Helm Install command. For example, the container resource template is a Helm Chart template, written in Go template language and stored in the Chart's templates folder. Values can be provided to the template in two ways: 1) Create a values.yaml file containing referenceable default values in the Chart; 2) Create a YAML file containing necessary values and use that file via the helm install command in the command line.
[0092] S380: Render the default configuration file and container resource template to generate a result description file, and load the result description file into the container management platform for execution.
[0093] In this embodiment, the default configuration file and container resource template are rendered to generate a result description file, which is then loaded into the container management platform for execution. Specifically, the field information in the container resource template, namely image, image pull strategy and value, can be found, and then the key-value pair variables in the default configuration file are used to replace the found field information.
[0094] In one embodiment, the default configuration file and container resource template are rendered to generate a result description file, including:
[0095] Find the following fields in the container resource template: image, image pull strategy, and value;
[0096] The key-value pair variables in the default configuration file are replaced with the image, image pull strategy, and corresponding value information for rendering to generate a result description file.
[0097] In this embodiment, the field information in the container resource template can be traversed and searched: image, image pull strategy and value. The key-value pair variables in the default configuration file are replaced with the information corresponding to the image, image pull strategy and value for rendering to generate a result description file.
[0098] In this embodiment, to facilitate a better understanding of the default configuration file and container resource template, a description file is generated to describe the file rendering results. Figure 7 This is a schematic diagram illustrating the file rendering process of a default configuration file and container resource template according to an embodiment of the present invention. In this embodiment, Values.yaml is the default configuration file in the above embodiments, templates is the template directory file in the above embodiments, image is the image in the above embodiments, imagePullPolicy is the image pull policy in the above embodiments, value is the value in the above embodiments, imageRegistry is the container image repository in the above embodiments, dockerTag is the container image tag in the above embodiments, pullPolicy is the image pull policy in the above embodiments, and storage is the storage backend in the above embodiments, which defaults to minio.
[0099] In this embodiment, we take creating a values.yaml file in the Chart that contains default values that can be referenced as an example to provide values for the template.
[0100] Below is an example of templates in the templates folder:
[0101]
[0102] In this embodiment, a Replication Controller template (a pre-configured container resource template) is defined in Kubernetes, where some referenced values are defined in the values.yaml file. In this embodiment, the user-defined values in the values.yaml file are:
[0103] imageRegistry:"quay.io / deis"
[0104] dockerTag:"latest"
[0105] pullPolicy:"Always"
[0106] storage:"s3"
[0107] In this embodiment, when rendering using the above template and values.yaml, the key-value pairs from values.yaml will replace the content within the curly braces {{}} in the template: image:{{.Values.imageRegistry}} / postgres:{{.Values.dockerTag}}, imagePullPolicy:{{.Values.pullPolicy}}, and value:{{default"minio".Values.storage}}. The rendered file content represents the workload accepted by the Kubernetes container scheduling platform. Kubernetes will then run the corresponding containers according to the developer's configuration.
[0108] In this embodiment, the rendered file result can be represented as follows:
[0109]
[0110] The technical solution of this invention involves receiving an application packaging instruction from a developer, packaging the target application corresponding to the application packaging instruction into a standard installation package according to a preset packaging specification, and transmitting the standard installation package to an application management platform for application management; receiving a second operation instruction from the developer, downloading and installing the standard installation package of the target application, testing the target application according to its type, and transmitting successfully tested applications to the application management platform for administrator review; receiving an application review instruction from the administrator, reviewing the target application in the application management platform, selecting the appropriate testing method according to the type of the target application, testing the target application, and uploading successfully tested applications to the application store in the application management platform; responding to the first operation instruction from the target user to the target application in the application store within the application management platform, downloading and installing the standard installation package of the target application; obtaining the default configuration file and pre-configured container resource template of the target application; rendering the default configuration file and container resource template to generate a result description file, and loading the result description file into the container management platform for execution. This approach, by differentiating between the roles of developers, administrators, and users, facilitates collaboration between developers and administrators, achieves a unique application presentation format, and distinguishes between the three role models of administrators, developers, and users.
[0111] In one embodiment, to facilitate a better understanding of the backend architecture diagram of the application management platform, Figure 8 This is a schematic diagram of a backend architecture provided in an embodiment of the present invention.
[0112] In one embodiment, Figure 9 This is a structural block diagram of an application management device according to an embodiment of the present invention. The device is suitable for managing applications in the Industrial Internet of Things (IIoT) and can be implemented in hardware or software. It can be configured in an electronic device to implement an application management processing method according to an embodiment of the present invention.
[0113] like Figure 9 As shown, this device is applied to a cloud service platform. The device includes: an instruction receiving module 910, a packaging module 920, and a transmission module 930.
[0114] The instruction receiving module 910 is used to receive application packaging instructions from developers.
[0115] The packaging module 920 is used to package the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications; wherein, the standard installation package includes at least: application basic information file, default configuration file and template directory file;
[0116] The transmission module 930 is used to transmit the standard installation package to the application management platform for application management.
[0117] In this embodiment of the invention, the packaging module packages the target application corresponding to the application packaging instruction into a standard installation package according to a preset packaging specification. The standard installation package includes application basic information files, default configuration files, and template directory files. The standard installation package is then transmitted to the application management platform for application management via the transmission module. This solves the problem of the lack of a unified packaging specification and fragmented management in the industrial IoT industry, and achieves a unified packaging specification so that different types of industrial IoT applications can use the same presentation format.
[0118] In one embodiment, the packaging module 920 includes:
[0119] Obtain a pre-created set of application files containing container resources; wherein, the set of application files includes: application basic information file, text-formatted license agreement, application introduction, usage instructions and guide, default value configuration file, directory storing application packaging dependencies, and directory storing deployment template files;
[0120] The application file set is used as the preset packaging specification to package the target application to obtain a standard installation package;
[0121] The basic information of the target application is stored in the application basic information file; the application basic information file includes at least the following fields: application interface version, application package name, application version, maintainer name, compatible container version, a list of keywords about the application, and the application's Uniform Resource Locator.
[0122] In one embodiment, the device further includes:
[0123] The installation package download module is used to download and install the standard installation package of the target application in response to the first operation command of the target user to the application store in the application management platform.
[0124] The acquisition module is used to acquire the default configuration file and pre-configured container resource template of the target application;
[0125] The generation module is used to render the default configuration file and the container resource template to generate a result description file, and load the result description file into the container management platform for execution.
[0126] In one embodiment, the container resource template is written in Go template language and stored in a template directory file; the field information in the container resource template includes at least: container resource type, container version, metadata, application package name, tag, container name, image, image pull strategy, and value; wherein, the image field information includes container image repository and container image tag; the image pull strategy field includes pull strategy; and the value field information includes the storage backend of the value.
[0127] In one embodiment, the input to the default configuration file includes one of the following:
[0128] A first default configuration file containing referenceable information is created in the installation package of the target application; wherein, the first default configuration file is in key-value pair form, with container image repository, container image tag, image pull policy, and storage backend as keys, and the corresponding input values of the container image repository, the container image tag, the image pull policy, and the storage backend as values, forming key-value pairs;
[0129] Create a second default configuration file containing the necessary values in the installation package of the target application, and use the second default configuration file via the HelmInstall command.
[0130] In one embodiment, the generation module includes:
[0131] The lookup unit is used to look up the field information in the container resource template: image, image pull strategy, and value;
[0132] The rendering unit is used to replace the key-value pair variables in the default configuration file with the image, the image retrieval strategy, and the information corresponding to the value for rendering, so as to generate a result description file.
[0133] In one embodiment, the device further includes:
[0134] The testing module is used to receive the second operation instruction from the developer, download and install the standard installation package of the target application, test the target application according to the type of the target application, and send the successfully tested application to the application management platform so that the administrator can review the target application.
[0135] In one embodiment, the device further includes:
[0136] The review module is used to receive application review instructions from the administrator, review the target application in the application management platform, select the appropriate testing method according to the type of the target application, test the target application, and upload the successfully tested application to the application store in the application management platform.
[0137] The application management processing device provided in the embodiments of the present invention can execute the application management processing method for financial systems provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0138] In one embodiment, Figure 10 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0139] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0140] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0141] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as application management methods.
[0142] In some embodiments, the application management processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the application management method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the application management method by any other suitable means (e.g., by means of firmware).
[0143] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0144] Computer programs used to implement the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable application management device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0145] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0146] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0147] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0148] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0149] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0150] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An application management method, characterized in that, The method, applied to a cloud service platform, includes: Receive application packaging instructions from developers; The target application corresponding to the application packaging instruction is packaged into a standard installation package according to the preset packaging specifications; wherein, the standard installation package includes at least: application basic information file, default configuration file and template directory file; The standard installation package is transmitted to the application management platform for application management. The step of packaging the target application corresponding to the application packaging instruction into a standard installation package according to the preset packaging specifications includes: Obtain a pre-created set of application files containing container resources; wherein, the set of application files includes: application basic information file, text-formatted license agreement, application introduction, usage instructions and guide, default value configuration file, directory storing application packaging dependencies, and directory storing deployment template files; The application file set is used as the preset packaging specification to package the target application to obtain a standard installation package; The basic information of the target application is stored in the application basic information file; the application basic information file includes at least the following fields: application interface version, application package name, application version, maintainer name, compatible container version, a list of keywords about the application, and the application's Uniform Resource Locator; The input to the default configuration file includes one of the following: A first default configuration file containing referenceable information is created in the installation package of the target application; wherein, the first default configuration file is in key-value pair form, with container image repository, container image tag, image pull policy, and storage backend as keys, and the corresponding input values of the container image repository, the container image tag, the image pull policy, and the storage backend as values, forming key-value pairs; Create a second default configuration file containing the necessary values in the installation package of the target application, and use the second default configuration file via the Helm Install command.
2. The method according to claim 1, characterized in that, The method further includes: In response to the target user's first operation command to the target application in the application store within the application management platform, the standard installation package of the target application is downloaded and installed; Obtain the default configuration file and pre-configured container resource template of the target application; The default configuration file and the container resource template are rendered to generate a result description file, which is then loaded into the container management platform for execution.
3. The method according to claim 2, characterized in that, The container resource template is written in Go template language and stored in a template directory file. The fields in the container resource template include at least: container resource type, container version, metadata, application package name, tag, container name, image, image pull strategy, and value. Among them, the image field information includes container image repository and container image tag; the image pull strategy field includes pull strategy; and the value field information includes the storage backend of the value.
4. The method according to claim 2, characterized in that, The step of rendering the default configuration file and the container resource template to generate a result description file includes: Find the following fields in the container resource template: image, image pull strategy, and value; The key-value pair variables in the default configuration file are replaced with the image, the image pull strategy, and the information corresponding to the value for rendering to generate a result description file.
5. The method according to claim 1, characterized in that, The method further includes: Upon receiving the developer's second operation instruction, the system downloads and installs the standard installation package of the target application, tests the target application according to its type, and sends the successfully tested application to the application management platform for the administrator to review.
6. The method according to claim 1, characterized in that, The method further includes: Upon receiving the application review instruction from the administrator, the system reviews the target application in the application management platform, selects the appropriate testing method according to the type of the target application, tests the target application, and uploads the successfully tested application to the application store in the application management platform.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the application management method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the application management method according to any one of claims 1-6.
Citation Information
Patent Citations
Data processing method and device for application program, equipment and storage medium
CN114675872A
Software package making method and device, electronic equipment and storage medium
CN114706564A
