CN114443104A - Application deployment method and device, storage medium and electronic device - Google Patents

Application deployment method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114443104A
CN114443104A CN202210353107.9A CN202210353107A CN114443104A CN 114443104 A CN114443104 A CN 114443104A CN 202210353107 A CN202210353107 A CN 202210353107A CN 114443104 A CN114443104 A CN 114443104A
Authority
CN
China
Prior art keywords
parameter
application
target
deployment
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210353107.9A
Other languages
Chinese (zh)
Other versions
CN114443104B (en
Inventor
李朝光
王志
林亦宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shanma Zhijian Technology Co ltd
Original Assignee
Beijing Shanma Zhijian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shanma Zhijian Technology Co ltd filed Critical Beijing Shanma Zhijian Technology Co ltd
Priority to CN202210353107.9A priority Critical patent/CN114443104B/en
Publication of CN114443104A publication Critical patent/CN114443104A/en
Application granted granted Critical
Publication of CN114443104B publication Critical patent/CN114443104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention provides an application deployment method, an application deployment device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving an application deployment script and a parameter configuration instruction, wherein the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating and configuring a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application; configuring a first parameter and a second parameter based on the parameter configuration instruction to obtain a target application deployment script; and running the target application deployment script to deploy the target application to the deployment environment in the target cluster. By the method and the device, the problem of low application deployment efficiency in the related technology is solved, and the effect of improving the application deployment efficiency is achieved.

Description

Application deployment method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a deployment method and device of an application, a storage medium and an electronic device.
Background
With the continuous development of cloud computing and virtualization technologies, more and more enterprises embrace cloud computing and step into the container cloud era, and the container virtualization technology is greatly developed and applied in the scientific and technological industry represented by the internet and becomes a cornerstone of infrastructures of enterprises and public and private cloud manufacturers.
In the related art, various service applications running on top of the kubertes container management platform are deployed, typically in a manner built by writing YAML files of the applications. By manually editing the various yaml resource manifest files, the required configuration is declared and ultimately applied. The method not only examines the proficiency of developers on Kubertes and various resource configurations thereof, but also has the advantages of no template, manual writing, long time consumption, high input error rate, higher use cost and low overall efficiency.
Therefore, the problem of low application deployment efficiency exists in the related art.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an application deployment method, an application deployment device, a storage medium and an electronic device, and aims to at least solve the problem of low application deployment efficiency in the related art.
According to an embodiment of the present invention, there is provided an application deployment method including: receiving an application deployment script and a parameter configuration instruction, wherein the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating configuration of a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application; configuring the first parameter and the second parameter based on the parameter configuration instruction to obtain a target application deployment script; running the target application deployment script to deploy the target application into the deployment environment in the target cluster.
According to another embodiment of the present invention, there is provided an application deployment apparatus including: the system comprises a receiving module, a configuration module and a configuration module, wherein the receiving module is used for receiving an application deployment script and a parameter configuration instruction, the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating and configuring a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application; the configuration module is used for configuring the first parameter and the second parameter based on the parameter configuration instruction to obtain a target application deployment script; and the deployment module is used for running the target application deployment script so as to deploy the target application to the deployment environment in the target cluster.
According to yet another embodiment of the invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, an application deployment script and a parameter configuration instruction are received, the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration information is used for indicating a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application. And configuring the first parameter and the second parameter according to the parameter configuration instruction to obtain a target application deployment script, and running the target application deployment script to deploy the target application to a deployment environment in the target cluster. Because the target application can be deployed in a mode of configuring the application deployment script, the problem of low application deployment efficiency in the related technology can be solved, and the effect of improving the application deployment efficiency is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an application deployment method of an embodiment of the present invention;
FIG. 2 is a flow chart of a method of deployment of an application according to an embodiment of the invention;
fig. 3 is a block diagram of a deployment apparatus of an application according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Various service applications running on a Kuberttes container management platform are deployed, and the construction technology mainly comprises the following steps: 1. constructed by writing the YAML file of the application. 2. The file construction of the application is written by Kustomize. 3. And writing an application file through a package manager Helm to construct.
The above 3 methods can achieve the purpose of constructing and releasing application on the container platform, but each method is suitable for different working scenes, technical backgrounds and production requirements; the first method is mainly to declare the needed configuration and finally apply by manually editing various yaml resource list files; the second method is that a Kubertes native concept is used to create and multiplex a resource configuration YAML file, an application description YAML file is taken as a basis (Base YAML), and then a description file required by the final deployment of the application is generated in an Overlay manner; the third method encapsulates a series of YAML files of an application program on kubernets by managing Helm Chart, customizes some Metadata of the application program when deploying the application, combines and packages all kubernets API object declaration files required for creating one application, and finally applies the combined and packaged kubernets API object declaration files.
The YAML file construction of the application is compiled and the file construction of the application is compiled through Kustomize, and the two methods not only test the proficiency of developers on Kuberntes and various resource configurations thereof, but also have no template, are manually compiled, are long in time consumption, high in input error rate, high in use cost and low in overall efficiency.
The third method still has many differences in the specific form and principle of the treatment. Generally, Helm installs a designated Chart through install option, but the flexibility is not high, the functional structure is single, and the production requirement of an enterprise under a complex environment cannot be met.
In view of the above problems in the related art, the following embodiments are proposed:
the method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the application running on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of an application deployment method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the deployment method of the application in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet via wireless.
In this embodiment, a deployment method of an application is provided, and fig. 2 is a flowchart of the deployment method of an application according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving an application deployment script and a parameter configuration instruction, wherein the application deployment script includes identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating configuration of a first parameter and a second parameter included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application;
step S204, configuring the first parameter and the second parameter based on the parameter configuration instruction to obtain a target application deployment script;
step S206, running the target application deployment script to deploy the target application to the deployment environment in the target cluster.
In the above embodiment, Chart of each application can be deployed through a custom script in a way of helm _ vars. The application deployment script can comprise deployment modes of a plurality of applications, when the applications are deployed, the application deployment script can be transmitted to the palm client side, a parameter configuration instruction is input, and after the palm receives the application deployment script and the parameter configuration instruction, the first parameter and the second parameter included in the application deployment script can be configured according to instructions in the parameter configuration instruction. After the first parameter and the second parameter are configured, a storage address of a data packet of the target application to be deployed and a deployment environment for deploying the target application can be determined. When deploying, the data of the target application can be obtained from the storage address, and the target application is deployed in the deployment environment of the target cluster. Wherein the target cluster may be a k8s cluster.
Optionally, the main body of execution of the above steps may be a palm, a background processor, or other devices with similar processing capabilities, and may also be a machine integrated with at least a data processing device, where the data processing device may include a computer, a mobile phone, and other terminals, but is not limited thereto.
According to the invention, an application deployment script and a parameter configuration instruction are received, the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration information is used for indicating a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application. And configuring the first parameter and the second parameter according to the parameter configuration instruction to obtain a target application deployment script, and running the target application deployment script to deploy the target application to a deployment environment in the target cluster. Because the target application can be deployed in a mode of configuring the application deployment script, the problem of low application deployment efficiency in the related technology can be solved, and the effect of improving the application deployment efficiency is achieved.
In one exemplary embodiment, configuring the first parameter and the second parameter based on the parameter configuration instruction includes: obtaining a directory included in the application deployment script; configuring the first parameter and the second parameter based on the parameter configuration instruction if the first parameter and the second parameter are included in the directory; and under the condition that the first parameter and/or the second parameter are not included in the catalogue, executing a first prompting operation. In this embodiment, after receiving the parameter configuration instruction, a directory of the application deployment script may be obtained, and when the directory includes the first parameter and the second parameter, the first parameter and the second parameter are configured according to the parameter configuration instruction, and when at least one of the first parameter and the second parameter is not included in the target, the first prompt operation is executed. The first prompt operation may be to prompt that a certain parameter does not exist in the directory, and the like. For example, the first parameter is not present in the hint target.
In the above embodiment, a custom deployment script may be entered, that is, a directory in which the application deployment script exists is accessed, two parameters for executing the script are checked, two variables, APP = $1 and INSTANCE = $2, are defined, that is, an application and an environment that need to be deployed when the script is executed are accessed, the corresponding directory is accessed to check whether the two given parameters exist, and if the specified parameters do not exist, a corresponding prompt is printed out and the operation is exited.
In one exemplary embodiment, configuring the first parameter and the second parameter based on the parameter configuration instruction includes: determining a configuration file of the target application; determining the configuration file as an attribute value of the application deployment script; updating a parameter included in the application deployment script and used for indicating a storage address of an application to the first parameter; updating the parameter included in the application deployment script and used for indicating the deployment environment for deploying the application to the second parameter. In this embodiment, in configuring the first parameter and the second parameter, a hell option may be constructed, and the attribute value "values" of the application deployment script is assigned to the configuration file value of the target application Chart. "ops" is defined as ops = "- -install $ values $ addition _ hall _ OPTIONS", specifying the value and option of a particular Chart at installation time. That is, according to the content of the application deployment script, two parameters are specified, a first parameter specifying a directory of the application or service, and a second parameter specifying an instance environment where a specific Chart is located, for example: sh datawires/mysql/(which is a first parameter) my-tst (a second parameter), where the first parameter is to specify an application to be deployed, and the second parameter is to specify a specific environment, that is, to deploy a specific application in the specified environment. By specifying the two parameters, deployment of a certain application under a certain environment can be easily realized. An example would mean deploying mysql this service under the my-tst environment (namespace).
In an exemplary embodiment, running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises: determining the value of an execution parameter included in the target application deployment script; and running the target application deployment script under the condition that the value of the execution parameter is a preset value so as to deploy the target application to the target cluster. In this embodiment, whether the target application is to be deployed may be determined by determining the value of the oci parameter. For example, when the value of oci is true, a running target application deployment script is executed to deploy the target application into a deployment environment in the target cluster. Deploying the target application may include installing the target application and upgrading the target application.
In an exemplary embodiment, running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises: determining target content which is different from a historical application deployment script and is included in the target application deployment script, wherein the historical application deployment script is a script of an application deployed in the current target cluster; displaying the target content according to a preset mode; and under the condition that a continuing instruction is received, running the target application deployment script to deploy the target application into the target cluster, wherein the continuing instruction is an instruction input based on the target content. In this embodiment, in deploying the target application, it may be detected whether the target application exists in the target cluster, and in the detecting, a palm diff instruction may be executed, a difference between the source code and the new change code is printed out, and target content different from the historical application deployment script included in the target application deployment script is determined. And judging whether AUTO _ YES is true, if not, executing interaction, and displaying the target content according to a preset mode. The predetermined manner may include displaying the target content in a predetermined format, such as highlighting the target content, magnifying the target content, and so forth. Specifically, newly deployed content or modified content that does not exist may be printed out at the terminal and automatically presented in green as a reminder of the new content.
In the above embodiment, after the target content is displayed in a predetermined manner, the staff may determine whether to continue deployment according to the displayed target content, input an instruction, and if the continuation instruction is received, run the target application deployment script. Wherein the continuation instruction may be "y" input in the interactive window according to the displayed contents.
In an exemplary embodiment, running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises: and stopping running the target application deployment script under the condition of receiving a pause instruction. In this embodiment, when the pause instruction is received, the running of the target application deployment script may be stopped, that is, the program immediately exits, and the deployment or upgrade of the application program is directly finished. Wherein the pause instruction may be "N" input in the interactive window according to the displayed contents.
In an exemplary embodiment, after running the target application deployment script, the method further comprises: determining a deployment result; and executing a second prompt operation based on the deployment result. In this embodiment, after the target application deployment script is run, a deployment result may also be determined, and a second prompt operation may be executed according to the deployment result, where the second prompt operation may include a successful deployment or a failed deployment. And outputting corresponding prompt information when the operation is successful or failed. Namely waiting for the deployment program to execute, wherein the deployment program is correct and the application is successfully deployed, and if the deployment program is incorrect, printing out specific error information.
In the embodiment, a 'helm _ vars' mode is adopted, Chart of each application is deployed through a custom script, and technical improvement suitable for an application deployment method of an enterprise is performed on an original deployment mode. The method is characterized in that a chat warehouse which is self-built or open-source is required to be appointed, the chat warehouse used by an enterprise is diversified based on different platforms, the enterprise uses the Gitlab as the support of the chat warehouse, the application code and the chat warehouse are integrally placed on the Gitlab for hosting, unified management is facilitated, and the code or the appointed chat can be pulled on the Gitlab during use. The method is more suitable for the current situation and the use habit of the enterprise.
The deployment method of the 'palm _ vars' script can effectively solve the problem of singleness of a general deployment application mode of a software official, and the problem of flexible deployment of the application on a Kuberntes platform according with multiple requirements of an enterprise; whether the configured content is correct or not can be easily checked according to the diff and the deployed code, whether the deployment work is continuously executed or not is determined through convenient interactive design, and the platform and the deployment personnel are more flexible, safer and controllable; moreover, the device is simple to deploy and easy to operate, and greatly improves the working efficiency and the production efficiency.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an application deployment apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a deployment apparatus for an application according to an embodiment of the present invention, as shown in fig. 3, the deployment apparatus includes:
a receiving module 32, configured to receive an application deployment script and a parameter configuration instruction, where the application deployment script includes identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used to instruct to configure a first parameter and a second parameter included in the application deployment script, where the first parameter is used to instruct a storage address of a data packet of the target application, and the second parameter is used to instruct a deployment environment in which the target application is deployed;
a configuration module 34, configured to configure the first parameter and the second parameter based on the parameter configuration instruction, so as to obtain a target application deployment script;
a deployment module 36, configured to run the target application deployment script to deploy the target application to the deployment environment in the target cluster.
In an exemplary embodiment, configuration module 34 may implement configuring the first parameter and the second parameter based on the parameter configuration instruction by: obtaining a directory included in the application deployment script; configuring the first parameter and the second parameter based on the parameter configuration instruction if the first parameter and the second parameter are included in the directory; and under the condition that the first parameter and/or the second parameter are not included in the catalogue, executing a first prompting operation.
In an exemplary embodiment, configuration module 34 may implement configuring the first parameter and the second parameter based on the parameter configuration instruction by: determining a configuration file of the target application; determining the configuration file as an attribute value of the application deployment script; updating a parameter included in the application deployment script and used for indicating a storage address of an application to the first parameter; updating the parameter included in the application deployment script and used for indicating the deployment environment for deploying the application to the second parameter.
In an exemplary embodiment, the deployment module 36 may implement running the target application deployment script to deploy the target application into the deployment environment in the target cluster by: determining the value of an execution parameter included in the target application deployment script; and running the target application deployment script under the condition that the value of the execution parameter is a preset value so as to deploy the target application to the deployment environment in the target cluster.
In an exemplary embodiment, the deployment module 36 may implement running the target application deployment script to deploy the target application into the deployment environment in the target cluster by: determining target content which is different from a historical application deployment script and is included in the target application deployment script, wherein the historical application deployment script is a script of an application deployed in the current target cluster; displaying the target content according to a preset mode; and under the condition that a continuing instruction is received, running the target application deployment script to deploy the target application into the target cluster, wherein the continuing instruction is an instruction input based on the target content.
In an exemplary embodiment, the deployment module 36 may implement running the target application deployment script to deploy the target application into the deployment environment in the target cluster by: and stopping running the target application deployment script under the condition of receiving a pause instruction.
In an example embodiment, the apparatus may be configured to determine a deployment result after running the target application deployment script; and executing a second prompt operation based on the deployment result.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention further provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in any of the above.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A deployment method of an application, comprising:
receiving an application deployment script and a parameter configuration instruction, wherein the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating configuration of a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application;
configuring the first parameter and the second parameter based on the parameter configuration instruction to obtain a target application deployment script;
running the target application deployment script to deploy the target application into the deployment environment in the target cluster.
2. The method of claim 1, wherein configuring the first parameter and the second parameter based on the parameter configuration instruction comprises:
obtaining a directory included in the application deployment script;
configuring the first parameter and the second parameter based on the parameter configuration instruction if the first parameter and the second parameter are included in the directory;
and under the condition that the first parameter and/or the second parameter are not included in the catalogue, executing a first prompting operation.
3. The method of claim 2, wherein configuring the first parameter and the second parameter based on the parameter configuration instruction comprises:
determining a configuration file of the target application;
determining the configuration file as an attribute value of the application deployment script;
updating a parameter included in the application deployment script and used for indicating a storage address of an application to the first parameter;
updating the parameter included in the application deployment script and used for indicating the deployment environment for deploying the application to the second parameter.
4. The method of claim 1, wherein running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises:
determining the value of an execution parameter included in the target application deployment script;
and running the target application deployment script under the condition that the value of the execution parameter is a preset value so as to deploy the target application to the deployment environment in the target cluster.
5. The method of claim 4, wherein running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises:
determining target content which is different from a historical application deployment script and is included in the target application deployment script, wherein the historical application deployment script is a script of an application deployed in the current target cluster;
displaying the target content according to a preset mode;
and under the condition that a continuing instruction is received, running the target application deployment script to deploy the target application into the target cluster, wherein the continuing instruction is an instruction input based on the target content.
6. The method of claim 1, wherein running the target application deployment script to deploy the target application to the deployment environment in the target cluster comprises:
and stopping running the target application deployment script under the condition of receiving a pause instruction.
7. The method of claim 1, wherein after running the target application deployment script, the method further comprises:
determining a deployment result;
and executing a second prompt operation based on the deployment result.
8. An apparatus for deploying an application, comprising:
the system comprises a receiving module and a parameter configuration module, wherein the receiving module is used for receiving an application deployment script and a parameter configuration instruction, the application deployment script comprises identification information of a target application to be deployed to a target cluster, and the parameter configuration instruction is used for indicating and configuring a first parameter and a second parameter which are included in the application deployment script, wherein the first parameter is used for indicating a storage address of a data packet of the target application, and the second parameter is used for indicating a deployment environment for deploying the target application;
the configuration module is used for configuring the first parameter and the second parameter based on the parameter configuration instruction to obtain a target application deployment script;
and the deployment module is used for running the target application deployment script so as to deploy the target application to the deployment environment in the target cluster.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202210353107.9A 2022-04-06 2022-04-06 Application deployment method and device, storage medium and electronic device Active CN114443104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210353107.9A CN114443104B (en) 2022-04-06 2022-04-06 Application deployment method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210353107.9A CN114443104B (en) 2022-04-06 2022-04-06 Application deployment method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114443104A true CN114443104A (en) 2022-05-06
CN114443104B CN114443104B (en) 2022-07-05

Family

ID=81359153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210353107.9A Active CN114443104B (en) 2022-04-06 2022-04-06 Application deployment method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114443104B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487891A (en) * 2015-11-26 2016-04-13 航天恒星科技有限公司 Distributed cluster deploying method and system
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
CN109471799A (en) * 2018-10-29 2019-03-15 北京城市网邻信息技术有限公司 A kind of dispositions method of demand environment, device, storage medium and terminal
CN110865840A (en) * 2019-11-18 2020-03-06 上海极链网络科技有限公司 Application management method, device, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
CN105487891A (en) * 2015-11-26 2016-04-13 航天恒星科技有限公司 Distributed cluster deploying method and system
CN109471799A (en) * 2018-10-29 2019-03-15 北京城市网邻信息技术有限公司 A kind of dispositions method of demand environment, device, storage medium and terminal
CN110865840A (en) * 2019-11-18 2020-03-06 上海极链网络科技有限公司 Application management method, device, server and storage medium

Also Published As

Publication number Publication date
CN114443104B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
US20170085419A1 (en) System and method for deploying an application
CN107870771B (en) Application program construction and upgrading method and system
CN105159718B (en) Firmware upgrade method and device
CN112416353A (en) Channel package packaging method and device and computer equipment
EP2492821A1 (en) Method and device for updating data card
CN112035121B (en) Edge application deployment method and system
CN112751692A (en) Service opening method and device
CN113064630A (en) Mobile terminal APP automatic packaging method and system, electronic device and storage medium
CN111158743B (en) Big data operation and maintenance management platform
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN107193565B (en) Method for developing native APP (application) across mobile terminals
CN107526584B (en) Data access method and device
CN110109684B (en) Block chain link point management proxy service installation method, electronic device and storage medium
CN114443104B (en) Application deployment method and device, storage medium and electronic device
CN113419813A (en) Method and device for deploying bare engine management service based on container platform
CN107025126B (en) Resource scheduling method, NFVO and system
US11425203B2 (en) Commissioning a virtualized network function
CN114185557A (en) Software product deployment method, device, medium and electronic equipment
CN107015837A (en) A kind of software kit automation is installed and collocation method and device
CN112685051A (en) Method, device, platform and storage medium for automatically executing shell script
EP3151512A1 (en) Service authentication processing method and apparatus
CN110750296A (en) Application processing method and device
CN112199161A (en) Cloud platform service management method and device and related components
CN111427603A (en) Application program upgrading method and device
CN112306843A (en) Test method, test device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant