Application Deployment Method, Device, Equipment and Storage Medium

By creating a target workspace in memory and filtering shared configuration files, the problem of configuration file reuse between front-end functional modules is solved, and configuration file reuse is realized, improving application deployment efficiency and data throughput efficiency.

CN116088879BActive Publication Date: 2025-07-18CCB FINTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310095262.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2025-07-18
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

Because the workspaces of front-end functional modules are isolated from each other's data, the configuration file package cannot be reused, resulting in wasted computer resources.

Method used

By creating a target workspace corresponding to the application in memory, filtering and installing configuration files in the shared workspace, and creating soft links, the configuration files are reused.

Benefits of technology

It improves the deployment efficiency of applications, reduces the waste of computer memory resources, and improves the data throughput efficiency of workspace.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088879B_ABST
    Figure CN116088879B_ABST
Patent Text Reader

Abstract

The present disclosure provides an application deployment method, apparatus, device, and storage medium, which can be applied to the fields of computer technology and financial technology. The method includes: in response to receiving a deployment instruction for a first application, obtaining an installation file package to be installed and an installed first configuration file, where the installation file package to be installed includes a plurality of second configuration files required during the operation of the first application; the installed configuration file is obtained from a shared workspace in the memory; creating a target workspace corresponding to the first application in the memory; screening out a third configuration file to be installed from the plurality of second configuration files according to the first configuration file; and installing the third configuration file in the shared workspace and creating first target link information to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration file in the shared workspace.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of computer technology and financial technology, and in particular, to an application deployment method, apparatus, device, medium, and program product. Background Art

[0002] Currently, the front-end function modules are mainly built through the jenkins integration tool. In the related art, the front-end function modules will set up workspaces with mutually isolated data in the memory area.

[0003] In the process of implementing the inventive concept of the present disclosure, the inventors found that due to the mutual data isolation of the workspaces of the front-end function modules, the configuration file packages cannot be reused, and some of the configuration files in many function modules are the same. Therefore, this way of repeatedly installing the configuration files causes waste of computer resources. Summary of the Invention

[0004] In view of the above problems, the present disclosure provides an application deployment method, apparatus, device, medium, and program product.

[0005] According to a first aspect of the present disclosure, there is provided an application deployment method, including:

[0006] In response to receiving a deployment instruction for a first application, obtaining an installation file package to be installed and an installed first configuration file, where the installation file package to be installed includes a plurality of second configuration files required when the first application runs; the installed configuration file is obtained from a shared workspace in the memory; creating a target workspace corresponding to the first application in the memory; screening, according to the first configuration file, a third configuration file to be installed from the plurality of second configuration files; and installing the third configuration file in the shared workspace and creating first target link information to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration file in the shared workspace.

[0007] According to an embodiment of the present disclosure, creating the target workspace corresponding to the first application in the memory includes: obtaining the memory space requirement information and identification information of the first application; creating the target workspace in the memory according to the memory space requirement information, and recording the memory address information of the target workspace; and associatively storing the memory address information with the identification information.

[0008] According to an embodiment of the present disclosure, creating the target working space in the memory according to the memory space requirement information includes: querying a candidate working space from the memory according to the memory space requirement information; and deleting the installed configuration files in the candidate working space to obtain the target working space.

[0009] According to an embodiment of the present disclosure, screening the third configuration file to be installed from the plurality of second configuration files according to the first configuration file includes: obtaining a comparison result of the configuration files by comparing the first configuration file with the plurality of second configuration files; and determining, according to the comparison result, the configuration files that are different from the first configuration file as the third configuration file.

[0010] According to an embodiment of the present disclosure, the application deployment method further includes: traversing the deployed working spaces in the memory, where the deployed working spaces store the fourth configuration files required for the operation of the second application; deleting the fourth configuration files in the deployed working spaces; and performing a deployment operation for the second application.

[0011] According to an embodiment of the present disclosure, performing the deployment operation for the second application includes: screening the fifth configuration file to be installed from the fourth configuration files according to the first configuration file and the third configuration file; and installing the fifth configuration file in the shared working space and creating second target link information to complete the deployment operation for the second application, where the second target link information represents the reference path information required when the second application calls the configuration files in the shared working space.

[0012] A second aspect of the present disclosure provides an application deployment device, including: an acquisition module, configured to acquire a file package to be installed and an installed first configuration file in response to receiving a deployment instruction for a first application, where the file package to be installed includes a plurality of second configuration files required for the operation of the first application; the installed configuration file is obtained from a shared working space in the memory; a creation module, configured to create a target working space corresponding to the first application in the memory; an obtaining module, configured to screen the third configuration file to be installed from the plurality of second configuration files according to the first configuration file; and an installation module, configured to install the third configuration file in the shared working space and create first target link information to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration files in the shared working space.

[0013] A third aspect of the present disclosure provides an electronic device, including: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above method.

[0014] A fourth aspect of the present disclosure further provides a computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor is caused to execute the above method.

[0015] A fifth aspect of the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0016] According to the application deployment method, device, equipment, medium, and program product provided by the present disclosure, by creating a target workspace corresponding to an application when receiving a deployment instruction of the application, and filtering out the configuration files to be installed from the configuration files to be installed, and creating a soft link between the target workspace corresponding to the application and the shared workspace when the installation process of the filtered configuration files is completed, so as to implement the deployment of the application. Since the application can call the configuration files from the shared workspace through the created soft link, the deployment efficiency of the application is improved, and the repeated installation of the configuration files in the workspace is avoided, the reuse of the configuration files is realized, the waste of computer memory resources is reduced, and thus the data throughput efficiency of the workspace can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above content and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:

[0018] Figure 1 Schematically shows an application scenario diagram of the application deployment method according to an embodiment of the present disclosure;

[0019] Figure 2 Schematically shows a flowchart of the application deployment method according to an embodiment of the present disclosure;

[0020] Figure 3 Schematically shows a flowchart of the method for creating a workspace according to an embodiment of the present disclosure;

[0021] Figure 4 Schematically shows a flowchart of the method for deploying a second application according to an embodiment of the present disclosure;

[0022] Figure 5 Schematically shows a structural block diagram of the application deployment device according to an embodiment of the present disclosure; and

[0023] Figure 6A block diagram of an electronic device suitable for implementing an application deployment method according to an embodiment of the present disclosure is schematically shown. Detailed implementation manners

[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, obviously, one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.

[0025] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0026] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0027] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but not be limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0028] In the technical solution of the present disclosure, the processing of the data involved (such as including but not limited to user personal information) in terms of collection, storage, use, processing, transmission, provision, disclosure, and application, etc. all comply with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and public order and good customs are not violated.

[0029] In the process of constructing the front-end function modules, each front-end function module needs to establish a pipeline, and each pipeline needs to establish a working space.

[0030] Since the working spaces are isolated from each other in terms of data, the configuration file packages cannot be reused, and more than 95% of the configuration file packages in most function modules are the same. This way of repeatedly installing the configuration files causes waste of computer resources.

[0031] In view of this, embodiments of the present disclosure provide an application deployment method, including:

[0032] In response to receiving a deployment instruction for a first application, obtain an installation file package to be installed and an installed first configuration file. The installation file package to be installed includes a plurality of second configuration files required during the operation of the first application; the installed configuration file is obtained from a shared workspace in the memory; create a target workspace corresponding to the first application in the memory; screen out a third configuration file to be installed from the plurality of second configuration files according to the first configuration file; and install the third configuration file in the shared workspace and create first target link information to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration file in the shared workspace.

[0033] Figure 1 Schematically shows an application scenario diagram of the application deployment method according to an embodiment of the present disclosure.

[0034] As Figure 1 shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0035] A user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0036] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0037] The server 105 may be a server that provides various services. For example, it may be a background management server (merely an example) that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process data such as user requests received, and feedback the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0038] It should be noted that the application deployment method provided in the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the application deployment device provided in the embodiments of the present disclosure can generally be set in the server 105. The application deployment method provided in the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105. Correspondingly, the application deployment device provided in the embodiments of the present disclosure can also be set in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105.

[0039] It should be understood that Figure 1 the numbers of terminal devices, networks, and servers in

[0040] are merely illustrative. According to implementation requirements, there can be any number of terminal devices, networks, and servers. Figure 1 are merely illustrative. According to implementation requirements, there can be any number of terminal devices, networks, and servers. Figures 2 to 4 Based on the scenarios described below, the application deployment method of the disclosed embodiments will be described in detail through

[0041] Figure 2 FIG. schematically shows a flowchart of the application deployment method according to an embodiment of the present disclosure.

[0042] As Figure 2 shown, the application deployment method of this embodiment includes operation S210 to operation S240.

[0043] In operation S210, in response to receiving a deployment instruction for a first application, obtain a file package to be installed and an already installed first configuration file. The file package to be installed includes a plurality of second configuration files required when the first application runs; the installed configuration file is obtained from the shared working space in the memory.

[0044] According to an embodiment of the present disclosure, the first application may be an application that requires deployment of configuration files. The configuration files can be used for the operation of the first application. By deploying configuration files to the first application, the first application can run properly.

[0045] According to an embodiment of the present disclosure, the first configuration file may be a configuration file that has been installed in the shared workspace for the normal operation of the first application. The second configuration file may be a configuration file to be installed in the shared workspace for the normal operation of the first application. When the operation of the first application requires the second configuration file, the second configuration file may be installed in the shared workspace so that the first application can operate normally through the installed second configuration file and the first configuration file.

[0046] According to an embodiment of the present disclosure, the file package to be installed may be a configuration file package for the operation of the first application, may include a second configuration file for deploying the first application, and the first application can operate normally by installing the file package to be installed. The file package to be installed may be obtained from the memory.

[0047] According to an embodiment of the present disclosure, the shared workspace may be a memory space for installing configuration files, and configuration files can be installed in the shared workspace. The first application can operate normally through the configuration files in the shared workspace.

[0048] In operation S220, a target workspace corresponding to the first application is created in the memory.

[0049] According to an embodiment of the present disclosure, for example, the identifier of the first application may be determined, and then a workspace corresponding to the identifier of the first application is created from the memory. The memory size occupied by the created workspace may be determined according to the memory size required by the first application.

[0050] In operation S230, according to the first configuration file, a third configuration file to be installed is filtered out from multiple second configuration files.

[0051] According to an embodiment of the present disclosure, for example, the second configuration files may include configuration files that are the same as the first configuration file and configuration files that are different from the first configuration file. Filtering out the third configuration file to be installed from multiple second configuration files according to the first configuration file may be, for example, determining the configuration files that are different from the first configuration file from the second configuration files and using the configuration files that are different from the first configuration file as the third configuration file.

[0052] According to an embodiment of the present disclosure, for example, by determining the third configuration file that is different from the first configuration file, the third configuration file may be installed in the shared workspace to increase the configuration files required by the first application in the shared workspace, and then based on the various installed configuration files in the shared workspace, the operation requirements of the first application can be met and the first application can operate normally.

[0053] In operation S240, a third configuration file is installed in the shared workspace, and first target link information is created to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration file in the shared workspace.

[0054] According to an embodiment of the present disclosure, the reference path information can correspond to the configuration file in the workspace, can represent the location of the configuration file in memory, and the application can call the configuration file in the workspace through the location of the configuration file in memory represented in the reference path information.

[0055] According to an embodiment of the present disclosure, when the operation of the first application requires the third configuration file, the first application can call the third configuration file corresponding to the first target link information in the shared workspace through the first target link information.

[0056] According to an embodiment of the present disclosure, the shared workspace and the target workspace corresponding to the first application can be associated through the first target link information. For example, the first application can call the third configuration file from the shared workspace based on the first target link information.

[0057] According to an embodiment of the present disclosure, for example, when the operation of the first application requires the first configuration file, the first configuration file can be called from the shared workspace through the target link information corresponding to the first configuration file.

[0058] According to an embodiment of the present disclosure, by creating a target workspace corresponding to the application and screening out the configuration files to be installed from the configuration files to be installed when receiving the deployment instruction of the application, and creating a soft link between the target workspace corresponding to the application and the shared workspace when the installation process of the screened configuration files is completed, the deployment of the application is realized. Since the application can call the configuration file from the shared workspace through the created soft link, the deployment efficiency of the application is improved, and the repeated installation of the configuration file in the workspace by the application is avoided, the reuse of the configuration file is realized, the waste of computer memory resources is reduced, and thus the data throughput efficiency of the workspace can be improved.

[0059] According to an embodiment of the present disclosure, for example, the configuration files to be installed can be pre-stored in the database. When the workspace needs to install the configuration file, the required configuration files to be installed can be determined from the database through the identification information corresponding to the configuration file. When the required configuration files to be installed are determined, the file can be installed in the workspace.

