Application deployment method, device and equipment and computer readable storage medium
By obtaining the deployment information of the target application, creating offline deployment packages, and generating global configuration files, the problem of application deployment in the existing technology in offline environments is solved, and efficient application deployment is achieved without network connection.
Patent Information
- Application Number
- CN202311203541.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2025-03-18
AI Technical Summary
Most existing cloud-native application deployment tools require an Internet connection and cannot be used in offline environments. They are complex in configuration and are difficult to deploy by ordinary users.
Provides an application deployment method, which allows you to obtain the deployment information of the target application, create offline deployment packages, and generate global configuration files based on the deployment information, so as to realize offline deployment of applications without network connection.
This method can deploy application without network connection, reduce deployment difficulty, and improve application deployment availability and adaptability.
Smart Images

Figure CN119645430A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an application deployment method, apparatus, device, and computer-readable storage medium. Background Art
[0002] Cloud native is a software architecture and development methodology that designs applications to adapt to the characteristics of cloud computing environments, such as containerization, elastic scaling, and automated management.
[0003] The popularity of cloud-native architecture has led to more and more applications being deployed in containers to achieve higher elasticity and scalability. However, for some environments without Internet connection (such as intranet or no network environment), application deployment may face some challenges.
[0004] There are many cloud-native application deployment tools, but most of these tools require an Internet connection and online download of deployment packages, and are not suitable for offline environments. In addition, the configuration and use of some tools are relatively complex, making them difficult for ordinary users to deploy. In addition, some tools rely on specific software versions, which may be incompatible with the version of the target environment, resulting in the inability to deploy. Summary of the invention
[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an application deployment method, apparatus, device and computer-readable storage medium, which are suitable for offline environments and reduce the difficulty of application deployment.
[0006] In a first aspect, an embodiment of the present disclosure provides an application deployment method, the method comprising:
[0007] Get the deployment information of the target application;
[0008] Creating an offline deployment package for the target application;
[0009] Generate a global configuration file based on the deployment information of the target application;
[0010] The target application is deployed offline based on the offline deployment package and the global configuration file.
[0011] In some embodiments, obtaining the deployment information of the target application includes:
[0012] In response to a user inputting deployment information, obtaining first deployment information of a target application;
[0013] In response to the user's confirmation operation on the first deployment information of the target application, the deployment information of the target application is obtained and the deployment information of the target application is saved.
[0014] In some embodiments, the deployment information of the target application includes at least one of the following:
[0015] The deployment version information of the target application, the environment variable information of the target application, the mirror address information of the target application, and the custom parameter information of the target application.
[0016] In some embodiments, the step of preparing an offline deployment package for the target application includes:
[0017] An offline deployment package is created using a creation tool according to the deployment information of the target application.
[0018] In some embodiments, generating a global configuration file based on the deployment information of the target application includes:
[0019] Acquire environment variable information of the target application from deployment information of the target application, wherein the environment variable information of the target application includes a link address, an account number, and a password;
[0020] A global configuration file is generated based on the environment variable information of the target application.
[0021] In some embodiments, before offline deployment of the target application based on the offline deployment package and the global configuration file, the method further includes:
[0022] Extracting deployment version information of the target application, mirror address information of the target application, and custom parameter information of the target application from the deployment information of the target application;
[0023] Based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, a preset interface is called to replace the original information in the target application.
[0024] In some embodiments, the offline deployment of the target application based on the offline deployment package and the global configuration file includes:
[0025] Generate a deployment toolset based on the offline deployment package and the global configuration file;
[0026] The target application is deployed offline using the deployment tool set.
[0027] In a second aspect, an embodiment of the present disclosure provides an application deployment device, the device comprising:
[0028] The acquisition module is used to obtain the deployment information of the target application;
[0029] A production module, used to produce an offline deployment package for the target application;
[0030] A generation module, used to generate a global configuration file based on the deployment information of the target application;
[0031] The deployment module is used to perform offline deployment of the target application based on the offline deployment package and the global configuration file.
[0032] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0033] Memory;
[0034] Processor; and
[0035] Computer programs;
[0036] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0037] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method as described in the first aspect.
[0038] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method described in the first aspect is implemented.
[0039] The application deployment method, apparatus, device, and computer-readable storage medium provided in the embodiments of the present disclosure obtain the deployment information of the target application, make an offline deployment package for the target application, generate a global configuration file based on the deployment information of the target application, and deploy the target application offline based on the offline deployment package and the global configuration file. Compared with the prior art, the present disclosure obtains the deployment information of the target application, makes an offline deployment package for the target application, and can be deployed even without a network connection, and can be applied to an offline environment. Furthermore, a global configuration file is generated based on the deployment information of the target application, and the target application is deployed offline based on the offline deployment package and the global configuration file, so that the application can be deployed quickly and easily, the difficulty of application deployment is reduced, and the availability and adaptability of application deployment are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flow chart of an application deployment method provided by an embodiment of the present disclosure;
[0043] Figure 2 A schematic diagram of a user interface provided for another embodiment of the present disclosure;
[0044] Figure 3 A flow chart of an application deployment method provided by another embodiment of the present disclosure;
[0045] Figure 4 A schematic diagram of the structure of an application deployment device provided in an embodiment of the present disclosure;
[0046] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0049] Cloud native is a software architecture and development methodology that designs applications to adapt to the characteristics of cloud computing environments, such as containerization, elastic scaling, and automated management.
[0050] The popularity of cloud-native architecture has led to more and more applications being deployed in containers to achieve higher elasticity and scalability. However, for some environments without Internet connection (such as intranet or no network environment), application deployment may face some challenges.
[0051] There are currently a variety of cloud-native application deployment tools, but most of these tools require an Internet connection and online download of deployment packages, and are not suitable for offline environments. In addition, the configuration and use of some tools are relatively complex, making them difficult for ordinary users to deploy. In addition, some tools rely on specific software versions, which may be incompatible with the version of the target environment, resulting in the inability to deploy. To address this problem, the embodiments of the present disclosure provide an application deployment method, which is described below in conjunction with specific embodiments.
[0052] Figure 1 A flow chart of the application deployment method provided in the embodiment of the present disclosure. The executor of the method is an electronic device. The electronic device can be a portable mobile device such as a smart phone, a tablet computer, a laptop computer, a car navigation device, an intelligent sports equipment, etc.; it can also be a fixed device such as a personal computer, a smart home appliance, a server, etc., wherein the server can be a single server or a server cluster, and the server cluster can be a distributed cluster or a centralized cluster. The method can be applied to the scenario of offline deployment of the application, and can also be applied to the scenario of offline customized deployment of the application. It can be understood that the application deployment method provided in the embodiment of the present disclosure can also be applied in other scenarios.
[0053] Below Figure 1 The application deployment method shown in the figure is introduced, and the specific steps of the method are as follows:
[0054] S101. Obtain deployment information of a target application.
[0055] In this step, the electronic device obtains the deployment information of the target application. The target application is the application to be deployed, which can be an application deployed for the first time, or an application with a lower version can be deployed to upgrade a higher version. Figure 2 The deployment information of the target application, such as the deployment version, environment variables, image address, etc., is input on the user interface shown, and the electronic device obtains the deployment information of the target application in response to the operation input by the user.
[0056] In some embodiments, the deployment information of the target application includes at least one of the following: deployment version information of the target application, environment variable information of the target application, mirror address information of the target application, and custom parameter information of the target application.
[0057] Optionally, the deployment information of the target application may be any one of the deployment version information of the target application, the environment variable information of the target application, the image address information of the target application, and the custom parameter information of the target application; or it may be a combination of any several of the deployment version information of the target application, the environment variable information of the target application, the image address information of the target application, and the custom parameter information of the target application; and may also include other information, which is not limited here.
[0058] Optionally, the custom parameter information of the target application may include but is not limited to middleware information, storage module information, etc. Middleware refers to components or devices connected to electronic devices, and storage module refers to storage hardware reserved for deploying the target application.
[0059] S102: Create an offline deployment package for the target application.
[0060] After acquiring the deployment information of the target application, the electronic device creates an offline deployment package for the target application. Specifically, the dependent packages (such as images, software packages, etc.) required by the application are downloaded from the Internet in advance and packaged and compressed into an offline deployment package so that the offline deployment package can be used in an offline environment.
[0061] S103: Generate a global configuration file based on the deployment information of the target application.
[0062] After acquiring the deployment information of the target application, the electronic device may generate a global configuration file according to the deployment information of the target application. Optionally, the global configuration file may be a standard configuration loaded into the container cluster, or may be other customized configurations, which are not limited here.
[0063] It should be noted that the order of S102 and S103 can be interchanged, and there is no limitation on the order of S102 and S103.
[0064] S104: Deploy the target application offline based on the offline deployment package and the global configuration file.
[0065] After obtaining the offline deployment package and the global configuration file, the electronic device deploys the target application offline according to the offline deployment package and the global configuration file, and can deploy it even without a network connection. It is suitable for offline environments, can quickly and easily deploy applications, and reduces the difficulty of application deployment.
[0066] The disclosed embodiment obtains the deployment information of the target application, creates an offline deployment package for the target application, generates a global configuration file based on the deployment information of the target application, and deploys the target application offline based on the offline deployment package and the global configuration file. Compared with the prior art, the disclosed embodiment obtains the deployment information of the target application, creates an offline deployment package for the target application, and can be deployed even without a network connection, and can be applied to an offline environment. Furthermore, a global configuration file is generated based on the deployment information of the target application, and the target application is deployed offline based on the offline deployment package and the global configuration file, so that the application can be deployed quickly and easily, the difficulty of application deployment is reduced, and the availability and adaptability of application deployment are improved.
[0067] Based on the above embodiment, before the target application is offline deployed based on the offline deployment package and the global configuration file, the method also includes: extracting the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application from the deployment information of the target application; based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, calling a preset interface to replace the original information in the target application.
[0068] In this embodiment, the electronic device visually extracts the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application from the deployment information of the target application, and further calls a preset interface to replace the original information in the target application with the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, which can be better compatible with the version of the target environment, simplify configuration, and reduce the difficulty of application deployment.
[0069] The disclosed embodiment obtains the deployment information of the target application, creates an offline deployment package for the target application, generates a global configuration file based on the deployment information of the target application, further extracts the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application from the deployment information of the target application, and calls a preset interface to replace the original information in the target application based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application. Then, the target application is deployed offline based on the offline deployment package and the global configuration file. Since the preset interface is called to replace the original information in the target application based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, it can be better compatible with the version of the target environment, simplify the configuration, reduce the difficulty of application deployment, and improve the availability and adaptability of application deployment.
[0070] Figure 3 A flow chart of an application deployment method provided by another embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the method includes the following steps:
[0071] S301: In response to a user inputting deployment information, first deployment information of a target application is acquired.
[0072] For example, if a user Figure 2 The deployment information of the target application is input on the user interface shown, for example, deployment version, environment variables, image address, custom parameters and other deployment information, and the electronic device obtains the first deployment information of the target application in response to the user inputting the deployment information.
[0073] S302: In response to the user confirming the first deployment information of the target application, the deployment information of the target application is obtained and the deployment information of the target application is saved.
[0074] For example, if a user Figure 2 The electronic device obtains the deployment information of the target application in response to the user confirming the first deployment information of the target application, and saves the deployment information of the target application.
[0075] S303: Using a production tool to produce an offline deployment package according to the deployment information of the target application.
[0076] For example, the user pre-configures the production tool, the electronic device inputs the deployment information of the target application into the production tool, and uses the production tool to produce an offline deployment package according to the deployment information of the target application. Specifically, the application is made into an image product through the pre-configured production tool, and a helm chart offline deployment package is generated.
[0077] S304: Obtain environment variable information of the target application from the deployment information of the target application, where the environment variable information of the target application includes a link address, an account number, and a password.
[0078] In this embodiment, the electronic device obtains the environment variable information of the target application in the deployment information of the target application, and the environment variable information of the target application includes a link address, an account number and a password. Optionally, the environment variable information of the target application may include a link address, an account number and a password, and may also include other environment variable information, which is not specifically limited here.
[0079] S305: Generate a global configuration file based on the environment variable information of the target application.
[0080] In this embodiment, the electronic device generates a global configuration file according to the environment variable information of the target application. Optionally, the global configuration file can be a standard configuration loaded into the container cluster, or other customized configuration, which is not limited here.
[0081] S306: Extract deployment version information of the target application, mirror address information of the target application, and custom parameter information of the target application from the deployment information of the target application.
[0082] In this embodiment, the electronic device can extract the deployment version information of the target application, the image address information of the target application, and the custom parameter information of the target application from the deployment information of the target application. Optionally, the custom parameter information of the target application may include but is not limited to middleware information, storage module information, etc., middleware refers to a component or device connected to the electronic device, and storage module refers to storage hardware reserved for deploying the target application.
[0083] S307 : Based on the deployment version information of the target application, the image address information of the target application, and the custom parameter information of the target application, a preset interface is called to replace the original information in the target application.
[0084] After extracting the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, the electronic device calls a preset interface to replace the original information in the target application with the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, which can be better compatible with the version of the target environment, simplify configuration, and reduce the difficulty of application deployment.
[0085] S308: Generate a deployment toolset based on the offline deployment package and the global configuration file.
[0086] In this step, the electronic device can generate a deployment tool set according to the offline deployment package and the global configuration file. Optionally, the deployment tool set includes various tools and scripts for application deployment, which are used to simplify and accelerate the application deployment process.
[0087] S309: Deploy the target application offline using the deployment tool set.
[0088] After the deployment tool set is generated, the electronic device uses the deployment tool set to perform offline deployment on the target application, which can simplify and accelerate the application deployment process.
[0089] The disclosed embodiment obtains the first deployment information of the target application in response to the operation of the user inputting the deployment information, obtains the deployment information of the target application in response to the operation of the user confirming the first deployment information of the target application, saves the deployment information of the target application, and uses the production tool to produce an offline deployment package according to the deployment information of the target application. Further, the environment variable information of the target application is obtained from the deployment information of the target application, and the environment variable information of the target application includes a link address, an account number, and a password, and a global configuration file is generated based on the environment variable information of the target application. And the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application are extracted from the deployment information of the target application, and based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, the preset interface is called to replace the original information in the target application. Then, a deployment tool set is generated based on the offline deployment package and the global configuration file, and the target application is deployed offline through the deployment tool set. Compared with the prior art, the embodiments of the present disclosure can be deployed even without a network connection, can be applicable to offline environments, can be better compatible with the version of the target environment, can simplify and accelerate the application deployment process, reduce the difficulty of application deployment, and improve the availability and adaptability of application deployment.
[0090] Figure 4The schematic diagram of the structure of the application deployment device provided in the embodiment of the present disclosure. The application deployment device may be the electronic device as described in the above embodiment, or the application deployment device may be a component or assembly in the electronic device. The application deployment device provided in the embodiment of the present disclosure may execute the processing flow provided in the application deployment method embodiment, such as Figure 4 As shown, the application deployment device 40 includes: an acquisition module 41, a production module 42, a generation module 43, and a deployment module 44; wherein the acquisition module 41 is used to obtain the deployment information of the target application; the production module 42 is used to produce an offline deployment package for the target application; the generation module 43 is used to generate a global configuration file based on the deployment information of the target application; and the deployment module 44 is used to perform offline deployment of the target application based on the offline deployment package and the global configuration file.
[0091] Optionally, when the acquisition module 41 acquires the deployment information of the target application, it is specifically used to: acquire the first deployment information of the target application in response to the user inputting the deployment information; obtain the deployment information of the target application in response to the user confirming the first deployment information of the target application, and save the deployment information of the target application.
[0092] Optionally, the deployment information of the target application includes at least one of the following: deployment version information of the target application, environment variable information of the target application, mirror address information of the target application, and custom parameter information of the target application.
[0093] Optionally, when the making module 42 makes an offline deployment package for the target application, it is specifically used to: use a making tool to make an offline deployment package according to the deployment information of the target application.
[0094] Optionally, when the generation module 43 generates a global configuration file based on the deployment information of the target application, it is specifically used to: obtain the environment variable information of the target application from the deployment information of the target application, the environment variable information of the target application including the link address, account number and password; and generate a global configuration file based on the environment variable information of the target application.
[0095] Optionally, before the target application is offline deployed based on the offline deployment package and the global configuration file, the application deployment device 40 also includes: an extraction module 45 and a replacement module 46; the extraction module 45 is used to extract the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application from the deployment information of the target application; the replacement module 46 is used to call a preset interface to replace the original information in the target application based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application.
[0096] Optionally, when the deployment module 44 performs offline deployment on the target application based on the offline deployment package and the global configuration file, it is specifically used to: generate a deployment tool set based on the offline deployment package and the global configuration file; and perform offline deployment on the target application using the deployment tool set.
[0097] Figure 4 The application deployment device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0098] Figure 5 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 5 , which shows a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0099] like Figure 5 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 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 device 608 to a random access memory (RAM) 603 to implement the application deployment method of the embodiment described in the present disclosure. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0100] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0101] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart, thereby implementing the application deployment method as described above. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0102] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, 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, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0103] In addition, an embodiment of the present disclosure further provides a vehicle, comprising: a memory; a processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the application deployment method as described above.
[0104] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0105] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0106] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0107] Get the deployment information of the target application;
[0108] Creating an offline deployment package for the target application;
[0109] Generate a global configuration file based on the deployment information of the target application;
[0110] The target application is deployed offline based on the offline deployment package and the global configuration file.
[0111] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0112] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0113] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0115] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0116] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0117] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0118] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0119] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An application deployment method, characterized in that: include: Get the deployment information of the target application; Creating an offline deployment package for the target application; Generate a global configuration file based on the deployment information of the target application; The target application is deployed offline based on the offline deployment package and the global configuration file.
2. The method according to claim 1, characterized in that The step of obtaining the deployment information of the target application includes: In response to a user inputting deployment information, obtaining first deployment information of a target application; In response to the user's confirmation operation on the first deployment information of the target application, the deployment information of the target application is obtained and the deployment information of the target application is saved.
3. The method according to claim 1, characterized in that The deployment information of the target application includes at least one of the following: The deployment version information of the target application, the environment variable information of the target application, the mirror address information of the target application, and the custom parameter information of the target application.
4. The method according to claim 1, characterized in that: The step of preparing an offline deployment package for the target application includes: An offline deployment package is created using a creation tool according to the deployment information of the target application.
5. The method according to claim 3, characterized in that: The generating a global configuration file based on the deployment information of the target application includes: Acquire environment variable information of the target application from deployment information of the target application, wherein the environment variable information of the target application includes a link address, an account number, and a password; A global configuration file is generated based on the environment variable information of the target application.
6. The method according to claim 3, characterized in that Before offline deployment of the target application based on the offline deployment package and the global configuration file, the method further includes: Extracting deployment version information of the target application, mirror address information of the target application, and custom parameter information of the target application from the deployment information of the target application; Based on the deployment version information of the target application, the mirror address information of the target application, and the custom parameter information of the target application, a preset interface is called to replace the original information in the target application.
7. The method according to claim 1, characterized in that The offline deployment of the target application based on the offline deployment package and the global configuration file includes: Generate a deployment toolset based on the offline deployment package and the global configuration file; The target application is deployed offline using the deployment tool set.
8. An application deployment device, characterized in that: include: The acquisition module is used to obtain the deployment information of the target application; A production module, used to produce an offline deployment package for the target application; A generation module, used to generate a global configuration file based on the deployment information of the target application; The deployment module is used to perform offline deployment of the target application based on the offline deployment package and the global configuration file.
9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.