CN112445511A - Cloud application creation method and device based on industrial cloud platform, terminal and server - Google Patents

Cloud application creation method and device based on industrial cloud platform, terminal and server Download PDF

Info

Publication number
CN112445511A
CN112445511A CN201910803279.XA CN201910803279A CN112445511A CN 112445511 A CN112445511 A CN 112445511A CN 201910803279 A CN201910803279 A CN 201910803279A CN 112445511 A CN112445511 A CN 112445511A
Authority
CN
China
Prior art keywords
mirror image
cloud application
information
cloud
industrial
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.)
Pending
Application number
CN201910803279.XA
Other languages
Chinese (zh)
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201910803279.XA priority Critical patent/CN112445511A/en
Publication of CN112445511A publication Critical patent/CN112445511A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a cloud application creation method, a cloud application creation device, a terminal and a server based on an industrial cloud platform. The method is applied to a server and comprises the following steps: acquiring mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform; making a mirror image according to the mirror image making information; acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a terminal, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform; and creating the cloud application according to the cloud application creation information and the mirror image. According to the technical scheme provided by the embodiment of the invention, the difficulty and the workload of developing the cloud application in the industrial cloud platform are reduced, and the decoupling of the cloud application and the industrial cloud platform is realized.

Description

Cloud application creation method and device based on industrial cloud platform, terminal and server
Technical Field
The embodiment of the invention relates to an industrial internet technology, in particular to a cloud application creation method, a cloud application creation device, a terminal and a server based on an industrial cloud platform.
Background
The industrial cloud platform is used for evolving industrial software into a cloud service, providing a platform capable of configuring or secondarily developing software functions for customers, and storing data and information systems to the cloud end, so that the industrial enterprise application information system is more convenient and is more beneficial to management (for example, server and desktop virtualization).
With the development of industrial internet, the dependence on an industrial cloud platform is larger and larger, and the demand on cloud application is more and more. Cloud applications include, but are not limited to, Mysql, MQTT, Kafka, Redis, and the like. At present, to integrate cloud applications into an industrial cloud platform, codes of each cloud application need to be written, and the technical difficulty of code writing is large, and the workload is large; moreover, the code of the cloud application is tightly coupled with the code of the industrial cloud platform, and the dependence degree between the cloud application and the cloud platform is high.
Disclosure of Invention
The embodiment of the invention provides a cloud application creation method, a cloud application creation device, a terminal, a server and a readable storage medium based on an industrial cloud platform, so that the difficulty and the workload of developing cloud application in the industrial cloud platform are reduced, and the decoupling of the cloud application and the industrial cloud platform is realized.
In a first aspect, an embodiment of the present invention provides a cloud application creation method based on an industrial cloud platform, which is applied to a server, and the method includes:
acquiring mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
making a mirror image according to the mirror image making information;
acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a terminal, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform;
and creating the cloud application according to the cloud application creation information and the mirror image.
In a second aspect, an embodiment of the present invention further provides another method for creating a cloud application based on an industrial cloud platform, where the method is applied to a terminal, and the method includes:
acquiring mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters;
uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information;
acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform;
and uploading the cloud application creation information to the server, so that the server creates a cloud application according to the cloud application creation information and the mirror image.
In a third aspect, an embodiment of the present invention further provides an apparatus for creating a cloud application based on an industrial cloud platform, where the apparatus is applied to a server, and the apparatus includes:
the system comprises a mirror image information acquisition module, a data processing module and a data processing module, wherein the mirror image information acquisition module is used for acquiring mirror image making information set by a user from a terminal, the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
the mirror image making module is used for making a mirror image according to the mirror image making information;
the cloud application information acquisition module is used for acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a terminal, the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform;
and the cloud application creation module is used for creating the cloud application according to the cloud application creation information and the mirror image.
In a fourth aspect, an embodiment of the present invention further provides another cloud application creation apparatus based on an industrial cloud platform, which is applied to a terminal, and the apparatus includes:
the system comprises a mirror image making information acquisition module, a mirror image making information acquisition module and a mirror image making information processing module, wherein the mirror image making information acquisition module is used for acquiring mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, and the mirror image making information comprises mirror image making parameters;
the mirror image making information uploading module is used for uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information;
the cloud application creation information acquisition module is used for acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, and the cloud application creation information is matched with resources provided by the industrial cloud platform;
and the cloud application creation information uploading module is used for uploading the cloud application creation information to the server so that the server can create the cloud application according to the cloud application creation information and the mirror image.
In a fifth aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for creating a cloud application based on an industrial cloud platform according to any embodiment.
In a sixth aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for creating a cloud application based on an industrial cloud platform according to any embodiment.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the cloud application creation method based on an industrial cloud platform according to any embodiment is implemented.
According to the technical scheme of the embodiment of the invention, a server acquires mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters acquired by the terminal from a Web front-end interface provided by an industrial cloud platform, a mirror image is made according to the mirror image making information, and then cloud application creating information corresponding to the mirror image and set by the user is acquired from the terminal, wherein the cloud application creating information is matched with resources provided by the industrial cloud platform, the cloud application creating information is acquired by the terminal from the Web front-end interface provided by the industrial cloud platform, and cloud applications are created according to the cloud application creating information and the mirror image, so that the problems of high technical difficulty and high workload when codes are compiled for each cloud application in the prior art and the problem of high dependence degree between the cloud application and the cloud platform are solved, and the difficulty and workload of cloud application development in the industrial cloud platform are reduced, the decoupling of the cloud application and the industrial cloud platform is achieved.
Drawings
Fig. 1 is a flowchart of a cloud application creation method based on an industrial cloud platform according to a first embodiment of the present invention;
fig. 2 is a flowchart of a cloud application creation method based on an industrial cloud platform according to a second embodiment of the present invention;
FIG. 3 is a flow chart of an implementation of an application scenario to which embodiments of the present invention are applicable;
fig. 4 is a schematic structural diagram of a cloud application creation apparatus based on an industrial cloud platform according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a cloud application creation apparatus based on an industrial cloud platform according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server in a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal in a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a cloud application creation method based on an industrial cloud platform according to a first embodiment of the present invention, and this embodiment is applicable to a scenario of creating a cloud application on an industrial cloud platform. The embodiment can be executed by a cloud application creation device based on an industrial cloud platform, which is composed of hardware and/or software and is generally integrated in a server (or called a backend) to be used with a terminal. With reference to fig. 1, the method provided by this embodiment includes the following operations:
and 110, acquiring mirror image making information set by a user from the terminal, wherein the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired from a Web front-end interface provided by the industrial cloud platform by the terminal.
In this embodiment, the industrial cloud platform provides a Web front-end interface to the terminal, which may be referred to as a cloud platform interface. And providing a plurality of input boxes and/or options on the cloud platform interface, and inputting the mirroring information in the input boxes by a user or selecting the options of the mirroring information provided by the cloud platform interface. The industrial cloud platform is deployed in an operating system and used for providing infrastructure for the terminal and the server, for example, resources such as a Central Processing Unit (CPU), a memory, and a hard disk occupied by the terminal and the server.
And after the user finishes setting the mirror image making information, the server acquires the mirror image making information from the terminal so as to make a mirror image according to the mirror image making information subsequently. The mirror image is a file form, a duplicate of data on one disk on another disk is the mirror image, and the mirror image is actually a set of a plurality of files, each file corresponds to a read-only layer in the mirror image, that is, it can be understood that one mirror image is composed of a plurality of read-only layers.
The mirror image making information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform, and includes but is not limited to mirror image making parameters. The mirror image making parameters comprise mirror image name, mirror image type, basic mirror image group, starting parameters and the like. Wherein the mirror type may include: the system comprises a public mirror image, a user-defined mirror image, a shared mirror image, a service market mirror image and the like, wherein a basic mirror image group is used for customizing configuration parameters and files added to each read-only layer of a basic mirror image, and starting parameters are used for specifying parameters required by running of the mirror image.
And step 120, creating a mirror image according to the mirror image creation information.
And after receiving the mirror image making information, the server makes a mirror image according to the mirror image making parameters. Optionally, making the mirror image according to the mirror image making information may include: generating a mirror image creating file according to the mirror image making parameters in the mirror image making information; and compiling the mirror image creating file to generate a mirror image matched with the mirror image manufacturing parameters.
In this embodiment, the image creation file is a script file, such as a Dockerfile file, composed of a series of commands and image creation parameters, and the commands are applied to the basic image group to create a new image based on the basic image corresponding to the basic image group. Wherein each command in the image creation file forms a new read-only layer on the basis of the previous command.
Illustratively, when a server uses a Docker to construct an image, a Docker file is created according to image creation parameters, the Docker file specifies a base image, a user uploading the image, a port to be exposed by the image, and the like, and then the Docker file is compiled, and the image is constructed by executing a Docker build command.
Optionally, the Dockerbuild command acquires a base image according to an FROM instruction in the Dockerfile file, creates a container by using the base image, then runs the container, executes a command of the Dockerfile file to modify the container, then executes a docker commit command to submit a new image layer, that is, converts the container into an immutable image, then runs a new container based on the just submitted image, and executes a next command in the Dockerfile file until all commands in the Dockerfile file are completely executed, thereby obtaining an image matched with the image production parameters.
Optionally, after the server generates the mirror image matched with the mirror image making parameter, the mirror image is stored in the mirror image warehouse, so that when other servers need to use the mirror image, the mirror image can be directly obtained from the mirror image warehouse. The mirror image warehouse is a place for storing various mirror images in a centralized way, and each server can be provided with a plurality of mirror image warehouses.
And step 130, acquiring cloud application creation information which is set by a user and corresponds to the mirror image from the terminal, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform.
The Web front-end interface provided by the industrial cloud platform for the terminal further comprises a plurality of input boxes and/or selection boxes for setting the cloud application creation information, so that a user can input the cloud application creation information in the input boxes or select the cloud application creation information through the selection boxes.
After generating the container mirror image matched with the mirror image production parameter, in order to create a cloud application, the server needs to obtain cloud application creation information corresponding to the mirror image, which is set by a user, from the terminal, where the cloud application creation information is matched with resources provided by the industrial cloud platform, and the method may include: the name of the cloud application, the type of the cloud application, the actually occupied memory, the name of the environment variable, the value of the environment variable, the nodes for arranging the cluster, the used port number and the port protocol, and the like.
Optionally, the input box and/or the selection box included in the Web front-end interface for setting the cloud application creation information may have two display states, that is, an active state and an inactive state, where the active state may be an editable state or a selectable state, and the inactive state is an uneditable state or an unselected state, and the display state of the input box and/or the selection box corresponds to the mirroring production parameter, and may be changed according to the mirroring production parameter, for example, if there is a cluster in the mirroring production parameter, the display state of the input box or the selection box corresponding to the node where the cluster is arranged may be updated to the active state.
And step 140, creating the cloud application according to the cloud application creation information and the mirror image.
Optionally, creating the cloud application according to the cloud application creation information and the image includes: generating a cloud application container matched with the mirror image by running the mirror image; and modifying the cloud application container according to the cloud application creation information, and installing and deploying the cloud application in the container.
The cloud application container is a running instance of the mirror, and is different from the mirror which only comprises a plurality of read-only layers, the cloud application container is provided with an additional writable layer, and the cloud application container can be regarded as one or a group of cloud applications which run independently and a necessary environment for running the cloud applications.
Optionally, the generating, by the server, the cloud application container matched with the image by using the Docker may include: and then, a docker start command is executed, the ID of the cloud application container instance created by the docker create command is input, a process isolation space is created for the container file system, and the cloud application container instance can be started.
Optionally, the mirror image production information further includes a function code; the function code is used for realizing functions of the cloud application. Correspondingly, after the cloud application is created according to the cloud application creation information and the mirror image, the method further comprises the following steps: the information of the cloud application function is issued to the terminal so that the terminal can display the information of the cloud application function on a Web front-end interface provided by the industrial cloud platform, and the cloud application function is realized by a function code; and acquiring configuration parameters corresponding to configuration operation of the user on the information of the cloud application function from the terminal, and updating the cloud application according to the configuration parameters.
In this embodiment, after the server creates the cloud application, the cloud application may be updated according to the requirements of the user. The server can send the function information of the cloud application to the terminal for displaying, so that a user can put forward a cloud application updating suggestion according to the use experience of the cloud application, configuration parameters corresponding to the cloud application function information and input by the user are obtained through a Web front-end interface provided by the industrial cloud platform, and the cloud application is updated according to the configuration parameters.
According to the technical scheme of the embodiment of the invention, a server acquires mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters acquired by the terminal from a Web front-end interface provided by an industrial cloud platform, a mirror image is made according to the mirror image making information, and then cloud application creating information corresponding to the mirror image and set by the user is acquired from the terminal, wherein the cloud application creating information is matched with resources provided by the industrial cloud platform, the cloud application creating information is acquired by the terminal from the Web front-end interface provided by the industrial cloud platform, and cloud applications are created according to the cloud application creating information and the mirror image, so that the problems of high technical difficulty and high workload when codes are compiled for each cloud application in the prior art and the problem of high dependence degree between the cloud application and the cloud platform are solved, and the difficulty and workload of cloud application development in the industrial cloud platform are reduced, the decoupling of the cloud application and the industrial cloud platform is achieved.
Example two
Fig. 2 is a flowchart of a cloud application creation method based on an industrial cloud platform in the second embodiment of the present invention, and this embodiment is applicable to a scenario in which a cloud application is created on an industrial cloud platform. The embodiment can be executed by a cloud application creation device based on an industrial cloud platform, which is composed of hardware and/or software and is generally integrated in a terminal (or referred to as a front end) and used in cooperation with a server. With reference to fig. 2, the method provided by this embodiment includes the following operations:
step 210, obtaining mirror image making information set by a user from a Web front-end interface provided by the industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters.
And responding to the setting completion operation of the user, and acquiring mirror image making information input and/or selected by the user from a Web front-end interface provided by the cloud platform by the terminal, wherein the mirror image making information comprises but is not limited to mirror image making parameters, and the mirror image making parameters comprise mirror image names, mirror image types, basic mirror image groups, starting parameters and the like. Optionally, the setting completion operation is a triggering operation of a setting completion control on the cloud platform interface, or an operation of exiting the cloud platform interface.
And step 220, uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information.
And step 230, acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform.
The Web front-end interface of the industrial cloud platform comprises a cloud application center, and when cloud applications such as database applications and storage applications are created, the cloud application center can generate a corresponding visual cloud application creation interface according to the mirror images, so that a user can input cloud application creation information through the interface.
Optionally, obtaining cloud application creation information corresponding to the mirror image, which is set by the user, from a Web front-end interface provided by the industrial cloud platform may include: acquiring information of a mirror image set by a user from a Web front-end interface provided by an industrial cloud platform; uploading the information of the mirror image to a server, so that the server loads the mirror image to a cloud application center in an industrial cloud platform; and acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the cloud application center.
In this embodiment, the terminal may send the mirror image request to the server, so that the server mirror image is loaded to the cloud application center in the industrial cloud platform, or may obtain information of the mirror image set by the user from a Web front-end interface provided by the industrial cloud platform, where the information of the mirror image may include: the method comprises the steps that information such as mirror names, mirror description information, mirror function information, whether clusters are supported or not, and relevant parameters of the clusters are matched with the mirror images is uploaded to a server, so that the server loads the mirror images to a cloud application center in an industrial cloud platform.
And then responding to the clicking operation of the user on the mirror image in the cloud application center, providing a visual cloud application creation interface matched with the mirror image parameters for the user, so as to acquire cloud application creation information which is set by the user and corresponds to the mirror image through the visual interface, such as the name of the cloud application, the type of the cloud application, the actually occupied memory, the name of an environment variable, the value of the environment variable, the nodes for arranging the cluster, the used port number and the port protocol. The cloud application creation information corresponding to different cloud applications is different.
And 240, uploading the cloud application creation information to a server, so that the server creates the cloud application according to the cloud application creation information and the mirror image.
After the cloud application creation information is acquired, the terminal sends the cloud application creation information to the server, so that the server runs the mirror image according to the parameters of the mirror image, such as code running parameters, by using the docker to generate a cloud application container, and further runs the function codes of the cloud application in the container. The industrial cloud platform provides information such as a port, an access address, a user name and a password for the container, so that a user can access the container by clicking a page on the terminal, further access the service in the container, and relevant information of the service can be displayed on a display interface of the terminal.
Optionally, the mirror image production information further includes a function code; the function code is used for realizing functions of the cloud application. Correspondingly, after the cloud application creation information is uploaded to the server for the server to create the cloud application according to the cloud application creation information and the image, the method further includes: displaying information of a cloud application function on a Web front-end interface provided by an industrial cloud platform, wherein the cloud application function is realized by a function code; and responding to the configuration operation of the user on the information of the cloud application function, uploading the configuration parameters corresponding to the configuration operation to the server, so that the server updates the cloud application according to the configuration parameters.
The cloud application function at least comprises one of a cloud application editing function, a cloud application deleting function, a cloud application expanding function and a cloud application monitoring function.
Alternatively, by modifying the readable and writable layer of the container, it is possible to implement methods such as: the cloud application functions include modifying the name of the cloud application, deleting a certain function in the cloud application, increasing the available memory of the cloud application, increasing the number of cluster nodes of the cloud application and the like. An Application Programming Interface (API) of the scheduling server may also be configured to provide a graphical Interface for the user to display parameters of the monitoring operation, such as the usage rate of the CPU and the size of the occupied memory, in response to a click operation of the monitoring button provided by the user on the terminal.
According to the technical scheme of the embodiment of the invention, a terminal acquires mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters; uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information; acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform; the cloud application creation information is uploaded to the server, so that the server creates the cloud application according to the cloud application creation information and the mirror image, the problems that in the prior art, when codes are written for each cloud application, the technical difficulty and the workload are large, and the dependence degree between the cloud application and the cloud platform is high are solved, the difficulty and the workload of cloud application development in the industrial cloud platform are reduced, and decoupling of the cloud application and the industrial cloud platform is achieved.
EXAMPLE III
Fig. 3 is a flowchart of an implementation of an application scenario to which an embodiment of the present invention is applicable, and the present embodiment may be combined with various alternatives in the foregoing embodiments. Specifically, referring to fig. 3, the method may include the steps of:
first, the terminal displays a mirror image creation page in response to a user's click operation on a mirror image creation button.
Optionally, the Web front-end interface provided by the industrial cloud platform to the user includes a cloud application center, and when the user clicks a mirror image creation button in the cloud application center, the terminal responds to the click operation of the user on the mirror image creation button, and displays a mirror image creation page for acquiring mirror image production information set by the user.
Next, the user sets the mirror image creation information in the mirror image creation page.
The mirror image production information includes mirror image production parameters and function codes. And inputting and/or selecting mirror making parameters by a user through an input box and/or options provided in the mirror creating page, and uploading the functional codes of the cloud application in a designated code uploading area.
And then, the terminal acquires the mirror image making information set by the user and uploads the mirror image making information to the server.
And after the terminal acquires the mirror image making information set by the user, uploading the mirror image making information to the server by calling the API of the server.
Then, the server creates a mirror image based on the mirror image creation information.
After the server makes the mirror image, the newly-built mirror image is added into the mirror image warehouse, so that the generated mirror image can be conveniently transplanted to other container clusters or an industrial cloud platform for use, and the decoupling of the cloud application and the cloud platform is realized.
And then, the terminal requests the server to load the mirror image to the cloud application center, and generates a Web front-end interface respectively corresponding to the functions of creating, deleting, monitoring the cloud application and the like based on the mirror image. For example, a visualization cloud application creation interface, a visualization cloud application deletion interface, a visualization cloud application monitoring interface, and the like.
Then, the user inputs cloud application creation information according to the visual cloud application creation interface.
Then, the terminal uploads the cloud application creation information to the server.
And finally, the server creates the cloud application according to the mirror image and the cloud application creation information.
Example four
Fig. 4 is a schematic structural diagram of a cloud application creation apparatus based on an industrial cloud platform according to a fourth embodiment of the present invention. The embodiment can be applied to the situation of creating cloud application on an industrial cloud platform. As shown in fig. 4, the cloud application creation apparatus based on an industrial cloud platform is applied to a server, and includes:
the mirror image information acquisition module 410 is used for acquiring mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
a mirror image creation module 420 for creating a mirror image according to the mirror image creation information;
the cloud application information acquisition module 430 is used for acquiring cloud application creation information which is set by a user and corresponds to the mirror image from the terminal, the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform;
and a cloud application creation module 440 for creating the cloud application according to the cloud application creation information and the image.
According to the technical scheme of the embodiment of the invention, a server acquires mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters acquired by the terminal from a Web front-end interface provided by an industrial cloud platform, a mirror image is made according to the mirror image making information, and then cloud application creating information corresponding to the mirror image and set by the user is acquired from the terminal, wherein the cloud application creating information is matched with resources provided by the industrial cloud platform, the cloud application creating information is acquired by the terminal from the Web front-end interface provided by the industrial cloud platform, and cloud applications are created according to the cloud application creating information and the mirror image, so that the problems of high technical difficulty and high workload when codes are compiled for each cloud application in the prior art and the problem of high dependence degree between the cloud application and the cloud platform are solved, and the difficulty and workload of cloud application development in the industrial cloud platform are reduced, the decoupling of the cloud application and the industrial cloud platform is achieved.
Optionally, the mirror image making module 420 is specifically configured to:
generating a mirror image creating file according to the mirror image making parameters in the mirror image making information;
and compiling the mirror image creating file to generate a mirror image matched with the mirror image manufacturing parameters.
Optionally, the cloud application creating module 440 is specifically configured to:
generating a cloud application container matched with the mirror image by running the mirror image;
and modifying the cloud application container according to the cloud application creation information, and installing and deploying the cloud application in the container.
Optionally, the mirror image production information further includes a function code;
accordingly, the cloud application creation module 440 further includes: the parameter updating unit is used for issuing the information of the cloud application function to the terminal after the cloud application is created according to the cloud application creation information and the mirror image, so that the terminal can display the information of the cloud application function on a Web front-end interface provided by the industrial cloud platform, and the cloud application function is realized by the function code;
and acquiring configuration parameters corresponding to configuration operation of the user on the information of the cloud application function from the terminal, and updating the cloud application according to the configuration parameters.
The cloud application creation device based on the industrial cloud platform provided by the embodiment of the invention can execute the cloud application creation method based on the industrial cloud platform applied to the server provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a cloud application creation apparatus based on an industrial cloud platform in the fifth embodiment of the present invention. The embodiment can be applied to the situation of creating cloud application on an industrial cloud platform. As shown in fig. 5, the cloud application creation apparatus based on the industrial cloud platform is applied to a terminal, and includes:
a mirror image making information obtaining module 510, configured to obtain mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, where the mirror image making information includes mirror image making parameters;
a mirror image making information uploading module 520, configured to upload mirror image making information to a server, so that the server makes a mirror image according to the mirror image making information;
a cloud application creation information obtaining module 530, configured to obtain, from a Web front-end interface provided by the industrial cloud platform, cloud application creation information corresponding to the mirror image, where the cloud application creation information is set by a user and is matched with a resource provided by the industrial cloud platform;
the cloud application creation information uploading module 540 is configured to upload the cloud application creation information to the server, so that the server creates the cloud application according to the cloud application creation information and the mirror image.
According to the technical scheme of the embodiment of the invention, a terminal acquires mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters; uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information; acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform; the cloud application creation information is uploaded to the server, so that the server creates the cloud application according to the cloud application creation information and the mirror image, the problems that in the prior art, when codes are written for each cloud application, the technical difficulty and the workload are large, and the dependence degree between the cloud application and the cloud platform is high are solved, the difficulty and the workload of cloud application development in the industrial cloud platform are reduced, and decoupling of the cloud application and the industrial cloud platform is achieved.
Optionally, the mirror image production information further includes a function code;
accordingly, the cloud application creation information uploading module 540 further includes: a configuration parameter uploading unit configured to: after the cloud application creation information is uploaded to a server so that the server creates a cloud application according to the cloud application creation information and a mirror image, displaying information of a cloud application function on a Web front-end interface provided by an industrial cloud platform, wherein the cloud application function is realized by a function code;
and responding to the configuration operation of the user on the information of the cloud application function, uploading the configuration parameters corresponding to the configuration operation to the server, so that the server updates the cloud application according to the configuration parameters.
Optionally, the cloud application function at least includes one of an edit cloud application function, a delete cloud application function, an extend cloud application function, and a monitor cloud application function.
Optionally, the cloud application creation information obtaining module 530 is specifically configured to: acquiring information of a mirror image set by a user from a Web front-end interface provided by an industrial cloud platform;
uploading the information of the mirror image to a server, so that the server loads the mirror image to a cloud application center in an industrial cloud platform;
and acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the cloud application center.
The cloud application creation device based on the industrial cloud platform provided by the embodiment of the invention can execute the cloud application creation method based on the industrial cloud platform applied to the terminal provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of a server in a sixth embodiment of the present invention, and as shown in fig. 6, the server includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of the processors 610 in the server may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, the memory 620, the input device 630 and the output device 640 in the server may be connected by a bus or other means, and fig. 6 illustrates an example of a connection by a bus.
The memory 620, as a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the cloud application creation method based on the industrial cloud platform in the embodiment of the present invention (for example, the image information acquiring module 410, the image making module 420, the cloud application information acquiring module 430, and the cloud application creating module 440 in the cloud application creation apparatus based on the industrial cloud platform). The processor 610 executes various functional applications of the server and data processing by running software programs, instructions, and modules stored in the memory 620, that is, implements the above-described cloud application creation method based on the industrial cloud platform.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 may further include memory located remotely from the processor 610, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may be used to receive mirroring information and cloud application creation information transmitted from the terminal and generate key signal inputs related to user settings and function control of the device. The output device 640 may include a display device such as a display screen.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal according to a seventh embodiment of the present invention, and as shown in fig. 7, the terminal includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of the processors 710 in the terminal may be one or more, and one processor 710 is taken as an example in fig. 7; the processor 710, the memory 720, the input device 730 and the output device 740 in the terminal may be connected by a bus or other means, for example, in fig. 7.
The memory 720, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the cloud application creation method based on the industrial cloud platform in the embodiment of the present invention (for example, the mirroring information acquisition module 510, the mirroring information upload module 520, the cloud application creation information acquisition module 530, and the cloud application creation information upload module 540 in the cloud application creation apparatus based on the industrial cloud platform). The processor 710 executes various functional applications of the server and data processing by running software programs, instructions, and modules stored in the memory 720, that is, implements the above-described cloud application creation method based on the industrial cloud platform.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 720 may further include memory located remotely from processor 710, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive mirroring information and cloud application creation information set by a user and to generate key signal inputs related to user settings and function control of the apparatus. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the method for creating a cloud application based on an industrial cloud platform, which is provided by the above embodiments, is implemented, where the method for creating a cloud application based on an industrial cloud platform is applied to a server, and includes:
acquiring mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters and is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
making a mirror image according to the mirror image making information;
the method comprises the steps that cloud application creating information which is set by a user and corresponds to a mirror image is obtained from a terminal, the cloud application creating information is matched with resources provided by an industrial cloud platform, and the cloud application creating information is obtained by the terminal from a Web front-end interface provided by the industrial cloud platform;
and creating the cloud application according to the cloud application creation information and the mirror image.
Or, another cloud application creation method based on an industrial cloud platform is applied to a terminal, and includes:
acquiring mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters;
uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information;
acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform;
and uploading the cloud application creation information to a server, so that the server creates the cloud application according to the cloud application creation information and the mirror image.
Of course, the computer readable storage medium provided in the embodiments of the present invention may execute the computer instructions, which are not limited to the method operations described above, and may also execute the relevant operations in the cloud application creation method based on the industrial cloud platform provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the cloud application creation apparatus based on the industrial cloud platform, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A cloud application creation method based on an industrial cloud platform is applied to a server, and the method comprises the following steps:
acquiring mirror image making information set by a user from a terminal, wherein the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
making a mirror image according to the mirror image making information;
acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a terminal, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform;
and creating the cloud application according to the cloud application creation information and the mirror image.
2. The method of claim 1, wherein said making a mirror image according to said mirror image making information comprises:
generating a mirror image creating file according to the mirror image making parameters in the mirror image making information;
and compiling the mirror image creating file to generate a mirror image matched with the mirror image manufacturing parameters.
3. The method of claim 2, wherein creating the cloud application from the cloud application creation information and the image comprises:
generating a cloud application container matched with the mirror image by operating the mirror image;
and modifying the cloud application container according to the cloud application creation information, and installing and deploying the cloud application in the container.
4. The method of claim 1, wherein the mirroring information further comprises a function code;
accordingly, after the creating of the cloud application according to the cloud application creation information and the image, the method includes:
the information of the cloud application function is sent to the terminal so that the terminal can display the information of the cloud application function on a Web front-end interface provided by the industrial cloud platform, and the cloud application function is realized by the function code;
and acquiring configuration parameters corresponding to configuration operation of the information of the cloud application function by the user from the terminal, and updating the cloud application according to the configuration parameters.
5. A cloud application creation method based on an industrial cloud platform is applied to a terminal, and the method comprises the following steps:
acquiring mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, wherein the mirror image making information comprises mirror image making parameters;
uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information;
acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, wherein the cloud application creation information is matched with resources provided by the industrial cloud platform;
and uploading the cloud application creation information to the server, so that the server creates a cloud application according to the cloud application creation information and the mirror image.
6. The method of claim 5, wherein the mirroring information further comprises a function code;
correspondingly, after uploading the cloud application creation information to the server for the server to create a cloud application according to the cloud application creation information and the image, the method includes:
displaying information of the cloud application function on a Web front-end interface provided by the industrial cloud platform, wherein the cloud application function is realized by the function code;
and responding to configuration operation of a user on the information of the cloud application function, uploading configuration parameters corresponding to the configuration operation to the server, so that the server updates the cloud application according to the configuration parameters.
7. The method of claim 6, wherein the cloud application function comprises at least one of an edit cloud application function, a delete cloud application function, an expand cloud application function, and a monitor cloud application function.
8. The method according to any one of claims 5 to 7, wherein the obtaining of the cloud application creation information corresponding to the mirror image, which is set by the user, from the Web front-end interface provided by the industrial cloud platform comprises:
acquiring information of a mirror image set by a user from a Web front-end interface provided by the industrial cloud platform;
uploading the information of the mirror image to the server, so that the server can load the mirror image to a cloud application center in the industrial cloud platform;
and acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the cloud application center.
9. An industrial cloud platform-based cloud application creation device, which is applied to a server, and comprises:
the system comprises a mirror image information acquisition module, a data processing module and a data processing module, wherein the mirror image information acquisition module is used for acquiring mirror image making information set by a user from a terminal, the mirror image making information comprises mirror image making parameters, and the mirror image making information is acquired by the terminal from a Web front-end interface provided by an industrial cloud platform;
the mirror image making module is used for making a mirror image according to the mirror image making information;
the cloud application information acquisition module is used for acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a terminal, the cloud application creation information is matched with resources provided by the industrial cloud platform, and the cloud application creation information is acquired by the terminal from a Web front-end interface provided by the industrial cloud platform;
and the cloud application creation module is used for creating the cloud application according to the cloud application creation information and the mirror image.
10. A cloud application creation device based on an industrial cloud platform is applied to a terminal, and the device comprises:
the system comprises a mirror image making information acquisition module, a mirror image making information acquisition module and a mirror image making information processing module, wherein the mirror image making information acquisition module is used for acquiring mirror image making information set by a user from a Web front-end interface provided by an industrial cloud platform, and the mirror image making information comprises mirror image making parameters;
the mirror image making information uploading module is used for uploading the mirror image making information to a server so that the server can make a mirror image according to the mirror image making information;
the cloud application creation information acquisition module is used for acquiring cloud application creation information which is set by a user and corresponds to the mirror image from a Web front-end interface provided by the industrial cloud platform, and the cloud application creation information is matched with resources provided by the industrial cloud platform;
and the cloud application creation information uploading module is used for uploading the cloud application creation information to the server so that the server can create the cloud application according to the cloud application creation information and the mirror image.
11. A server, comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the industrial cloud platform based cloud application creation method of any of claims 1-4.
12. A terminal, comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the industrial cloud platform based cloud application creation method of any of claims 5-8.
13. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the industrial cloud platform based cloud application creation method according to any one of claims 1 to 4 or 5 to 8.
CN201910803279.XA 2019-08-28 2019-08-28 Cloud application creation method and device based on industrial cloud platform, terminal and server Pending CN112445511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910803279.XA CN112445511A (en) 2019-08-28 2019-08-28 Cloud application creation method and device based on industrial cloud platform, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910803279.XA CN112445511A (en) 2019-08-28 2019-08-28 Cloud application creation method and device based on industrial cloud platform, terminal and server