[0060] Figure 3 The flowchart of the method for creating a workspace according to an embodiment of the present disclosure is schematically shown.

[0061] As Figure 3 shown, the method for creating a workspace in this embodiment includes operations S310 to S330.

[0062] In operation S310, obtain the memory space requirement information and identification information of the first application.

[0063] According to an embodiment of the present disclosure, the memory space requirement information may include the memory occupancy information of the workspace to be created, and the size of the memory space required to create a workspace corresponding to the first application can be determined through the memory space requirement information.

[0064] According to an embodiment of the present disclosure, the identification information may be the identification information of the first application, and the created workspace can be associated according to the identification information of the first application.

[0065] In operation S320, according to the memory space requirement information, create a target workspace in the memory and record the memory address information of the target workspace.

[0066] According to an embodiment of the present disclosure, for example, the memory occupancy of the created target workspace can be determined according to the memory occupancy information of the workspace to be created in the memory space requirement information, and then the target workspace can be created according to the memory occupancy of the target workspace.

[0067] According to an embodiment of the present disclosure, the memory address information may be the address information of the created target workspace in the memory. The location of the target workspace in the memory can be determined according to the memory address information.

[0068] According to an embodiment of the present disclosure, when the creation of the target workspace is completed, the memory address information of the target workspace can be recorded. Through the recorded memory address information, the address location of the target workspace in the memory can be determined, and the memory address information can be recorded in the database.

[0069] In operation S330, associate and store the memory address information with the identification information.

[0070] According to an embodiment of the present disclosure, the recorded memory address information can be associated and stored with the identification information of the first application, so as to determine the memory address information corresponding to the first application through the identification information, and further, the target workspace corresponding to the first application can be determined through the memory address information corresponding to the first application. The target workspace may include installed configuration files. When the target workspace corresponding to the first application is determined, the installed configuration files in the target workspace can be called through the link information corresponding to the first application.

[0071] According to an embodiment of the present disclosure, since a working space that meets the application memory space requirement is created in the memory according to the memory space requirement information, the deployment efficiency of the application can be improved. Moreover, since the identification information of the application is associated and stored with the memory address of the created working space, the association between the application and the created working space is realized.

[0072] According to an embodiment of the present disclosure, creating a target working space in the memory according to the memory space requirement information includes:

[0073] querying a candidate working space from the memory according to the memory space requirement information; and

[0074] deleting the installed configuration files in the candidate working space to obtain the target working space.

[0075] According to an embodiment of the present disclosure, the candidate working space may be the memory space for establishing the target working space. The target working space can be obtained according to the candidate working space.

[0076] According to an embodiment of the present disclosure, a candidate working space that meets the memory space requirement of the first application can be queried from the memory according to the memory space requirement information.

[0077] According to an embodiment of the present disclosure, the installed configuration files in the candidate working space can be deleted, and the working space after the configuration file deletion is completed is used as the target working space.

[0078] According to an embodiment of the present disclosure, for example, when the installed configuration files in the candidate working space are the same as those in the shared working space, the installed configuration files in the candidate working space can be directly deleted; when the installed configuration files in the candidate working space are different from those in the shared working space, the same configuration files can be installed in the shared working space according to the installed configuration files in the candidate working space, and then the installed configuration files in the candidate working space can be deleted. By installing the same configuration files in the shared working space according to the installed configuration files in the candidate working space, when the first application deletes the above configuration files in the candidate working space through the corresponding link information, the same configuration files can be called from the shared working space to enable the first application to run normally.

[0079] According to an embodiment of the present disclosure, since a candidate working space that meets the application space memory requirement is queried from the memory according to the memory space requirement information, and then the installed configuration files in the candidate working space are deleted to reuse the vacant working space, the waste of computer resources is reduced by reusing the vacant working space.

[0080] According to an embodiment of the present disclosure, screening a third configuration file to be installed from a plurality of second configuration files according to a first configuration file includes:

[0081] Obtaining a comparison result of the configuration files by comparing the first configuration file with the plurality of second configuration files; and

[0082] Determining, according to the comparison result, a configuration file that is different from the first configuration file as the third configuration file.

