CN113268272B - Application delivery method, device and system based on private cloud - Google Patents
Application delivery method, device and system based on private cloud Download PDFInfo
- Publication number
- CN113268272B CN113268272B CN202110591804.3A CN202110591804A CN113268272B CN 113268272 B CN113268272 B CN 113268272B CN 202110591804 A CN202110591804 A CN 202110591804A CN 113268272 B CN113268272 B CN 113268272B
- Authority
- CN
- China
- Prior art keywords
- application
- target
- private cloud
- delivery
- environment
- 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.)
- Active
Links
- 238000002716 delivery method Methods 0.000 title claims abstract description 60
- 238000010276 construction Methods 0.000 claims abstract description 100
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000007726 management method Methods 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012795 verification Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 9
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000012216 screening Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 32
- 238000004519 manufacturing process Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000006399 behavior Effects 0.000 description 6
- 239000000872 buffer Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application provides an application delivery method, device and system based on private cloud, which can be used in the technical field of big data, and the method comprises the following steps: determining environment identifiers of all service environments corresponding to the target application and a target private cloud based on the application identifier of the current target application; acquiring all templates corresponding to the target application from the target private cloud according to the application identification of the target application, the environment identification of each service environment and the serial numbers of the template construction packages; and respectively deploying each template under the target private cloud environment according to each service environment corresponding to the target application so as to finish the delivery of the target application in the target private cloud. According to the application delivery method and device, the efficiency and reliability of application delivery for private cloud can be effectively improved, the function of quickly constructing flexible delivery is achieved, the application delivery steps can be effectively simplified, diversified delivery means are provided, a large-scale deployment template under the application can be split as required, and the capability of continuously delivering the application for the private cloud is improved.
Description
Technical Field
The application relates to the technical field of data processing, in particular to the technical field of big data, and specifically relates to an application delivery method, device and system based on private cloud.
Background
In order to better meet the requirements of elastic expansion, high availability, intelligent operation and maintenance and the like, more and more companies realize private clouds. The cloud application combines the construction of delivery capacity of the DevOps (combination words of Development and Operations, which are a group of processes, methods and systems), so that the requirement of rapid iteration of the service can be met, and the operation cost can be reduced.
At present, in the application delivery process aiming at private cloud, codes of a large number of deployment nodes exist in some large-scale applications, so that the compiling time is too long; meanwhile, when the application is delivered, the delivery time is too long for each full-volume deployment node delivery; at present, a set of standards is not available for standardizing the on-demand delivery, so that the problems of low delivery efficiency, poor reliability and the like are easy to occur.
Disclosure of Invention
Aiming at the problems in the prior art, the application delivery method, device and system based on the private cloud can effectively improve the efficiency and reliability of application delivery aiming at the private cloud, realize the function of quickly constructing and flexibly delivering, effectively simplify the application delivery steps and provide diversified delivery means, split the large-scale deployment template under the application as required and improve the capability of continuously delivering the application aiming at the private cloud.
In order to solve the technical problems, the application provides the following technical scheme:
in a first aspect, the present application provides a private cloud-based application delivery method, including:
determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application;
acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of pre-stored template construction packages, wherein each template corresponds to each number of the template construction package one by one;
and respectively deploying the templates corresponding to the target application under a target private cloud environment according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
Further, before the determining, based on the application identifier of the current target application, the environment identifier of each service environment and the target private cloud corresponding to the target application, the method further includes:
searching each template and code corresponding to the target release unit in a preset code base based on the release identification of the target release unit; the configuration file of the template stores an environment identifier of a service environment and a release identifier of a release unit respectively corresponding to the template;
Performing data packaging processing on each template to obtain a corresponding template construction package and the number of the template construction package, and storing the template construction package into a preset configuration warehouse;
and compiling the code into an image, and storing the image into a preset image warehouse.
Further, the determining, based on the application identifier of the current target application, the environment identifier and the target private cloud of each service environment corresponding to the target application includes:
based on the application identification of the current target application, acquiring the environment identification and the service environment address of each service environment corresponding to the target application from a preset service environment management component, wherein the service environment management component is used for storing the corresponding relation among each application identification, the environment identification of each service environment and the service environment address;
and determining the corresponding target private cloud according to the service environment address.
Further, the obtaining all templates corresponding to the target application in the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the number of the prestored template building package includes:
Calling an interface of a cloud component deployed on the target private cloud based on the service environment address, so that the cloud component searches a template construction package corresponding to the target application in a configuration warehouse corresponding to the target private cloud according to an application identifier of the target application, environment identifiers of all service environments and numbers of prestored template construction packages;
analyzing the template construction package corresponding to the target application, and screening out each template under the service environment corresponding to the target application.
Further, after the respective templates corresponding to the target applications are deployed in the target private cloud environments according to the respective service environments corresponding to the target applications to complete the delivery of the target applications in the target private cloud, the method further includes:
verifying whether each template deployed in the target private cloud environment is successfully delivered or not, and generating a corresponding verification result.
Further, the template stored in the configuration file of the template is in one-to-one or many-to-many relation with the environment identifier of the service environment, and the template is in many-to-one relation with the release identifier of the release unit;
There is a one-to-many or one-to-one relationship between the template and the image.
In a second aspect, the present application provides a private cloud-based application delivery apparatus, including:
the environment determining module is used for determining the environment identifier and the target private cloud of each service environment corresponding to the target application based on the application identifier of the current target application;
the template calling module is used for obtaining all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the number of a prestored template construction package, wherein each template corresponds to the number of each template construction package one by one;
and the delivery deployment module is used for deploying the templates corresponding to the target application under the target private cloud environment respectively according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
In a third aspect, the present application provides an application delivery system, comprising: the service environment management component, the target private cloud and the private cloud-based application delivery device are used for realizing the private cloud-based application delivery method;
The private cloud-based application delivery device comprises a construction component, a delivery component and a cloud component which are sequentially connected;
the construction assembly is respectively connected with a preset mirror image warehouse, a preset configuration warehouse and a preset code library;
the delivery component and the cloud component are both connected to the service environment management component;
the service environment management component is connected to the target private cloud via the cloud component.
In a fourth aspect, the application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the private cloud-based application delivery method when executing the program.
In a fifth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the private cloud-based application delivery method.
As can be seen from the above technical solutions, the application delivery method, device and system based on private cloud provided in the present application, the method includes: determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application; acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of pre-stored template construction packages, wherein each template corresponds to each number of the template construction package one by one; according to the service environments corresponding to the target application, the templates corresponding to the target application are deployed in a target private cloud environment to finish the delivery of the target application in the target private cloud, so that the efficiency and reliability of application delivery for the private cloud can be effectively improved, the function of quickly constructing and flexibly delivering is realized, the delivering step can be effectively simplified, the means of diversified delivering is provided, and the large-scale deployment template under the application can be split as required, thereby realizing the decoupling of construction delivery and application under the condition that the original application architecture asset is unchanged, solving the problems of slow construction, complex assembly line configuration and the like of the original large-scale cluster template, and improving the capability of continuous delivering.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an application delivery system in an embodiment of the present application.
Fig. 2 is a schematic flow chart of a first method for delivering an application based on a private cloud in an embodiment of the present application.
Fig. 3 is a second flowchart of a private cloud-based application delivery method in an embodiment of the present application.
Fig. 4 is a third flowchart of an application delivery method based on private cloud in the embodiment of the present application.
Fig. 5 is a fourth flowchart of an application delivery method based on private cloud in an embodiment of the present application.
Fig. 6 is a fifth flowchart of a private cloud-based application delivery method in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a private cloud-based application delivery apparatus in an embodiment of the present application.
Fig. 8 is a schematic diagram of a correspondence relationship between images, publishing units, templates, clusters and service environments provided by an application example of the present application.
Fig. 9 is a schematic flow chart of a service environment-based continuous delivery method implemented by the application delivery system based on the private cloud provided by the application example of the present application.
Fig. 10 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that, the application delivery method, device and system based on the private cloud disclosed in the application may be used in the technical field of big data, and may also be used in any field other than the technical field of big data.
Some large applications have a large number of deployment nodes, resulting in several hours being required to compile code; meanwhile, when in delivery, the total delivery time is too long in each time; there is no set of criteria to standardize the various actions of on-demand delivery, and delivery problems are likely to occur. Based on this background, the following three problems arise: 1. how the operation nodes split according to the micro-service thought field operate in the actual environment according to the application architecture. 2. In continuous delivery, how to guarantee no interruption of service in management. 3. How to deliver on demand on an environment.
Based on this, automated delivery and deployment is pipelined in the context of DevOps continuous delivery. In order to solve the above problems, the present application introduces concepts of templates, publication units, service environments, etc.
Aiming at the problems of low delivery efficiency, poor reliability and the like of the existing application delivery method for the private cloud, the embodiment of the application respectively provides an application delivery method based on the private cloud, an application delivery device based on the private cloud, an application delivery system and an electronic equipment computer readable storage medium, and determines the environment identifier of each service environment corresponding to the target application and the target private cloud based on the application identifier of the current target application; acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of pre-stored template construction packages, wherein each template corresponds to each number of the template construction package one by one; according to the service environments corresponding to the target application, the templates corresponding to the target application are deployed in a target private cloud environment to finish the delivery of the target application in the target private cloud, so that the efficiency and reliability of application delivery for the private cloud can be effectively improved, the function of quickly constructing and flexibly delivering is realized, the delivering step can be effectively simplified, the means of diversified delivering is provided, and the large-scale deployment template under the application can be split as required, thereby realizing the decoupling of construction delivery and application under the condition that the original application architecture asset is unchanged, solving the problems of slow construction, complex assembly line configuration and the like of the original large-scale cluster template, and improving the capability of continuous delivering.
In one or more embodiments of the present application, templates refer to static configuration information for one or more mirror deployments, including, but not limited to, instantiating the number of containers, deployment clusters, container variables, mirrors, publication unit names, service environment names, and the like. The cloud management platform deploys the container to the private cloud through the template information.
In one or more embodiments of the present application, private cloud may specifically refer to: the Platform is the Service PAAS (Platform-as-a-Service) cloud.
In one or more embodiments of the present application, a publication unit refers to a collection of templates that one publication unit possesses one or more images, but contains different templates, which is the smallest unit of a single publication.
In one or more embodiments of the present application, a service environment refers to an environment definition in which individual applications abstract from a PAAS environment according to delivery requirements, service levels, operating environments, architecture assets, etc., to guide commissioning behavior and manage the operating environment.
Based on the foregoing, the present application further provides an application delivery system for implementing the private cloud-based application delivery method provided in one or more embodiments of the present application, referring to fig. 1, the application delivery system includes a service environment management component 2, a target private cloud (PAAS cloud), and a private cloud-based application delivery device for implementing the private cloud-based application delivery method; the private cloud-based application delivery device comprises a construction component 1, a delivery component 3 and a cloud component 4 which are sequentially connected; the construction assembly 1 is respectively connected with a preset mirror image warehouse, a preset configuration warehouse and a preset code library; the delivery component 3 and cloud component 4 are both connected to the service environment management component 2; the service environment management component 2 is connected to the target private cloud via the cloud component 4.
Wherein the construction component 1 is deployed in a delivery pipeline and is directly connected with a code base. In the code library, a user can define templates corresponding to codes in advance according to different high availability, parameter configuration, deployment environments and the like, wherein the codes and the templates can be in one-to-one or many-to-many relation. In the template configuration file, maintaining the affiliated issuing units and deployed service environments, namely: the template configuration file contains the identification of the issuing unit and the service environment corresponding to the template.
Wherein the service environment management component 2 is deployed on a separate machine (e.g., server) and coupled to the delivery component to provide service environment information to the delivery component. Meanwhile, the cloud component is connected with the PAAS cloud, so that the relation between the cluster and the service environment is established.
Wherein the delivery component 3 is pipelined with the build component 1 and connected to the service environment management component. The delivery component is deployed on the pipeline, and the delivery component sequentially configures service environment names according to delivery requirements.
The cloud component 4 is deployed on each PAAS cloud, and is connected with the delivery component for template deployment of the corresponding service environment. And is also coupled to the service environment management component to provide the cluster information to the service environment management component. The delivery component sends delivery instructions of a service environment to the cloud component, which obtains the build packages in the configuration repository, parses the build packages, screens out templates belonging to the service environment, and deploys the templates. The cloud component can also provide a delivery verification function, and after successful deployment, a message is sent to inform the delivery component of the delivery result.
It is understood that the client device may include a smart phone, a tablet electronic device, a network set top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The client device may have a communication module (i.e. a communication unit) and may be connected to a remote server in a communication manner, so as to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementations may include a server of an intermediate platform, such as a server of a third party server platform having a communication link with the task scheduling center server. The server may include a single computer device, a server cluster formed by a plurality of servers, or a server structure of a distributed device.
Any suitable network protocol may be used for communication between the server and the client device, including those not yet developed at the filing date of this application. The network protocols may include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPS protocol, etc. Of course, the network protocol may also include, for example, RPC protocol (Remote Procedure Call Protocol ), REST protocol (Representational State Transfer, representational state transfer protocol), etc. used above the above-described protocol.
The following embodiments and application examples are described in detail.
In order to solve the problems of low delivery efficiency, poor reliability and the like in the existing application delivery method for the private cloud, the application provides an embodiment of an application delivery method based on the private cloud, referring to fig. 2, the application delivery method based on the private cloud executed by an application delivery device based on the private cloud specifically includes the following contents:
step 100: and determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application.
In step 100, the delivery component in the private cloud-based application delivery device may read, according to the application name of the configured target application, all service environment information under the target application by the service environment management component, where the service environment information includes a correspondence between a service environment identifier and a service environment address, that is: the service environment management component is configured to store a correspondence between an application name, a service environment identifier, and a service environment address, where the service environment address may specifically be an address of a private cloud (which may also be referred to as a PAAS cloud). Performing delivery behavior according to service environment names, namely: and calling a service environment component according to the application name to acquire all service environments under the application.
Step 200: and acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of the prestored template construction packages, wherein each template corresponds to each number of the template construction package one by one.
Step 300: and respectively deploying the templates corresponding to the target application under a target private cloud environment according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
In steps 200 and 300, a cloud component in the private cloud-based application delivery apparatus may provide cluster information to a service environment management component. The delivery component sends delivery instructions of a service environment to the cloud component, which obtains the build packages in the configuration repository, parses the build packages, screens out templates belonging to the service environment, and deploys the templates. The cloud component can also provide a delivery verification function, and after successful deployment, a message is sent to inform the delivery component of the delivery result.
As can be seen from the above description, the application delivery method based on the private cloud provided by the embodiment of the application can effectively improve the efficiency and reliability of application delivery for the private cloud, realize the function of quickly constructing and flexibly delivering, effectively simplify the delivery steps and provide a means of diversified delivery, and split the large-scale deployment template under the application as required, thereby realizing decoupling of construction delivery and application under the condition that the original application architecture asset is unchanged, solving the problems of slow construction of the original large-scale cluster template, complex assembly line configuration and the like, and improving the capability of continuous delivery.
In order to improve the speed of construction and the capability of flexible construction, in one embodiment of the private cloud-based application delivery method provided in the present application, referring to fig. 3, before step 100 in the private cloud-based application delivery method, the following contents are specifically included:
step 010: searching each template and code corresponding to the target release unit in a preset code base based on the release identification of the target release unit; the configuration file of the template stores an environment identifier of the service environment and a release identifier of the release unit corresponding to the template respectively.
Step 020: and carrying out data packaging processing on each template to obtain a corresponding template construction package and the serial number of the template construction package, and storing the template construction package into a preset configuration warehouse.
Step 030: compiling the code into an image, and storing the image into a preset image warehouse.
Specifically, the build components in the private cloud-based application delivery device are deployed in the delivery pipeline, directly connected to the code library. In the code library, a user can define templates corresponding to codes in advance according to different high availability, parameter configuration, deployment environments and the like, wherein the codes and the templates can be in one-to-one or many-to-many relation. In the template configuration file, maintaining the affiliated issuing units and deployed service environments, namely: the template configuration file contains the identification of the issuing unit and the service environment corresponding to the template.
The construction component constructs in parallel according to different release units, automatically pulls templates and corresponding codes under the release units from a code base in construction, compiles the codes into mirror images, pushes the mirror images to a mirror image warehouse, and packages template configuration into construction packages (simultaneously generates construction numbers corresponding to the construction packages) and sends the construction packages to a configuration warehouse. The configuration warehouse is used for storing the packaged template set according to the release unit; the image repository is used to store images generated by code construction, and one template may reference one or more images.
As can be seen from the above description, the private cloud-based application delivery method provided by the embodiment of the present application can implement the functions of independent construction according to the minimum unit of the release unit and flexible delivery according to the minimum unit of the service environment. The large-scale container deployment is split according to the release units, so that the construction speed and the flexible construction capability are improved, the release units and the service environment can be defined by the application, and the release units are defined in a code submitting mode, so that the application delivery efficiency and reliability aiming at the private cloud can be further improved.
In order to further improve the efficiency and reliability of application delivery for the private cloud, in one embodiment of the application delivery method based on the private cloud provided in the present application, referring to fig. 4, step 100 in the application delivery method based on the private cloud specifically includes the following:
Step 110: based on the application identification of the current target application, the environment identification and the service environment address of each service environment corresponding to the target application are obtained from a preset service environment management component, wherein the service environment management component is used for storing the corresponding relation among each application identification, the environment identification of each service environment and the service environment address.
Step 120: and determining the corresponding target private cloud according to the service environment address.
Specifically, the delivery component is pipelined with the build component and coupled to the service environment management component. The delivery component is deployed on the pipeline, and the delivery component sequentially configures service environment names according to delivery requirements.
The delivery requirement may be obtained in advance, and a specific manner may be: generally, the production is firstly put into operation in a certain service environment, and after verification is passed, the production is put into operation in another service environment, namely, the production has a certain sequence, and the technologies can also be put into operation together. In addition, the construction is per the publication unit dimension, but the production is per the service environment dimension. A publication unit has a set of templates for a plurality of service environments, namely: each template can correspond to one or more service environments, one service environment can also correspond to one or more modules, and the order of service environment production needs to be configured on the production line to automatically produce. The method comprises the steps of screening out templates of the service environment of the constructed package according to the service environment of the pipeline, and deploying.
As can be seen from the above description, according to the private cloud-based application delivery method provided by the embodiment of the present application, the service environment defines the relationship between the actual running environment and the current virtual environment, and the relationship is implemented by the service environment management component, so that the efficiency and reliability of application delivery for the private cloud can be further improved.
In order to improve the speed of construction and the capability of flexible construction, in one embodiment of the private cloud-based application delivery method provided in the present application, referring to fig. 5, step 200 in the private cloud-based application delivery method specifically includes the following:
step 210: and calling an interface of a cloud component deployed on the target private cloud based on the service environment address, so that the cloud component searches a template building package corresponding to the target application in a configuration warehouse corresponding to the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the number of a prestored template building package.
Step 220: analyzing the template construction package corresponding to the target application, and screening out each template under the service environment corresponding to the target application.
Specifically, the delivery component invokes an interface of a cloud component deployed on a corresponding PAAS cloud according to the service environment address, specifically: and calling in a restful interface mode, and inquiring in the PAAS cloud by an application cloud component through an application name, a service environment identifier and a construction number of a target application to obtain all templates under the target application.
As can be seen from the foregoing description, according to the private cloud-based application delivery method provided by the embodiment of the present application, a cloud component is deployed in each paas environment, and in a deployment interface, the cloud component downloads a building packet to a local area according to a building number, parses the building packet to extract a template set, screens out templates belonging to a current service environment, and can effectively and efficiently screen out each template in a service environment corresponding to the target application, thereby further improving the efficiency and reliability of application delivery for the private cloud.
In order to improve the speed of construction and the capability of flexible construction, in one embodiment of the private cloud-based application delivery method provided in the present application, referring to fig. 6, step 300 in the private cloud-based application delivery method further specifically includes the following:
step 400: verifying whether each template deployed in the target private cloud environment is successfully delivered or not, and generating a corresponding verification result.
In particular, the delivery component verifies whether the template delivery in the service environment (PAAS cloud environment) was successfully deployed. The delivery component delivers in series according to the service environments, ensuring that container instances in each service environment continue to serve outside.
As can be seen from the above description, the private cloud-based application delivery method provided by the embodiment of the present application provides a delivery verification function through the application cloud component, and after deployment is successful, a message may be sent to notify the delivery component of the delivery result, so that the reliability of application delivery for the private cloud may be further improved.
In order to achieve decoupling of the building delivery and the application under the condition that the original application architecture asset is unchanged, in one embodiment of the private cloud-based application delivery method provided by the application, a one-to-one or many-to-many relationship is formed between the template stored in the configuration file of the template in the private cloud-based application delivery method and the environment identifier of the service environment, and a many-to-one relationship is formed between the template and the release identifier of the release unit; there is a one-to-many or one-to-one relationship between the template and the image.
As can be seen from the above description, the private cloud-based application delivery method provided by the embodiment of the present application realizes the functions of independent construction according to the minimum unit of the release unit and flexible delivery according to the minimum unit of the service environment. The publishing unit and the service environment can be defined by the application by self, the publishing unit can realize the function of quickly constructing and flexibly delivering by submitting codes, and the large-scale deployment template under the application can be split as required, so that the decoupling of the constructed delivery and the application is realized under the condition that the original application architecture asset is unchanged.
In order to solve the problems of low delivery efficiency, poor reliability and the like of the existing application delivery method for the private cloud from the software aspect, the application provides an embodiment of a private cloud-based application delivery device for executing all or part of the content in the private cloud-based application delivery method, referring to fig. 7, where the private cloud-based application delivery device specifically includes the following contents:
the environment determining module 10 is configured to determine, based on an application identifier of a current target application, an environment identifier of each service environment corresponding to the target application and a target private cloud.
The template invoking module 20 is configured to obtain all templates corresponding to the target application in the target private cloud according to the application identifier of the target application, the environment identifier of each service environment, and the number of the prestored template building package, where each template corresponds to each number of the template building package one by one.
And the delivery deployment module 30 is configured to deploy each template corresponding to the target application under a target private cloud environment according to each service environment corresponding to the target application, so as to complete delivery of the target application in the target private cloud.
The embodiment of the private cloud-based application delivery device provided in the present application may be specifically used to execute the process flow of the embodiment of the private cloud-based application delivery method in the above embodiment, and the functions thereof are not described herein in detail, and reference may be made to the detailed description of the above method embodiment.
As can be seen from the above description, the private cloud-based application delivery device provided by the embodiment of the application can effectively improve the efficiency and reliability of application delivery for the private cloud, realize the function of quickly constructing and flexibly delivering, effectively simplify the delivery steps and provide a means of diversified delivery, and split the large-scale deployment template under the application as required, thereby realizing decoupling of construction delivery and application under the condition that the original application architecture asset is unchanged, solving the problems of slow construction of the original large-scale cluster template, complex assembly line configuration and the like, and improving the capability of continuous delivery.
In order to further explain the scheme of the book, the application further provides a specific application example of the continuous delivery method based on the service environment, which is realized by the application delivery system, and the overall scheme of the application delivery method based on the private cloud specifically comprises the following contents:
1) In the code library, the relation among the template, the service environment and the release units is defined, specifically, the template (which is a folder) contains a configuration file, the configuration file can define which release unit and the service environment the corresponding template belongs to, so that the corresponding relation among the template, the service environment and the release units is determined, and meanwhile, the code library is also used for storing each code.
2) And the construction component finds each template belonging to the release unit in the code library according to the release unit name, and constructs codes corresponding to the templates, wherein the templates take the release unit as a dimension and form a construction package.
3) In the pipeline of delivering the components, the cloud components are invoked to deploy templates as needed according to application names, service environment names and build numbers.
4) The service environment management component automatically maintains the relation between the cluster and the service environment according to the application requirements, and when the PAAS delivery component receives the delivery request, the PAAS delivery component deploys the corresponding PAAS cloud according to the service environment.
The application delivery system specifically comprises the following contents:
(1) Building component 1: the construction component is deployed in the delivery pipeline and is directly connected with the code base. In the code library, a user can define templates corresponding to codes in advance according to different high availability, parameter configuration, deployment environments and the like, wherein the codes and the templates can be in one-to-one or many-to-many relation. In the template configuration file, maintaining the affiliated issuing units and deployed service environments, namely: the template configuration file contains the identification of the issuing unit and the service environment corresponding to the template.
The construction component constructs in parallel according to different release units, automatically pulls templates and corresponding codes under the release units from a code base in construction, compiles the codes into mirror images, pushes the mirror images to a mirror image warehouse, and packages template configuration into construction packages (simultaneously generates construction numbers corresponding to the construction packages) and sends the construction packages to a configuration warehouse. The configuration warehouse is used for storing the packaged template set according to the release unit; the image repository is used to store images generated by code construction, and one template may reference one or more images.
(2) Delivery assembly 3: the delivery component is pipelined with the build component and is coupled to the service environment management component. The delivery component is deployed on the pipeline, and the delivery component sequentially configures service environment names according to delivery requirements.
The delivery requirement may be obtained in advance, and a specific manner may be: generally, the production is firstly put into operation in a certain service environment, and after verification is passed, the production is put into operation in another service environment, namely, the production has a certain sequence. Typically the construction is per the release unit dimension, and the production is per the service environment dimension. A publication unit has a set of templates for a plurality of service environments, namely: each template can correspond to one or more service environments, one service environment can also correspond to one or more modules, and automatic production is realized by configuring the production sequence of the service environments on a production line.
The delivery component reads all service environment information under the target application according to the configured application name of the target application, wherein the service environment information comprises the corresponding relation between the service environment identifier and the service environment address, namely: the service environment management component is configured to store a correspondence between an application name, a service environment identifier, and a service environment address, where the service environment address may specifically be an address of a private cloud (which may also be referred to as a PAAS cloud). Performing delivery behavior according to service environment names, namely: deploying the templates to corresponding PAAS cloud environments according to the service environments; the method specifically comprises the following steps:
1) And calling a service environment management component according to the application name and the service environment name to acquire the delivered environment address.
2) Calling an interface of a cloud component deployed on a corresponding PAAS cloud according to a service environment address, wherein the interface comprises the following specific steps: and calling in a restful interface mode, and inquiring in the PAAS cloud by an application cloud component through an application name, a service environment identifier and a construction number of a target application to obtain all templates under the target application.
3) The cloud component deploys templates to the PAAS cloud environment according to the service environment.
4) The delivery component verifies whether the template delivery under the service environment (PAAS cloud environment) was successfully deployed. The delivery component delivers in series according to the service environments, ensuring that container instances in each service environment continue to serve outside.
(3) Service environment management component 2: the service environment management component is deployed on a separate machine (e.g., server) and is coupled to the delivery component to provide service environment information to the delivery component. Meanwhile, the cloud component is connected with the PAAS cloud, so that the relation between the cluster and the service environment is established.
The service environment management component mainly comprises three elements of an application, a cluster and a service environment, wherein the application splits a plurality of service environments from the dimension of the cluster according to delivery requirements, service levels, running environments and architecture assets, and can aggregate the clusters into one service environment.
(4) Cloud assembly 4: the cloud components are deployed on each PAAS cloud, and are connected with the delivery components for template deployment of the corresponding service environments. And is also coupled to the service environment management component to provide the cluster information to the service environment management component. The delivery component sends delivery instructions of a service environment to the cloud component, which obtains the build packages in the configuration repository, parses the build packages, screens out templates belonging to the service environment, and deploys the templates. The cloud component can also provide a delivery verification function, and after successful deployment, a message is sent to inform the delivery component of the delivery result.
The correspondence relationship between the mirror image, the publishing unit, the template, the cluster and the service environment is illustrated in fig. 8, and specifically includes a mirror image J1, a mirror image J2, a publishing unit F1, a template a, a template B, a template C, a service environment W1 and a service environment W2 corresponding to the cluster Q1, and a service environment W3 and a service environment W4 corresponding to the cluster Q2.
Based on the above, the present application also provides a set of standardized continuous delivery methods, where the application can achieve the delivery requirements by customizing the release unit and the service environment according to the delivery, service level, and deployment requirements. Referring to fig. 9, the service environment-based continuous delivery method implemented by the private cloud-based application delivery system specifically includes the following contents:
step S101: pulling the substitution code library: the build assembly operates in a container manner. A container is started, a building component is instantiated, and code of an application is pulled to the local area in full quantity according to a configured git warehouse address (namely, a release unit in the code is read first). Wherein the build assembly operates specifically within a container, the build assembly may operate simultaneously within a plurality of containers.
Step S102: query all templates under the issue unit: and reading the full template information in the code library, and inquiring the template under the release unit according to the release unit name configured by the code. Wherein the publication unit name may be established by the architect in accordance with the attributes of the template.
Step S103: the method comprises the following steps of: querying codes of template configuration, and constructing codes as mirror images. If multiple containers are started, the construction is parallel without mutual influence.
Step S104: pushing the build package to the warehouse: pushing the mirror image generated by the construction component to a mirror image warehouse, packaging the screened template set into a construction package, pushing the construction package to the construction warehouse, and producing a construction number.
Step S201: acquiring a service environment set under the application from a service environment component: the delivery component obtains the full amount of service environment information, including service environment names, clusters, environment addresses and the like, from the service environment management component according to the application name of the currently obtained target application.
Step S202: acquiring an actual environment address corresponding to a service environment: and inquiring corresponding service environment information according to the service environment name configured on the delivery component, and acquiring an environment address.
Step S203: importing a construction package in a PAAS environment: and calling a deployment interface of the cloud component according to the environment address, the incoming application name, the construction number and the service environment name.
Step S301: selecting templates belonging to the current service environment from the cloud component: the cloud components are deployed in each PAAS environment, in the deployment interface, the cloud components firstly download the construction package to the local according to the construction number, analyze the construction package to extract a template set, and screen out templates belonging to the current service environment.
Step S302: deploying templates according to service environments: and finding out corresponding clusters according to the screened templates and the service environment, and deploying the templates on the clusters.
According to the method, through a series of behaviors of cloud component proxy template deployment, a construction component and a delivery component are realized in a combination assembly line, and the functions of independent construction according to the minimum unit of a release unit and flexible delivery according to the minimum unit of a service environment are realized. The publishing unit and the service environment can be defined by the application by self, the publishing unit is defined by submitting codes, the service environment defines the relation between the actual running environment and the current virtual environment, and the service environment is realized by a service environment management component. Through the combined use of the devices, the method realizes the function of rapid construction and flexible delivery, and can split the large-scale deployment template under the application as required, thereby realizing the decoupling of the construction delivery and the application under the condition that the original application architecture asset is unchanged.
In order to solve the problems of low delivery efficiency, poor reliability and the like of the existing application delivery method for the private cloud from the hardware level, the application provides an embodiment of an electronic device for realizing all or part of contents in the application delivery method based on the private cloud, wherein the electronic device specifically comprises the following contents:
Fig. 10 is a schematic block diagram of a system configuration of an electronic device 9600 of an embodiment of the present application. As shown in fig. 10, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 10 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In an embodiment, the private cloud-based application delivery functionality may be integrated into the central processor. Wherein the central processor may be configured to control:
step 100: and determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application.
In step 100, the delivery component may read, according to the application name of the configured target application, all service environment information under the target application by the service environment management component, where the service environment information includes a correspondence between a service environment identifier and a service environment address, that is: the service environment management component is configured to store a correspondence between an application name, a service environment identifier, and a service environment address, where the service environment address may specifically be an address of a private cloud (which may also be referred to as a PAAS cloud). Performing delivery behavior according to service environment names, namely: and calling a service environment component according to the application name to acquire all service environments under the application.
Step 200: and acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of the prestored template construction packages, wherein each template corresponds to each number of the template construction package one by one.
Step 300: and respectively deploying the templates corresponding to the target application under a target private cloud environment according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
In steps 200 and 300, the cloud component may provide the cluster information to the service environment management component. The delivery component sends delivery instructions of a service environment to the cloud component, which obtains the build packages in the configuration repository, parses the build packages, screens out templates belonging to the service environment, and deploys the templates. The cloud component can also provide a delivery verification function, and after successful deployment, a message is sent to inform the delivery component of the delivery result.
As can be seen from the above description, the electronic device provided by the embodiment of the application can effectively improve the efficiency and reliability of application delivery for private cloud, realize the function of quickly constructing and flexibly delivering, effectively simplify the delivering steps and provide means for diversified delivery, and split the large-scale deployment template under application as required, so that decoupling of construction delivery and application is realized under the condition that the original application architecture asset is unchanged, the problems of slow construction of the original large-scale cluster template, complex pipeline configuration and the like are solved, and the capability of continuous delivery is improved.
In another embodiment, the private cloud-based application delivery device may be configured separately from the central processor 9100, for example, the private cloud-based application delivery device may be configured as a chip connected to the central processor 9100, and the private cloud-based application delivery function is implemented through control of the central processor.
As shown in fig. 10, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 10; in addition, the electronic device 9600 may further include components not shown in fig. 10, and reference may be made to the related art.
As shown in fig. 10, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
The embodiments of the present application further provide a computer readable storage medium capable of implementing all the steps in the private cloud-based application delivery method in the above embodiments, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the private cloud-based application delivery method in the above embodiments in which the execution subject is a server or a client, for example, the processor implements the following steps when executing the computer program:
Step 100: and determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application.
In step 100, the delivery component may read, according to the application name of the configured target application, all service environment information under the target application by the service environment management component, where the service environment information includes a correspondence between a service environment identifier and a service environment address, that is: the service environment management component is configured to store a correspondence between an application name, a service environment identifier, and a service environment address, where the service environment address may specifically be an address of a private cloud (which may also be referred to as a PAAS cloud). Performing delivery behavior according to service environment names, namely: and calling a service environment component according to the application name to acquire all service environments under the application.
Step 200: and acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of the prestored template construction packages, wherein each template corresponds to each number of the template construction package one by one.
Step 300: and respectively deploying the templates corresponding to the target application under a target private cloud environment according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
In steps 200 and 300, the cloud component may provide the cluster information to the service environment management component. The delivery component sends delivery instructions of a service environment to the cloud component, which obtains the build packages in the configuration repository, parses the build packages, screens out templates belonging to the service environment, and deploys the templates. The cloud component can also provide a delivery verification function, and after successful deployment, a message is sent to inform the delivery component of the delivery result.
As can be seen from the above description, the computer readable storage medium provided by the embodiments of the present application can effectively improve the efficiency and reliability of application delivery for private cloud, implement a function of quickly constructing and flexibly delivering, effectively simplify the delivering steps and provide a means of diversified delivery, and split the large-scale deployment template under the application as required, thereby realizing decoupling of constructed delivery and application under the condition that the original application architecture asset is unchanged, solving the problems of slow construction of the original large-scale cluster template, complex pipeline configuration, and the like, and improving the capability of continuous delivery.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. An application delivery method based on private cloud, comprising:
determining the environment identification and the target private cloud of each service environment corresponding to the target application based on the application identification of the current target application;
acquiring all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the numbers of pre-stored template construction packages, wherein each template corresponds to each number of the template construction package one by one;
And respectively deploying the templates corresponding to the target application under a target private cloud environment according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
2. The private cloud-based application delivery method according to claim 1, wherein before determining the environment identifier of each service environment corresponding to the target application and the target private cloud based on the application identifier of the current target application, the method further comprises:
searching each template and code corresponding to the target release unit in a preset code base based on the release identification of the target release unit; the configuration file of the template stores an environment identifier of a service environment and a release identifier of a release unit respectively corresponding to the template;
performing data packaging processing on each template to obtain a corresponding template construction package and the number of the template construction package, and storing the template construction package into a preset configuration warehouse;
and compiling the code into an image, and storing the image into a preset image warehouse.
3. The private cloud-based application delivery method according to claim 2, wherein the determining the environment identifier of each service environment corresponding to the target application and the target private cloud based on the application identifier of the current target application includes:
Based on the application identification of the current target application, acquiring the environment identification and the service environment address of each service environment corresponding to the target application from a preset service environment management component, wherein the service environment management component is used for storing the corresponding relation among each application identification, the environment identification of each service environment and the service environment address;
and determining the corresponding target private cloud according to the service environment address.
4. The private cloud-based application delivery method according to claim 3, wherein the obtaining all templates corresponding to the target application in the target private cloud according to the application identifier of the target application, the environment identifier of each service environment, and the number of the pre-stored template building package includes:
calling an interface of a cloud component deployed on the target private cloud based on the service environment address, so that the cloud component searches a template construction package corresponding to the target application in a configuration warehouse corresponding to the target private cloud according to an application identifier of the target application, environment identifiers of all service environments and numbers of prestored template construction packages;
analyzing the template construction package corresponding to the target application, and screening out each template under the service environment corresponding to the target application.
5. The private cloud-based application delivery method according to claim 4, wherein after the deploying each template corresponding to the target application under a target private cloud environment according to each service environment corresponding to the target application to complete delivery of the target application in the target private cloud, further comprising:
verifying whether each template deployed in the target private cloud environment is successfully delivered or not, and generating a corresponding verification result.
6. The private cloud-based application delivery method of any of claims 2 to 5, wherein a one-to-one or many-to-many relationship is between the template stored in the configuration file of the template and the environment identifier of the service environment, and a many-to-one relationship is between a template and the publication identifier of the publication unit;
there is a one-to-many or one-to-one relationship between the template and the image.
7. An application delivery device based on private cloud, comprising:
the environment determining module is used for determining the environment identifier and the target private cloud of each service environment corresponding to the target application based on the application identifier of the current target application;
The template calling module is used for obtaining all templates corresponding to the target application from the target private cloud according to the application identifier of the target application, the environment identifier of each service environment and the number of a prestored template construction package, wherein each template corresponds to the number of each template construction package one by one;
and the delivery deployment module is used for deploying the templates corresponding to the target application under the target private cloud environment respectively according to the service environments corresponding to the target application so as to finish the delivery of the target application in the target private cloud.
8. An application delivery system, comprising: a service environment management component, a target private cloud, and a private cloud-based application delivery apparatus for implementing the private cloud-based application delivery method of any one of claims 1 to 6;
the private cloud-based application delivery device comprises a construction component, a delivery component and a cloud component which are sequentially connected;
the construction assembly is respectively connected with a preset mirror image warehouse, a preset configuration warehouse and a preset code library;
the delivery component and the cloud component are both connected to the service environment management component;
The service environment management component is connected to the target private cloud via the cloud component.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the private cloud-based application delivery method of any of claims 1 to 6 when the computer program is executed by the processor.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the private cloud-based application delivery method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110591804.3A CN113268272B (en) | 2021-05-28 | 2021-05-28 | Application delivery method, device and system based on private cloud |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110591804.3A CN113268272B (en) | 2021-05-28 | 2021-05-28 | Application delivery method, device and system based on private cloud |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113268272A CN113268272A (en) | 2021-08-17 |
CN113268272B true CN113268272B (en) | 2024-03-01 |
Family
ID=77233331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110591804.3A Active CN113268272B (en) | 2021-05-28 | 2021-05-28 | Application delivery method, device and system based on private cloud |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113268272B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704665B (en) * | 2021-08-30 | 2023-10-13 | 康键信息技术(深圳)有限公司 | Dynamic service release method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108551487A (en) * | 2018-04-26 | 2018-09-18 | Oppo广东移动通信有限公司 | Application dispositions method, device, server and the storage medium of PaaS platform |
CN108574702A (en) * | 2017-03-08 | 2018-09-25 | 中兴通讯股份有限公司 | A kind of cloud application dispositions method and system |
-
2021
- 2021-05-28 CN CN202110591804.3A patent/CN113268272B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108574702A (en) * | 2017-03-08 | 2018-09-25 | 中兴通讯股份有限公司 | A kind of cloud application dispositions method and system |
CN108551487A (en) * | 2018-04-26 | 2018-09-18 | Oppo广东移动通信有限公司 | Application dispositions method, device, server and the storage medium of PaaS platform |
Also Published As
Publication number | Publication date |
---|---|
CN113268272A (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021073202A1 (en) | Intelligent contract processing method, computer device and storage medium | |
CN111813601B (en) | Micro-service rollback method and device for stateful distributed cluster | |
CN111796838B (en) | Automatic deployment method and device for MPP database | |
CN103841134A (en) | API-based method for sending and receiving information, API-based apparatus, and API-based system | |
WO2023185166A1 (en) | Service call method and apparatus, device and storage medium | |
CN112905337B (en) | MySQL cluster scheduling method and device for software and hardware hybrid deployment | |
CN112953908A (en) | Network isolation configuration method, device and system | |
CN113626002A (en) | Service execution method and device | |
CN112350873A (en) | Application service information processing method, application service calling method, device and system | |
CN111679790A (en) | Remote software development storage space distribution method and device | |
CN112328413A (en) | Application service calling method, device and system | |
CN113296742A (en) | APP data processing method and device and mobile terminal | |
CN113268272B (en) | Application delivery method, device and system based on private cloud | |
WO2024193352A1 (en) | Data processing method and apparatus, computer device, and readable storage medium | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN111367561B (en) | Remote development method and device for software program | |
CN112734545A (en) | Block chain data sharing method, device and system | |
CN110677443A (en) | Data transmitting and receiving method, transmitting end, receiving end, system and storage medium | |
CN114253558A (en) | Method and device for installing patch package | |
CN116483477A (en) | API calling method and device | |
CN113452776B (en) | PaaS platform service scheduling method and device and PaaS platform | |
CN111538660B (en) | Method and device for counting coverage rate of program codes in cloud container | |
CN111414232A (en) | Method and device for processing template data of virtual machine | |
CN114398082B (en) | Compatible operation method and device for frame type block chain application | |
CN113176892B (en) | Standardized continuous delivery method and system based on release unit |
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 |