CN112910956B - Resource creation method and device and electronic equipment - Google Patents

Resource creation method and device and electronic equipment Download PDF

Info

Publication number
CN112910956B
CN112910956B CN202110053351.9A CN202110053351A CN112910956B CN 112910956 B CN112910956 B CN 112910956B CN 202110053351 A CN202110053351 A CN 202110053351A CN 112910956 B CN112910956 B CN 112910956B
Authority
CN
China
Prior art keywords
application program
target application
server
resource
resource creation
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
Application number
CN202110053351.9A
Other languages
Chinese (zh)
Other versions
CN112910956A (en
Inventor
蔡振群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110053351.9A priority Critical patent/CN112910956B/en
Publication of CN112910956A publication Critical patent/CN112910956A/en
Application granted granted Critical
Publication of CN112910956B publication Critical patent/CN112910956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a resource creation method, a device and electronic equipment, wherein the method comprises the following steps: obtaining data to be transmitted, wherein the data to be transmitted comprises: information of the first target application and information of the second target application; uploading data to be transmitted to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and installing a resource creation interface based on deployment of the second target application program; generating a resource creation instruction based on the received function trigger instruction; and creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface. The embodiment of the invention can solve the problem that the existing upper layer application program for calling the bottom layer resources can not realize remote deployment, and further can not create or utilize the bottom layer resources in other cloud platforms.

Description

Resource creation method and device and electronic equipment
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for creating resources, and an electronic device.
Background
Cloud computing platforms, also referred to as cloud platforms, refer to services based on hardware resources and software resources, providing computing, networking, and storage capabilities. Cloud Computing (Cloud Computing) is one type of distributed Computing, meaning that a huge data Computing process is broken down into numerous small programs by a network "Cloud", and then the small programs are processed and analyzed by a system of multiple servers to obtain results and returned to the user. Cloud computing typically involves providing dynamically extensible and often virtualized resources over the internet. With the development of cloud computing technology, many different types of cloud platforms have emerged.
The cloud platforms constructed by different enterprises are often different in type, each type of cloud platform can create cloud resources according to business requirements, and the different types of cloud platforms are completely independent and are respectively responsible for creating cloud resources of the platform. For example, an enterprise constructs a cloud computing management platform, further creates corresponding cloud resources according to business requirements, and based on related operation modes and management modes of the constructed cloud computing management platform, realizes virtualization of bottom hardware resources, and further provides corresponding services for users and related application programs.
In practical application, because different types of cloud platforms are completely independent, an upper application program for calling the bottom layer resource in the cloud platform can only be deployed in an internal server of the cloud platform, and because different types of cloud platforms are independently deployed and network isolation exists between different types of cloud platforms, the upper application program for calling the bottom layer resource can not realize remote deployment. In addition, different types of cloud platforms are deployed independently, so that servers in the cloud platforms can only provide corresponding services by using own underlying resources, and underlying resources in other cloud platforms cannot be created or utilized.
Disclosure of Invention
The embodiment of the invention aims to provide a resource creation method, a resource creation device and electronic equipment, which are used for solving the problem that an upper application program for calling bottom resources cannot realize remote deployment and further cannot create or utilize the bottom resources in other cloud platforms. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a resource creation method, where the method includes:
acquiring data to be transmitted, wherein the data to be transmitted comprises: information of a first target application program and information of a second target application program, wherein the first target application program is used for realizing information deployment and resource creation, and the second target application program is used for completing resource creation;
Uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and installing a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
generating a resource creation instruction based on the received function trigger instruction;
and creating the resource corresponding to the resource creation instruction in a server to be created through the resource creation interface, wherein the server to be created belongs to any server in the target cloud platform.
Optionally, the step of generating the resource creation instruction based on the received function trigger instruction includes:
based on the received function triggering instruction, displaying a corresponding preset interactive interface;
receiving interaction parameters input by a user in the preset interaction interface;
generating a resource creation instruction based on the interaction parameter.
Optionally, after the generating the resource creation instruction, the method further includes:
generating a resource instruction to be created in the second target application program operating environment based on the resource creation instruction;
The step of creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface comprises the following steps:
and creating resources corresponding to the resource to be created instruction in the server to be created through the resource creation interface based on the resource to be created instruction.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application program includes: installation information and running environment information of a first target application program, wherein the information of the second target application program comprises: installation information and running environment information of the second target application program;
the step of deploying the first target application program and the second target application program by the server to be deployed, and completing the installation of the resource creation interface based on the deployment of the second target application program comprises the following steps:
the server to be deployed completes the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file;
the server to be deployed completes the installation of the first target application program and the second target application program based on the preset script file;
And the server to be deployed completes the installation of the resource creation interface based on the installation of the second target application program.
Optionally, the server to be created is a server corresponding to the server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs a resource creation interface.
In a second aspect, an embodiment of the present invention provides a resource creation apparatus, including:
the acquisition module is used for acquiring data to be transmitted, wherein the data to be transmitted comprises: information of a first target application program and information of a second target application program, wherein the first target application program is used for realizing information deployment and resource creation, and the second target application program is used for completing resource creation;
the uploading deployment module is used for uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and the installation of a resource creation interface is completed based on the deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
The first generation module is used for generating a resource creation instruction based on the received function trigger instruction;
the resource creation module is used for creating the resource corresponding to the resource creation instruction in a server to be created through the resource creation interface, and the server to be created belongs to any server in the target cloud platform.
Optionally, the first generating module includes:
the display sub-module is used for displaying a corresponding preset interactive interface based on the received function triggering instruction;
the receiving sub-module is used for receiving interaction parameters input by a user in the preset interaction interface;
and the generation sub-module is used for generating a resource creation instruction based on the interaction parameters.
Optionally, the apparatus further includes: a second generation module;
the second generation module is used for generating a resource instruction to be created in the second target application program running environment based on the resource creation instruction;
the resource creation module is specifically configured to create, based on the to-be-created resource instruction, a resource corresponding to the to-be-created resource instruction in a to-be-created server through the resource creation interface.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application program includes: installation information and running environment information of a first target application program, wherein the information of the second target application program comprises: installation information and running environment information of the second target application program;
The upload deployment module comprises:
the first completing submodule is used for completing the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file by the server to be deployed;
the second completion submodule is used for completing the installation of the first target application program and the second target application program based on the preset script file by the server to be deployed;
and the third completion submodule is used for completing the installation of the resource creation interface based on the installation of the second target application program by the server to be deployed.
Optionally, the server to be created is a server corresponding to the server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs a resource creation interface.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of a resource creation method according to the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, in which a computer program is stored, the computer program implementing the steps of a resource creation method as described in the first aspect when being executed by a processor.
The embodiment of the invention has the beneficial effects that:
according to the resource creation method, the device and the electronic equipment provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application program is realized, installation of a resource creation interface is completed, remote resource creation can be realized through the resource creation interface, and the problem that an upper application program calling the bottom layer resource in the prior art cannot realize remote deployment, and then the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a resource creation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating interaction between an application and a server to be deployed according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another resource creation method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an implementation of a resource creation instruction provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of an application deployment implementation provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a resource creating device according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a generating module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an upload deployment module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The types of cloud platforms constructed by different enterprises are often different, each type of cloud platform can create cloud resources according to service requirements, the cloud platforms of different types are completely independent and are respectively responsible for creating cloud resources of the platform, so that an upper-layer application program for calling bottom-layer resources in the cloud platform can only be deployed in an internal server of the cloud platform.
Because different types of cloud platforms are deployed independently and network isolation exists between different types of cloud platforms, an upper layer application program calling a bottom layer resource cannot be deployed remotely. In addition, different types of cloud platforms are deployed independently, so that servers in the cloud platforms can only provide corresponding services by using own underlying resources, and underlying resources in other cloud platforms cannot be created or utilized.
In order to solve the problem that an existing upper layer application program calling the bottom layer resources cannot realize remote deployment and further cannot create or utilize the bottom layer resources in other cloud platforms, the embodiment of the invention provides a resource creation method, which can comprise the following steps:
acquiring data to be transmitted, wherein the data to be transmitted comprises: information of a first target application program and information of a second target application program, wherein the first target application program is used for realizing information deployment and resource creation, and the second target application program is used for completing resource creation;
uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and installing a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
generating a resource creation instruction based on the received function trigger instruction;
and creating the resource corresponding to the resource creation instruction in a server to be created through the resource creation interface, wherein the server to be created belongs to any server in the target cloud platform.
According to the resource creation method provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, further remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program for calling the bottom layer resource cannot realize remote deployment, and further the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
The following describes a resource creation method provided by the embodiment of the present invention in detail:
in the embodiment of the present invention, the execution body of the resource creation method may be a calling system, and specifically, the calling system may be an application program, where the application program may be placed on any server or electronic device to execute the resource creation method of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a resource creation method, which may include the following steps:
s101, acquiring data to be transmitted.
In the embodiment of the invention, the calling system or the first target application program can package the information of the calling system or the first target application program and the information of the second target application program, and further the compressed package obtained by packaging is used as data to be sent. The data to be transmitted may include: the method comprises the steps of enabling information of a first target application program to be used for achieving information deployment and resource creation and enabling a second target application program to be used for completing resource creation. Specifically, the information of the first target application program may include: the installation information and the running environment information of the first target application program, and the information of the second target application program may include: installation information and running environment information of the second target application.
In the embodiment of the invention, the first target application program can interact with a user and also can interact with the second target application program so as to realize remote deployment of any application program and creation of remote resources. By way of example, the first target Application may be an APP (Application) or the like developed by a developer for enabling deployment of information and creation of resources. The second target application may be an application tool for completing resource creation, such as a Terraform tool, chef tool, puppet tool, an stable tool, a SaltStack tool, or a CloudFormation tool, etc.
In the embodiment of the invention, the Terraform tool is taken as an example of a second target application program, and the Terraform tool is a tool for safely and effectively constructing, changing and version controlling an infrastructure and is used for safely and effectively pre-configuring and managing a cloud infrastructure to support a plurality of cloud service providers. The resources to be managed may be defined in the form of code in a template, which in turn automates the required resource management by parsing and executing the template.
S102, uploading data to be transmitted to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and installing a resource creation interface based on deployment of the second target application program.
In the embodiment of the invention, the data to be sent can be uploaded to the server to be deployed in the target cloud platform through the target protocol, and then the server to be deployed can deploy the first target application program and the second target application program contained in the data to be sent, and the installation of the resource creation interface is completed based on the deployment of the second target application program. Wherein the target protocol represents a protocol for remotely transmitting a file.
In practical application, the data to be sent is uploaded to the server to be deployed in the target cloud platform through the target protocol, which may be executed by the first target application program, or the user directly uploads the data to be sent to the server to be deployed in the target cloud platform through the target protocol.
As an alternative implementation of the embodiment of the present invention, the target protocol may be an SFTP (SSH File Transfer Protocol, secure file transfer protocol) protocol. The SFTP protocol enables operations such as "remote file acquisition, file content transfer, file management", etc., with its transfer of control signals and data signals through a secure data channel.
The first target application program may package information of the first target application program and information of the second target application program to obtain a jar-format compressed file, further upload the jar-format compressed file to a server to be deployed in the target cloud platform through an SFTP protocol, receive the jar-format compressed file by the server to be deployed, decompress the compressed file, deploy the decompressed first target application program and second target application program, and complete installation of the resource creation interface based on deployment of the second target application program. As shown in fig. 2, fig. 2 is a schematic diagram of interactions between an application program and a server to be deployed.
In the embodiment of the invention, a first target application program and a second target application program are deployed in a server to be deployed of a target cloud platform so as to trigger the operation of the first target application program in the server to be deployed, and the installation of a resource creation interface is completed on the basis of the deployment of the second target application program, so that the creation of resources can be performed in any server in the target cloud platform through the resource creation interface.
S103, generating a resource creation instruction based on the received function trigger instruction.
In the embodiment of the invention, after receiving the triggering instruction of the user on the resource creation function, the first target application program can output or display a corresponding interactive interface, further receive the interactive parameters input by the user through the interactive interface, generate a corresponding resource creation instruction, and the resource creation instruction can include parameter information related to the resource to be created and the like.
S104, creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface.
And creating a resource corresponding to the resource creation instruction in the server to be created through the installed resource creation interface based on the parameter information contained in the generated resource creation instruction. The server to be created may be any server belonging to the target cloud platform.
Illustratively, the generated resource creation instruction may be to create a virtual host in the server to be created, and the parameter information included in the resource creation instruction may include: the host's memory size, available resources, flexible bandwidth resource size, participating cloud computing resource size, and so forth. Accordingly, the resources created in the server to be created include: a virtual host, a memory size of the host, available resources, an elastic bandwidth resource size, a participating cloud computing resource size, and so on.
As an optional implementation manner of the embodiment of the invention, the server to be created can be a server corresponding to the server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs the resource creation interface.
In the embodiment of the invention, the server to be created can input the identifier corresponding to the server to be created in the interactive interface after the user triggers the resource creation function instruction, and the generated resource creation instruction carries the server identifier, and the server to be created is the server corresponding to the server identifier carried in the resource creation instruction. The server to be created may also be a server designated when the resource creation interface is installed after the deployment of the second target application is completed for the server to be deployed.
In the embodiment of the invention, the resource creation interface installed in the server to be deployed of the target cloud platform can be used for creating resources in any server in the target cloud platform.
According to the resource creation method provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, further remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program for calling the bottom layer resource cannot realize remote deployment, and further the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
As shown in fig. 3, an embodiment of the present invention provides another resource creation method, which may include the steps of:
S201, obtaining data to be transmitted.
Wherein, the data to be sent comprises: the method comprises the steps of enabling information of a first target application program to be deployed and enabling resources to be created, and enabling the second target application program to be used for completing the creation of the resources.
S202, uploading data to be transmitted to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and installing a resource creation interface based on deployment of the second target application program.
Wherein the target protocol represents a protocol for remotely transmitting a file;
s203, generating a resource creation instruction based on the received function trigger instruction.
The implementation process of steps S201 to S203 may be the same as steps S101 to S103, and the embodiments of the present invention are not described herein again.
And S204, generating a resource instruction to be created in the second target application program running environment based on the resource creation instruction.
In the embodiment of the invention, after the resource creation instruction is generated, the resource instruction to be created can be generated and started in the running environment of the second target application program. The second target application program is a Terraform, and after the resource creation instruction is generated, the Terraform command can be executed in the operating environment of the Terraform, that is, the resource instruction to be created is generated and started, and it can be understood that the resource instruction to be created is the command of the resource creation instruction in the operating environment of the Terraform.
S205, based on the resource instruction to be created, creating a resource corresponding to the resource instruction to be created in the server to be created through the resource creation interface.
Executing the Terraform command in the Terraform running environment, and further creating the resource corresponding to the resource to be created instruction in the server to be created through the installed resource creation interface. Taking the example of the second target application as a Terraform tool, the corresponding installed resource creation interface may be Terraform providers. Wherein terraform providers is a back-end driver that can interact directly with the Open API (Application Programming Interface, application program interface), which can be used for any server in the target cloud platform for resource creation.
In the embodiment of the invention, the server to be created can input the identifier corresponding to the server to be created in the interactive interface after the user triggers the resource creation function instruction, and the generated resource creation instruction carries the server identifier, and the server to be created is the server corresponding to the server identifier carried in the resource creation instruction. The server to be created may also be a server designated when the resource creation interface is installed after the deployment of the second target application is completed for the server to be deployed.
According to the resource creation method provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, further remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program for calling the bottom layer resource cannot realize remote deployment, and further the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
As shown in fig. 4, an embodiment of the present invention provides an implementation of generating a resource creation instruction, which may include the following steps:
s301, displaying a corresponding preset interactive interface based on the received function triggering instruction.
In the embodiment of the present invention, the first target application may interact with the user, and the first target application may be, for example, a web browser or web shopping APP, etc., where examples of the embodiment of the present invention are only for convenience of understanding the embodiment of the present invention, and do not constitute a specific limitation on the embodiment of the present invention.
The first target application program receives a function triggering instruction of a user, and the function triggering can be triggering of a resource creating function or triggering of other functions. After receiving a triggering instruction of a user for the resource creation function, the first target application program can output or display a corresponding interactive interface so that the user can input parameters of the needed interaction in the interactive interface.
S302, receiving interaction parameters input by a user in a preset interaction interface.
S303, generating a resource creation instruction based on the interaction parameters.
The first target application program receives interaction parameters input by a user in the interaction interface, and further generates corresponding resource creation instructions based on the interaction parameters.
For convenience of understanding, the shopping APP is taken as an example for explanation, and the shopping APP receives interaction parameters such as commodity type, commodity quantity, receiving address, contact way, special requirement and the like input by a user on the interaction interface, so as to generate corresponding transaction instructions, wherein the transaction instructions can include instructions such as generating a transaction order, subtracting stock, returning transaction success and the like.
In the embodiment of the invention, after receiving the triggering instruction of the user on the resource creation function, the first target application program provides a corresponding interactive interface so that the user can input specific parameters of the resource to be created on the interactive interface, and further a corresponding resource creation instruction is generated, so that the resource creation process is more humanized.
In the embodiment of the present invention, the data to be sent may further include a preset script file, and the information of the first target application program in the data to be sent may include: installation information, running environment information, etc. of the first target application, and information of the second target application may include: installation information and running environment information of the second target application, and the like.
As shown in fig. 5, an embodiment of the present invention provides an implementation of application deployment, which may include the following steps:
s401, the server to be deployed completes the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file.
In the embodiment of the invention, the server to be deployed receives the data to be transmitted, and decompresses the compression packet corresponding to the data to be transmitted to obtain the information of the first target application program and the information of the second target application program contained in the data to be transmitted, and further, the deployment of the running environment of the first target application program and the running environment of the second target application program is automatically completed based on the preset script file.
The preset script file may be a shell script file, for example. The shell script file is a program file which can put various commands into a file in advance and is convenient to execute at one time.
S402, the server to be deployed completes the installation of the first target application program and the second target application program based on the preset script file.
In the embodiment of the invention, the server to be deployed receives data to be transmitted, decompresses a compression packet corresponding to the data to be transmitted to obtain the information of the first target application program and the information of the second target application program contained in the data to be transmitted, and further, automatically completes the installation of the first target application program and the second target application program based on a preset script file, and further triggers the operation of the first target application program.
In practical application, the installation information of the second target application program may be an installation package of the second target application program, or download address information of the installation package of the second target application program. If the installation package is the installation package of the second target application program, the installation of the second target application program is directly completed; and if the download address information of the second target application program installation package is the download address information of the second target application program installation package, automatically completing the downloading and the installation of the second target application program installation package.
S403, the server to be deployed completes the installation of the resource creation interface based on the installation of the second target application program.
In the embodiment of the invention, after the server to be deployed completes the installation of the second target application program, the installation of the resource creation interface is automatically completed.
Illustratively, the second target application is Terraform, and after the server to be deployed completes the installation of Terraform, the automatic installation Terraform providers, terraform providers may be used for an interface for resource creation of any server in the target cloud platform.
In the embodiment of the invention, the Terraform can define the resources to be managed in the template in the form of codes, and further automatically complete the required resource management by analyzing and executing the template. And the server to be deployed can automatically complete the deployment of the first target application program and the second target application program based on the received preset script file contained in the data to be sent, and manual deployment is not needed.
For example, the first target application program (or a developer or an operation and maintenance person) in the cloud platform a may send the corresponding data to be sent (including the information of the first target application program and the information of the second target application program) to the server to be deployed in the cloud platform B through the SFTP protocol, and then the server to be deployed in the cloud platform B may automatically complete the deployment of the first target application program and the second target application program (Terraform) included in the data to be sent based on the preset script file included in the received data to be sent, and install Terraform providers, so as to implement cross-platform automatic remote deployment of the application program.
When a first target application program in the cloud platform A receives the resource creation function trigger of a user, a corresponding interaction interface is displayed, interaction parameters input by the user in the interaction interface are further received, a corresponding resource creation instruction is generated based on the interaction parameters, a Terraform command is executed in the Terraform running environment, and further resources corresponding to the resource instruction to be created are created in a server to be created in the cloud platform B through the installed Terraform providers, so that the creation of cross-platform bottom layer resources is realized.
Corresponding to the method embodiment, the embodiment of the invention also provides a corresponding device embodiment.
As shown in fig. 6, an embodiment of the present invention provides a resource creation device, which may include:
the obtaining module 501 is configured to obtain data to be sent, where the data to be sent includes: the method comprises the steps of enabling information of a first target application program to be deployed and enabling resources to be created, and enabling the second target application program to be used for completing the creation of the resources.
The upload deployment module 502 is configured to upload data to be sent to a server to be deployed in the target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and complete the installation of the resource creation interface based on the deployment of the second target application program, where the target protocol represents a protocol for remotely transmitting a file.
A first generating module 503, configured to generate a resource creation instruction based on the received function trigger instruction.
The resource creation module 504 is configured to create, through the resource creation interface, a resource corresponding to the resource creation instruction in a server to be created, where the server to be created belongs to any server in the target cloud platform.
According to the resource creation device provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, further remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program for calling the bottom layer resource cannot realize remote deployment, and further the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
Alternatively, as shown in fig. 7, the first generating module 503 may include:
and the display sub-module 601 is configured to display a corresponding preset interactive interface based on the received function trigger instruction.
The receiving sub-module 602 is configured to receive interaction parameters input by a user in a preset interaction interface.
A generation sub-module 603 for generating resource creation instructions based on the interaction parameters.
Optionally, the apparatus may further include: a second generation module (not shown).
And the second generation module is used for generating a resource instruction to be created in a second target application program running environment based on the resource creation instruction.
The resource creation module 504 is specifically configured to create, based on the to-be-created resource instruction, a resource corresponding to the to-be-created resource instruction in the to-be-created server through the resource creation interface.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application program includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and running environment information of the second target application.
As shown in fig. 8, the upload deployment module 502 may include:
The first completing sub-module 701 is configured to complete the deployment of the operating environment of the first target application program and the operating environment of the second target application program based on the preset script file by the server to be deployed.
The second completing sub-module 702 is configured to complete the installation of the first target application program and the second target application program based on the preset script file by the server to be deployed.
And a third completing sub-module 703, configured to complete the installation of the resource creation interface based on the installation of the second target application by the server to be deployed.
Optionally, the server to be created is a server corresponding to the server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs the resource creation interface.
The embodiment of the present invention also provides an electronic device, as shown in fig. 9, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement any of the steps of the resource creation method described above when executing the program stored in the memory 803.
According to the electronic device provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, further remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program calling the bottom layer resource cannot realize remote deployment, and further the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
The communication bus mentioned for the above-mentioned electronic devices may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include RAM (Random Access Memory ) or NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any one of the resource creation methods described above.
According to the computer readable storage medium provided by the embodiment of the invention, the data to be sent comprising the information of the first target application program and the information of the second target application program can be uploaded to the server to be deployed through the target protocol for remotely transmitting the file, so that the server to be deployed in the target cloud platform deploys the first target application program and the second target application program, remote deployment of the application program is realized, installation of a resource creation interface is completed, remote resource creation can be realized through the resource creation interface, and the problem that an existing upper application program calling the bottom layer resource cannot realize remote deployment, and then the bottom layer resource in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized among different cloud platforms or servers in a cross-platform internal environment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, DSL (Digital Subscriber Line, digital subscriber line)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD (Digital Versatile Disc, digital versatile Disk)), or a semiconductor medium (e.g., an SSD (Solid State Disk)), or the like.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus/electronics embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A method of resource creation, the method comprising:
acquiring data to be transmitted, wherein the data to be transmitted comprises: information of a first target application program and information of a second target application program, wherein the first target application program is used for realizing deployment of information and creation of resources, the second target application program is used for completing creation of resources, and the information of the first target application program comprises: installation information and running environment information of a first target application program, wherein the information of the second target application program comprises: installation information and running environment information of the second target application program;
uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and installing a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
Generating a resource creation instruction based on the received function trigger instruction;
and creating the resource corresponding to the resource creation instruction in a server to be created through the resource creation interface, wherein the server to be created belongs to any server in the target cloud platform.
2. The method of claim 1, wherein the step of generating the resource creation instruction based on the received function trigger instruction comprises:
based on the received function triggering instruction, displaying a corresponding preset interactive interface;
receiving interaction parameters input by a user in the preset interaction interface;
generating a resource creation instruction based on the interaction parameter.
3. The method of claim 2, wherein after the generating the resource creation instruction, the method further comprises:
generating a resource instruction to be created in the second target application program operating environment based on the resource creation instruction;
the step of creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface comprises the following steps:
and creating resources corresponding to the resource to be created instruction in the server to be created through the resource creation interface based on the resource to be created instruction.
4. A method according to any one of claims 1-3, wherein the data to be transmitted further comprises a pre-set script file;
the step of deploying the first target application program and the second target application program by the server to be deployed, and completing the installation of the resource creation interface based on the deployment of the second target application program comprises the following steps:
the server to be deployed completes the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file;
the server to be deployed completes the installation of the first target application program and the second target application program based on the preset script file;
and the server to be deployed completes the installation of the resource creation interface based on the installation of the second target application program.
5. The method of claim 4, wherein the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server specified when the server to be deployed installs a resource creation interface.
6. A resource creation apparatus, the apparatus comprising:
The acquisition module is used for acquiring data to be transmitted, wherein the data to be transmitted comprises: information of a first target application program and information of a second target application program, wherein the first target application program is used for realizing deployment of information and creation of resources, the second target application program is used for completing creation of resources, and the information of the first target application program comprises: installation information and running environment information of a first target application program, wherein the information of the second target application program comprises: installation information and running environment information of the second target application program;
the uploading deployment module is used for uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and the installation of a resource creation interface is completed based on the deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
the first generation module is used for generating a resource creation instruction based on the received function trigger instruction;
the resource creation module is used for creating the resource corresponding to the resource creation instruction in a server to be created through the resource creation interface, and the server to be created belongs to any server in the target cloud platform.
7. The apparatus of claim 6, wherein the first generation module comprises:
the display sub-module is used for displaying a corresponding preset interactive interface based on the received function triggering instruction;
the receiving sub-module is used for receiving interaction parameters input by a user in the preset interaction interface;
and the generation sub-module is used for generating a resource creation instruction based on the interaction parameters.
8. The apparatus of claim 7, wherein the apparatus further comprises: a second generation module;
the second generation module is used for generating a resource instruction to be created in the second target application program running environment based on the resource creation instruction;
the resource creation module is specifically configured to create, based on the to-be-created resource instruction, a resource corresponding to the to-be-created resource instruction in a to-be-created server through the resource creation interface.
9. The apparatus according to any one of claims 6-8, wherein the data to be transmitted further comprises a preset script file;
the upload deployment module comprises:
the first completing submodule is used for completing the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file by the server to be deployed;
The second completion submodule is used for completing the installation of the first target application program and the second target application program based on the preset script file by the server to be deployed;
and the third completion submodule is used for completing the installation of the resource creation interface based on the installation of the second target application program by the server to be deployed.
10. The apparatus of claim 9, wherein the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server specified when the server to be deployed installs a resource creation interface.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
CN202110053351.9A 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment Active CN112910956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110053351.9A CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110053351.9A CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112910956A CN112910956A (en) 2021-06-04
CN112910956B true CN112910956B (en) 2023-05-02