[0083] According to an embodiment of the present disclosure, the comparison result may indicate whether the first configuration file is the same as the second configuration file. When the first configuration file is the same as the second configuration file, the comparison result may indicate that the configuration files are the same; when the first configuration file is different from the second configuration file, the comparison result may indicate that the configuration files are different. For example, the plurality of second configuration files may include a configuration file A, a configuration file B, a configuration file C, and a configuration file D, and the first configuration file may be the configuration file A. When both the first configuration file and the second configuration file represent the configuration file A, the comparison result may be indicated as that the configuration files are the same; when the second configuration file includes the configuration file B, the configuration file C, and the configuration file D, the comparison result may be different.

[0084] According to an embodiment of the present disclosure, a configuration file that is different from the first configuration file may be determined as the third configuration file, and the third configuration file may be installed in a shared workspace. When the installation of the third configuration file is completed, first link information corresponding to the third configuration file may be generated, and a first application may call the third configuration file from the shared workspace through the first link information.

[0085] According to an embodiment of the present disclosure, since a comparison result of the configuration files is obtained by comparing the first configuration file with the plurality of second configuration files, and then a configuration file that is different from the first configuration file is determined as the third configuration file according to the comparison result, the third configuration file can be installed in the shared workspace, thereby realizing the reuse of the third configuration file and reducing the waste of computer resources.

[0086] Figure 4 Schematically shows a flowchart of a method for deploying a second application according to an embodiment of the present disclosure.

[0087] As Figure 4 shown, the method for deploying the second application in this embodiment includes operation S410 to operation S430.

[0088] In operation S410, traverse the deployed workspaces in the memory, and the deployed workspaces store the fourth configuration files required for the operation of the second application.

[0089] According to an embodiment of the present disclosure, the second application can call the fourth configuration file from the workspace through link information.

[0090] According to an embodiment of the present disclosure, the first application and the second application can call the third configuration file from the shared workspace through the first link information.

[0091] In operation S420, the fourth configuration file in the deployed workspace is deleted.

[0092] According to an embodiment of the present disclosure, the fourth configuration file in the workspace corresponding to the second application can be deleted, the configuration file identical to the fourth configuration file can be installed in the shared workspace, and when the configuration file identical to the fourth configuration file is installed, the link information corresponding to the configuration file can be created. For example, when the operation of the first application or the second application requires the configuration file, the configuration file can be called from the shared workspace through the link information corresponding to the configuration file.

[0093] In operation S430, a deployment operation for the second application is performed.

[0094] According to an embodiment of the present disclosure, the deployment operation may be to install a configuration file identical to the fourth configuration file in the shared workspace and create link information corresponding to the fourth configuration file, so that the second application can call the configuration file identical to the fourth configuration file from the shared workspace through the link information.

[0095] According to an embodiment of the present disclosure, since the configuration file stored in the deployed workspace is deleted and the deleted configuration file is installed in the shared workspace, the reuse of the configuration file is realized, and the waste of computer resources is reduced.

[0096] According to an embodiment of the present disclosure, performing the deployment operation for the second application includes:

[0097] Filtering out the fifth configuration file to be installed from the fourth configuration file according to the first configuration file and the third configuration file; and

[0098] Installing the fifth configuration file in the shared workspace and creating second target link information to complete the deployment operation for the second application, where the second target link information represents the reference path information required when the second application calls the configuration file in the shared workspace.

[0099] According to an embodiment of the present disclosure, the fifth configuration file may be a configuration file different from the first configuration file and the third configuration file.

[0100] According to an embodiment of the present disclosure, a fifth configuration file to be installed is screened from a fourth configuration file according to a first configuration file and a third configuration file. For example, the fourth configuration file can be compared with the first configuration file and the third configuration file already installed in the shared workspace, and then according to the comparison result, the configuration file that is different from the first configuration file and the third configuration file is determined as the fifth configuration file.

[0101] According to an embodiment of the present disclosure, when the fifth configuration file is determined, the fifth configuration file can be installed in the shared workspace, and second target link information corresponding to the fifth configuration file can be created. When the operation of the application requires the fifth configuration file, the fifth configuration file can be called through the second target link information.

[0102] According to an embodiment of the present disclosure, the shared workspace and the workspace corresponding to the second application can be associated through the second target link information. For example, the second application can call the fifth configuration file from the shared workspace based on the second target link information.

[0103] According to an embodiment of the present disclosure, the second target link information can correspond to the fifth configuration file. For example, when the operation of the first application or the second application requires the fifth configuration file, the fifth configuration file can be called from the shared workspace through the second target link information, so that the first application or the second application can run normally.