Publications (1)

Publication Number Publication Date
CN112445511A true CN112445511A (en) 2021-03-05

Family

ID=74740675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910803279.XA Pending CN112445511A (en) 2019-08-28 2019-08-28 Cloud application creation method and device based on industrial cloud platform, terminal and server

Country Status (1)

Country Link
CN (1) CN112445511A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888695A (en) * 2017-11-23 2018-04-06 新华三云计算技术有限公司 Cloud platform creates the method and cloud platform equipment of mirror image
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment
CN110058925A (en) * 2019-04-30 2019-07-26 黑龙江电力调度实业有限公司 A method of creating virtual machine in cloud computing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN107888695A (en) * 2017-11-23 2018-04-06 新华三云计算技术有限公司 Cloud platform creates the method and cloud platform equipment of mirror image
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment
CN110058925A (en) * 2019-04-30 2019-07-26 黑龙江电力调度实业有限公司 A method of creating virtual machine in cloud computing system

Similar Documents

Publication Publication Date Title
CN110768833B (en) Application arrangement and deployment method and device based on kubernets
CN108614688B (en) Visual application arrangement system and method applied to hybrid cloud environment
CN111027921B (en) Service processing method and device, electronic equipment and storage medium
CN108304201B (en) Object updating method, device and equipment
US20180101371A1 (en) Deployment manager
CN111782232A (en) Cluster deployment method and device, terminal equipment and storage medium
CN108513657B (en) Data conversion method and backup server
US8954859B2 (en) Visually analyzing, clustering, transforming and consolidating real and virtual machine images in a computing environment
CN114115852A (en) Visual service arranging method, device, equipment and medium
CN106100880B (en) A kind of deployment of cloud data resource and visual management method
US10191733B2 (en) Software change process orchestration in a runtime environment
CN109446570B (en) Business process display method, device, computer equipment and storage medium
US9361139B1 (en) System and method for visualizing virtual system components
CN115292026B (en) Management method, device and equipment of container cluster and computer readable storage medium
CN111736994B (en) Resource arranging method, system, storage medium and electronic equipment
CN115061717A (en) Application management method, application subscription method and related equipment
US20220357974A1 (en) Container creation in a computing system
CN113778486A (en) Containerization processing method, device, medium and equipment for code pipeline
CN114912897A (en) Workflow execution method, workflow arrangement method and electronic equipment
CN114706690A (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN114912255A (en) On-line simulation experiment system and method
CN112948099B (en) Task issuing flow method and device, computer equipment and storage medium
CN114968032A (en) Service processing method, device, equipment and computer readable storage medium
CN112558968A (en) Resource tree view generation method, device, equipment and storage medium
CN111753040A (en) Method, device and system for processing geospatial data

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