Family

ID=76114449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110053351.9A Active CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112910956B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377346B (en) * 2021-06-10 2023-01-31 北京滴普科技有限公司 Integrated environment building method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN109547509A (en) * 2017-09-22 2019-03-29 华为技术有限公司 A kind of method and system of cross-platform deployment
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606794B1 (en) * 2015-12-16 2017-03-28 International Business Machines Corporation Generating and managing applications using any number of different platforms

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN109547509A (en) * 2017-09-22 2019-03-29 华为技术有限公司 A kind of method and system of cross-platform deployment
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112910956A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US11467816B1 (en) Method and system of running an application
US8612947B2 (en) System and method for remotely compiling multi-platform native applications for mobile devices
US10430172B2 (en) Re-configuration in cloud computing environments
US9858105B1 (en) Service for managing custom virtual machine images
US10404568B2 (en) Agent manager for distributed transaction monitoring system
WO2010113160A1 (en) A method and system for emulating desktop software applications in a mobile communication network
CN109525584B (en) Method for constructing mobile end cross-platform multi-type application container
US20130263112A1 (en) Deployment and hosting of platform independent applications
CN106911500B (en) Physical machine configuration method and device and physical machine
CN106815055B (en) Method and system for dynamic layout of mobile application
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
WO2023093197A1 (en) Application management method and related system
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN104536752A (en) Method and device for automatically generating APK files
CN112910956B (en) Resource creation method and device and electronic equipment
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN110968823A (en) Application client starting method, service server and client equipment
CN111782231A (en) Service deployment method and device
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
WO2023084345A1 (en) Automated deployment of enterprise archive with dependency on application server via script
CN117337429A (en) Deploying a machine learning model
CN111355629B (en) Client test method and device, computer equipment and storage medium
US11425203B2 (en) Commissioning a virtualized network function

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