[0104] According to an embodiment of the present disclosure, by screening the configuration file to be installed from the deleted configuration file, then installing the configuration file to be installed in the shared workspace, and creating link information corresponding to the configuration file, so that the application can call the configuration file through the link information, the deployment operation for the application is completed, and the deployment efficiency of the application is improved.

[0105] Based on the above application deployment method, the present disclosure also provides an application deployment device. The following will be combined with Figure 5 This device will be described in detail.

[0106] Figure 5 The structural block diagram of the application deployment device according to an embodiment of the present disclosure is schematically shown.

[0107] As Figure 5 shown, the application deployment device 500 of this embodiment includes an acquisition module 510, a creation module 520, an obtaining module 530, and an installation module 540.

[0108] The obtaining module 510 is configured to obtain a file package to be installed and an installed first configuration file in response to receiving a deployment instruction for a first application. The file package to be installed includes a plurality of second configuration files required during the operation of the first application. The installed configuration file is obtained from the shared working space in the memory. In one embodiment, the obtaining module 510 may be configured to perform the operation S210 described above, which will not be elaborated herein.

[0109] The creating module 520 is configured to create a target working space corresponding to the first application in the memory. In one embodiment, the creating module 520 may be configured to perform the operation S220 described above, which will not be elaborated herein.

[0110] The obtaining module 530 is configured to screen and obtain a third configuration file to be installed from the plurality of second configuration files according to the first configuration file. In one embodiment, the obtaining module 530 may be configured to perform the operation S230 described above, which will not be elaborated herein.

[0111] The installing module 540 is configured to install the third configuration file in the shared working space and create first target link information to complete the deployment operation for the first application. The first target link information represents the reference path information required when the first application calls the configuration file in the shared working space. In one embodiment, the installing module 540 may be configured to perform the operation S240 described above, which will not be elaborated herein.

[0112] According to an embodiment of the present disclosure, the creating module 520 includes an obtaining sub-module, a creating sub-module, and a storing sub-module. The obtaining sub-module is configured to obtain the memory space requirement information and identification information of the first application. The creating sub-module is configured to create a target working space in the memory according to the memory space requirement information and record the memory address information of the target working space. The storing sub-module is configured to associate and store the memory address information with the identification information.

[0113] According to an embodiment of the present disclosure, the creating sub-module includes a query unit and a deleting unit. The query unit is configured to query a candidate working space from the memory according to the memory space requirement information. The deleting unit is configured to delete the installed configuration files in the candidate working space to obtain the target working space.

[0114] According to an embodiment of the present disclosure, the obtaining module 530 includes an obtaining sub-module and a determining sub-module. The obtaining sub-module is configured to obtain a comparison result of the configuration files by comparing the first configuration file with the plurality of second configuration files. The determining sub-module is configured to determine the configuration files that are different from the first configuration file as the third configuration files according to the comparison result.

[0115] According to an embodiment of the present disclosure, the above application deployment device further includes a traversal module, a deletion module, and an execution module. Among them, the traversal module is used to traverse the deployed workspaces in the memory, and the deployed workspaces store the fourth configuration files required for the second application to run; the deletion module is used to delete the fourth configuration files in the deployed workspaces; the execution module is used to execute the deployment operation for the second application.

[0116] According to an embodiment of the present disclosure, the execution module includes a screening sub-module and an installation sub-module. Among them, the screening sub-module is used to screen out the fifth configuration files to be installed from the fourth configuration files according to the first configuration file and the third configuration file; the installation sub-module is used to install the fifth configuration files in the shared workspace and create second target link information to complete the deployment operation for the second application, and the second target link information represents the reference path information required when the second application calls the configuration files in the shared workspace.

[0117] According to an embodiment of the present disclosure, any multiple of the acquisition module 510, the creation module 520, the obtaining module 530, and the installation module 540 can be combined and implemented in one module, or any one of them can be split into multiple modules. Or, 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. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the creation module 520, the obtaining module 530, and the installation module 540 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 chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Or, at least one of the acquisition module 510, the creation module 520, the obtaining module 530, and the installation module 540 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions can be executed.

[0118] Figure 6 A block diagram of an electronic device suitable for implementing the application deployment method according to an embodiment of the present disclosure is schematically shown.

[0119] As Figure 6As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general microprocessor (e.g., CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (e.g., an application specific integrated circuit (ASIC)), etc. The processor 601 may also include on-board memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0120] In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to an embodiment of the present disclosure by executing the program in the ROM 602 and / or the RAM 603. It should be noted that the program may also be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 may also perform various operations of the method flow according to an embodiment of the present disclosure by executing the program stored in the one or more memories.

[0121] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, and the input / output (I / O) interface 605 is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.

[0122] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, a method according to an embodiment of the present disclosure is implemented.

[0123] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, 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 of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the above-described ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603.

[0124] An embodiment of the present disclosure further includes a computer program product, which includes a computer program that contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the application deployment method provided by the embodiment of the present disclosure.

[0125] When the computer program is executed by the processor 601, it executes the above functions defined in the system / apparatus of the embodiment of the present disclosure. According to an embodiment of the present disclosure, the above-described systems, apparatuses, modules, units, etc. may be implemented by computer program modules.

[0126] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium and downloaded and installed through the communication part 609, and / or installed from the removable medium 611. The program code included in the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0127] In such an embodiment, the computer program may be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, it executes the above functions defined in the system of the embodiment of the present disclosure. According to an embodiment of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. may be implemented by computer program modules.

[0128] According to embodiments of the present disclosure, program code for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. The programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).

[0129] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0130] Those skilled in the art can understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined or / and combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0131] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims

1. An application deployment method, comprising: Upon receiving a deployment instruction for a first application, obtaining an installation file package to be installed and an installed first configuration file, wherein the installation file package to be installed includes a plurality of second configuration files required during the operation of the first application; The installed first configuration file is obtained from a shared workspace in the memory; Creating a target workspace corresponding to the first application in the memory, including: obtaining memory space requirement information and identification information of the first application; querying the memory according to the memory space requirement information to obtain a candidate workspace; deleting the installed configuration files in the candidate workspace to obtain the target workspace; recording the memory address information of the target workspace; and associatively storing the memory address information with the identification information; Filtering out a third configuration file to be installed from the plurality of second configuration files according to the first configuration file; and Installing the third configuration file in the shared workspace and creating first target link information to complete the deployment operation for the first application; the first target link information represents the reference path information required when the first application calls the configuration files in the shared workspace.

2. The method according to claim 1, wherein The filtering out a third configuration file to be installed from the plurality of second configuration files according to the first configuration file includes: Obtaining a comparison result of the configuration files by comparing the first configuration file with the plurality of second configuration files; and Determining, according to the comparison result, the configuration files that are different from the first configuration file as the third configuration file.

3. The method according to claim 1, further comprising: Traversing the deployed workspaces in the memory, where the deployed workspaces store fourth configuration files required during the operation of a second application; Deleting the fourth configuration files in the deployed workspaces; And Performing a deployment operation for the second application.

4. The method according to claim 3, wherein, The performing a deployment operation for the second application includes: Filtering out a fifth configuration file to be installed from the fourth configuration files according to the first configuration file and the third configuration file; and Installing the fifth configuration file in the shared workspace and creating second target link information to complete the deployment operation for the second application, the second target link information represents the reference path information required when the second application calls the configuration files in the shared workspace.

5. An application deployment apparatus, comprising: An obtaining module, configured to obtain an installation file package to be installed and an installed first configuration file upon receiving a deployment instruction for a first application, wherein the installation file package to be installed includes a plurality of second configuration files required during the operation of the first application; the installed first configuration file is obtained from a shared workspace in the memory; A creation module, configured to create a target working space corresponding to the first application in the memory, including: obtaining memory space requirement information and identification information of the first application; querying a candidate working space from the memory according to the memory space requirement information; deleting installed configuration files in the candidate working space to obtain the target working space; recording memory address information of the target working space; and associatively storing the memory address information and the identification information; An obtaining module, configured to screen out a third configuration file to be installed from the multiple second configuration files according to the first configuration file; and An installation module, configured to install the third configuration file in the shared working space and create first target link information to complete the deployment operation for the first application; the first target link information represents reference path information required when the first application calls the configuration file in the shared working space.

6. An electronic device, including: One or more processors; A storage device, configured to store one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 4.

8. A computer program product, including a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Big data cluster management control method and device, computer equipment and storage medium

    CN111026723A

  • Application program deployment method and device for multiple Android system terminals

    CN111158711A