CN112667251A - Service deployment method, device, computer equipment and storage medium - Google Patents

Service deployment method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112667251A
CN112667251A CN202011593956.9A CN202011593956A CN112667251A CN 112667251 A CN112667251 A CN 112667251A CN 202011593956 A CN202011593956 A CN 202011593956A CN 112667251 A CN112667251 A CN 112667251A
Authority
CN
China
Prior art keywords
service
configuration information
deployment
page
target
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
CN202011593956.9A
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.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction 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 Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN202011593956.9A priority Critical patent/CN112667251A/en
Publication of CN112667251A publication Critical patent/CN112667251A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a service deployment method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: responding to a deployment request of a user for the service, and displaying a service deployment page by the user; responding to configuration information input by a user in a service deployment page, and constructing a target service matched with the configuration information; and issuing the target service to the micro-service registration center according to the configuration information, and generating a service page matched with the target service. The technical scheme of the embodiment of the invention can realize the automation of the service deployment process, can reduce the technical difficulty in the service deployment process, saves the time required by the service deployment process and improves the service deployment efficiency.

Description

Service deployment method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a service deployment method, a service deployment device, computer equipment and a storage medium.
Background
With the development of computer technology, software developers continuously develop new services to meet different requirements of users, and when the software developers develop services, DevOps (development, operation and maintenance) technology is usually adopted to implement the release and deployment of the services.
The DevOps is a combination of two fields of Development (Development) and operation and maintenance (Operations), but the DevOps does not provide the function of building, publishing and deploying services, but cooperates with other Development tools (such as Jenkins) by installing plug-ins to implement building, publishing and deploying services. The existing service deployment method is that a user manually submits a service code to be constructed to a version warehouse (such as a GitHub and a GitLab), Jenkins periodically obtains the latest service code from the version warehouse, a DevOps technology and a packaging tool are combined to construct a corresponding service, the constructed service program package is written into an application container engine docker, and the docker pushes a service program package mirror image to a mirror image server, so that the application server can be informed to pull the service program package to start the service.
However, the existing service deployment method needs a user to manually construct a service code and submit the service code to a version warehouse, so that the deployment process is complicated, the development cost is high, and errors are easy to make in the deployment process.
Disclosure of Invention
The embodiment of the invention provides a service deployment method, a service deployment device, computer equipment and a storage medium, which can realize automation of a service deployment process, reduce technical difficulty in the service deployment process and improve service deployment efficiency.
In a first aspect, an embodiment of the present invention provides a service deployment method, where the method includes:
responding to a deployment request of a user for the service, and displaying a service deployment page by the user;
responding to configuration information input by a user in the service deployment page, and constructing a target service matched with the configuration information;
and issuing the target service to a micro-service registration center according to the configuration information, and generating a service page matched with the target service.
In a second aspect, an embodiment of the present invention further provides a service deployment apparatus, where the apparatus includes:
the deployment page display module is used for responding to a deployment request of a user for the service and displaying a service deployment page by the user;
the target service construction module is used for responding to the configuration information input by the user in the service deployment page and constructing the target service matched with the configuration information;
and the target service publishing module is used for publishing the target service to a micro service registration center according to the configuration information and generating a service page matched with the target service.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to perform the service deployment method provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program implements the service deployment method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the service deployment page is displayed by the user in response to the deployment request of the user for the service, the target service matched with the configuration information is constructed in response to the configuration information input by the user in the service deployment page, the target service is issued to the micro-service registration center according to the configuration information, and the service page matched with the target service is generated.
Drawings
Fig. 1 is a flowchart of a service deployment method in a first embodiment of the present invention;
fig. 2a is a flowchart of a service deployment method in the second embodiment of the present invention;
FIG. 2b is a schematic diagram of an application support platform page according to a second embodiment of the present invention;
FIG. 2c is a diagram of a service deployment page according to a second embodiment of the present invention;
FIG. 2d is a schematic diagram of a service deployment page in a no-code mode according to a second embodiment of the present invention;
fig. 2e is a schematic diagram of a service deployment page in a code mode according to a second embodiment of the present invention;
FIG. 2f is a diagram illustrating a service page according to a second embodiment of the present invention;
FIG. 2g is a diagram of a public service system page according to a second embodiment of the present invention;
fig. 3 is a flowchart of a service deployment method in the third embodiment of the present invention;
fig. 4 is a structural diagram of a service deployment apparatus in the fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth 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 service deployment method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a service is automatically deployed in an application supporting platform, and the method may be executed by a service deployment apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer and all intelligent devices (e.g., terminal devices or servers) including a program running function, and specifically includes the following steps:
step 110, responding to the deployment request of the user to the service, and displaying the service deployment page by the user.
In this embodiment, a service deployment page is preset in the application support platform, when a user wants to deploy a new service, a request for "deploying the service" may be triggered in the application support platform, and after the application support platform receives the request, the service deployment page is opened, so that the user inputs corresponding configuration information on the page.
And 120, responding to the configuration information input by the user in the service deployment page, and constructing a target service matched with the configuration information.
The service deployment page may include a plurality of configuration modules, the configuration information is specific configuration content corresponding to a specific configuration module, and a user may select default configuration information in each configuration module or may input configuration information in a customized manner in the service deployment page. Therefore, the technical difficulty in the service deployment process can be reduced, and the learning cost of a user and the development cost of the service deployment process can be reduced.
In this embodiment, after receiving configuration information corresponding to all modules input by a user, a complete microservice architecture code corresponding to the configuration information may be generated according to each configuration information and a development tool pre-stored in an application support platform; and then calling a service construction tool, and constructing and obtaining the target service matched with the configuration information according to the micro-service architecture code. Wherein, the target service is a new service which the user wants to deploy.
In this embodiment, the target service is constructed by generating the micro-service architecture code and calling the service construction tool without manually constructing the service code by the user, so that an error condition in the service deployment process can be avoided, automation of the service deployment process can be realized, time required by the service deployment process is saved, and the service deployment efficiency is improved.
Step 130, issuing the target service to a micro service registration center according to the configuration information, and generating a service page matched with the target service.
In this embodiment, the configuration information may include attribute information (e.g., port information) of a new service (i.e., a target service) that a user wants to deploy, and then, according to a mapping relationship between pre-stored service attribute information and a micro-service registry, address information of the micro-service registry matched with the target service is queried, and the target service is issued to the micro-service registry according to the address information; in addition, according to the configuration information, address information of the corresponding micro service gateway can be inquired, and in order to enable a user to access the target service through the unified access gateway, the target service can be issued to the corresponding micro service gateway.
In a specific embodiment, the configuration information may include title information of a new service (i.e., a target service) that a user wants to deploy, and after the target service is published to the micro-service registry, a service page matched with the target service may be rendered by using a preset page rendering engine according to the title information.
According to the technical scheme of the embodiment of the invention, the service deployment page is displayed by the user in response to the deployment request of the user for the service, the target service matched with the configuration information is constructed in response to the configuration information input by the user in the service deployment page, the target service is issued to the micro-service registration center according to the configuration information, and the service page matched with the target service is generated.
Example two
This embodiment is a further refinement of the first embodiment, and the same or corresponding terms as those in the first embodiment are explained, and this embodiment is not repeated. Fig. 2a is a flowchart of a service deployment method provided in a second embodiment of the present invention, in this embodiment, a technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, and in this embodiment, as shown in fig. 2a, a method provided in the second embodiment of the present invention may further include:
step 210, responding to the deployment request of the user to the service, and displaying the service deployment page by the user.
Fig. 2b is a schematic diagram of an application support platform page in this embodiment, and as shown in fig. 2b, services stored in the application support platform include an inspection detection mechanism management system, a consistency inspection management system, a scientific and technological project management system, a full life cycle management system, and an internal control management system. When the user wants to deploy a new service, a control with a "+" symbol may be triggered in the page, and when the application support platform detects that the control is triggered, the service deployment page (as shown in fig. 2c) is opened.
Step 220, responding to the configuration information input by the user in the service deployment page, and generating a standard service code matched with the service to be deployed according to the configuration information.
In this embodiment, the service to be deployed is a new service that the user wants to deploy, that is, a target service in a subsequent step. In an implementation manner of the embodiment of the present invention, generating a standard service code matched with a service to be deployed according to the configuration information includes: generating a corresponding initial service code by using a preset development tool according to the configuration information; the initial service code is used for representing a micro service architecture matched with the configuration information; and matching the regular expression with the initial service code, and modifying the initial service code into a standard service code according to a matching result.
After configuration information input by a user is acquired, the application support platform can generate a field model file corresponding to the configuration information according to pre-stored business logic, then based on the field model file, a development tool (such as a JHipser) is used for generating an initial service code, the initial service code is a micro-service architecture code corresponding to the configuration information, then a regular expression is used for matching with the initial service code, and the matched character string is modified into a service code meeting the standard specification of a service research and development center, namely a standard service code.
The initial service code comprises a public micro-service administration component corresponding to the configuration information and a service micro-service architecture. Specifically, the public micro service administration component may include Zuul Proxy service in a micro service frame (Spring Cloud), a micro service registration center (Registry), a service administration component, a micro service authentication component, and the like; the service micro-service architecture may include a Spring Boot framework, a Spring Cloud framework, and the like.
Wherein, the Zuu Proxy service is used for encapsulating the dynamic routing micro service; the Registry is used for encapsulating a service discovery framework Eureka and a configuration center Config Server; the service management component is used for packaging a log monitoring tool Elk, a distributed link monitoring component Sleuth Zipkin and the like; the micro service authentication component is used for integrating user login authentication functions, such as centralized authentication based on the open authorization protocol OAUTH2, or stateless authentication based on the authentication protocol JWT, and the like.
In this embodiment, after the initial service code is generated, the initial service code may be replaced with a standard service code through a regular expression. The regular expression specifies the character string to be modified and the corresponding standard character string in advance. Specifically, the target field in the initial service code may be extracted by using an awk command, and a find command or a sed command may be used to query the target field for a target character string matching the character string to be modified, and then replace the target character string with a standard character string, so as to modify the initial service code into the standard service code.
In this embodiment, by modifying the initial service code into the standard service code, the service architecture can be unified, the service deployment modes are consistent, and the service deployment efficiency can be further improved.
In a specific embodiment, as shown in fig. 2c, the configuration information may include common configuration information, where the common configuration information includes a group basis package (groupbase) name, port information of the target service, a service package name corresponding to the target service, identification information of the target service (i.e., a micro service name corresponding to the target service in fig. 2c), and an organization service name (i.e., a service name in fig. 2c) to which the target service belongs. The group base package name may be understood as a file directory name storing a standard service code, and the service package name may be understood as a code package name of the standard service code.
In addition, the configuration information may further include secret configuration information, which is menu information corresponding to the target service. As shown in fig. 2c, the user may enter the covert configuration information through either a no-code mode or a code mode.
Fig. 2d is a schematic diagram of a service deployment page in the codeless mode in this embodiment, and as shown in the figure, after the user selects the codeless mode, the service deployment page may pop up a plurality of menu information configuration modules, such as a build tool state, an application verification type, a database type, a spring cache, and menu items in fig. 2 d. In the code-free mode, a user can select default configuration information in each menu information configuration module, or can input the configuration information in a user-defined mode without manually inputting codes, so that the technical difficulty in the service deployment process can be reduced, and the service deployment efficiency can be improved.
In this embodiment, after the user selects the no-code mode, the configuration information confirmed by the user in each menu information configuration module may be converted into a configuration file in JDL format, and the application support platform generates the corresponding initial service code according to the configuration file and the JDL use instruction "jhipster import-JDL × JDL". The JDL is a specific domain language in a development tool JHIPster, and a Jhipster Generator of the JHIPster is integrated in the application support platform in advance.
Fig. 2e is a schematic diagram of the service deployment page in the code mode in this embodiment, and as shown in fig. 2e, after the user selects the code mode, the service deployment page may pop up a paste code module, and the user may input a code associated with the menu information to the paste code module to complete configuration of the menu information.
Therefore, by setting the code mode and the no-code mode, the dual-mode on-demand switching can be realized, the flexibility of the input mode of the configuration information in the service deployment page is improved, and the configuration experience of a user on the target service is enriched.
Step 230, create a gitlab version repository name, and jenkins task.
And 240, uploading the standard service code to a storage position matched with the version warehouse name in the gitlab.
In this embodiment, after the standard service code is generated, the standard service code is automatically uploaded to the storage location matched with the version warehouse name without manual uploading by a user, so that the service deployment process can be simplified, errors in the uploading process are avoided, and the service deployment efficiency is improved.
And step 250, calling the jenkins task to acquire the standard service codes from the storage position, and constructing a target service matched with the standard service codes.
Jenkins is a continuous integration tool developed based on Java and used for monitoring continuous and repeated work, and when a new standard service code is monitored in gitlab, the standard service code is obtained, and a matched target service is constructed, so that timeliness of a target service construction process can be guaranteed, and deployment efficiency of the target service is improved.
And step 260, issuing the target service to a micro-service registration center according to the configuration information, and generating a service page matched with the target service.
In this embodiment, the configuration information may include title information of a new service (that is, a target service) that a user wants to deploy and attribute information corresponding to each title, and assuming that the title information input by the user is a project suggestion unit, a suggested funding ten-thousand yuan, a project name, and a project type, a generated service page is as shown in fig. 2 f. Wherein, the demand collection, project declaration and project acceptance in fig. 2f are modules added for the target service; the rest modules (such as the flow center, the message center, the user center, the authority center, the operation and maintenance center, the log center and the workbench) are all public service modules in the application support platform, and the modules can be automatically added into a public service system in the application support platform, as shown in fig. 2 g. Therefore, the public service module is deployed in the uniform system interface, so that a user can conveniently access the public service module, and the experience of the user is improved.
According to the technical scheme, the service deployment page is displayed by a user in response to a service deployment request of the user, the configuration information input by the user in the service deployment page is responded, a standard service code matched with the service to be deployed is generated according to the configuration information, a gitlab version warehouse name and a jenkins task are created, the standard service code is uploaded to a storage position matched with the version warehouse name in gitlab, the jenkins task is called to obtain the standard service code from the storage position, a target service matched with the standard service code is constructed, the target service is released to a micro-service registration center according to the configuration information, and the service page matched with the target service is generated.
EXAMPLE III
This embodiment is a further refinement of the second embodiment, and the same or corresponding terms as those in the first embodiment are explained, and this embodiment is not repeated. Fig. 3 is a flowchart of a service deployment method provided in a third embodiment of the present invention, in this embodiment, a technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, and in this embodiment, as shown in fig. 3, a method provided in the third embodiment of the present invention may further include:
and 310, responding to a service deployment request of a user, and displaying a service deployment page by the user.
And step 320, responding to the configuration information input by the user in the service deployment page, and generating a standard service code matched with the service to be deployed according to the configuration information.
Step 330, create the gitlab version warehouse name, and jenkins task.
And step 340, uploading the standard service code to a storage position matched with the version warehouse name in the gitlab.
And 350, calling the jenkins task to acquire the standard service codes from the storage position, and constructing a target service matched with the standard service codes.
And 360, generating a configuration file matched with the service to be deployed according to the standard service code.
In this embodiment, the configuration file may include Address information of the microservice registry, and typically, the Address information may be an Internet Protocol Address (IP Address) of the microservice registry, and in addition, the configuration file may further include an operation port number of the microservice registry, an IP Address of the microservice gateway, and an operation port number of the microservice gateway.
Therefore, by generating the configuration file matched with the service to be deployed, the addresses of the micro-service registration center and the micro-service gateway can be quickly obtained, and the target service can be conveniently and subsequently published.
Step 370, according to the address information, the target service is issued to a micro service registration center.
In this embodiment, preferably, the target service may also be issued to the micro service gateway, so that the user accesses the target service through the unified access gateway.
And 380, generating a service page matched with the target service according to the standard service code, a preset data format and a page construction tool.
In a specific embodiment, the title information of a new service (i.e., a target service) that a user wants to deploy can be acquired from a standard service code, and then a service page matched with the target service is generated according to a preset data format and a page construction tool VUE, so that the normalized display of the contents of each module in the service page can be realized, and the reading experience of the user can be improved. Wherein, the VUE is a set of progressive JavaScript framework for constructing the user interface.
In this embodiment, after generating the service page matched with the target service, the method further includes: and responding to a triggering request of the user to the service page, and displaying the target service by the user.
After the target service is deployed, when a user wants to view the target service, a request for opening the target service can be triggered in the application supporting platform, and after the application supporting platform receives the request, the service page is opened and the target service is displayed to the user.
The technical scheme of the embodiment of the invention generates a standard service code matched with the service to be deployed according to the configuration information by responding to the deployment request of the user for the service, creates a gitlab version warehouse name and a jenkins task by responding to the configuration information input by the user in the service deployment page, uploads the standard service code to a storage position matched with the version warehouse name in gitlab, calls the jenkins task to obtain the standard service code from the storage position, constructs a target service matched with the standard service code, generates a configuration file matched with the service to be deployed according to the standard service code, finally releases the target service to a micro-service registration center according to the address information, and generates a service page matched with the target service according to the standard service code, a preset data format and a page construction tool, the technical difficulty in the service deployment process can be reduced, the service deployment process is simplified, and the deployment efficiency of the target service is improved.
Example four
Fig. 4 is a structural diagram of a service deployment apparatus according to a fourth embodiment of the present invention, where the apparatus includes: a deployment page presentation module 410, a target service construction module 420, and a target service publishing module 430.
The deployment page display module 410 is configured to respond to a deployment request of a user for a service, and perform user display on a service deployment page;
a target service construction module 420, configured to respond to configuration information input by a user in the service deployment page, and construct a target service matching the configuration information;
and the target service publishing module 430 is configured to publish the target service to a micro service registry according to the configuration information, and generate a service page matched with the target service.
According to the technical scheme of the embodiment of the invention, the service deployment page is displayed by the user in response to the deployment request of the user for the service, the target service matched with the configuration information is constructed in response to the configuration information input by the user in the service deployment page, the target service is issued to the micro-service registration center according to the configuration information, and the service page matched with the target service is generated.
On the basis of the foregoing embodiments, the target service building module 420 may include:
the standard service code generating unit is used for generating a standard service code matched with the service to be deployed according to the configuration information;
the configuration information comprises a group base packet name, port information of the target service, a service packet name corresponding to the target service, identification information of the target service, a service name to which the target service belongs and menu information corresponding to the target service;
the task creating unit is used for creating a gitlab version warehouse name and a jenkins task;
the standard service code uploading unit is used for uploading the standard service code to a storage position matched with the version warehouse name in the gitlab;
the standard service code acquisition unit is used for calling the jenkins task to acquire the standard service code from the storage position and constructing a target service matched with the standard service code;
the initial service code generating unit is used for generating a corresponding initial service code by using a preset development tool according to the configuration information; the initial service code is used for representing a micro service architecture matched with the configuration information;
and the code modification unit is used for matching the initial service code by using a regular expression and modifying the initial service code into a standard service code according to a matching result.
The target service publishing module 430 may include:
the configuration file generating unit is used for generating a configuration file matched with the service to be deployed according to the standard service code;
wherein, the configuration file comprises the address information of the microservice registration center;
the issuing unit is used for issuing the target service to a micro-service registration center according to the address information;
and the page generating unit is used for generating a service page matched with the target service according to the standard service code, a preset data format and a page construction tool.
On the basis of the foregoing embodiments, the service deployment apparatus further includes:
and the service display module is used for responding to a trigger request of a user to the service page and displaying the target service for the user.
The service deployment device provided by the embodiment of the invention can execute the service deployment method 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 computer apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the computer apparatus includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the computer device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the memory 520, the input device 530 and the output device 540 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5. The memory 520 is a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a service deployment method in any embodiment of the present invention (for example, a deployment page presentation module 410, a target service construction module 420, and a target service publishing module 430 in a service deployment apparatus). The processor 510 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 520, namely, implements one of the service deployment methods described above. That is, the program when executed by the processor implements:
responding to a deployment request of a user for the service, and displaying a service deployment page by the user;
responding to configuration information input by a user in the service deployment page, and constructing a target service matched with the configuration information;
and issuing the target service to a micro-service registration center according to the configuration information, and generating a service page matched with the target service.
The memory 520 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 520 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 520 may further include memory located remotely from processor 510, which may be connected to a computer device through 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 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus, and may include a keyboard and a mouse, etc. The output device 540 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the computer-readable storage medium provided in the embodiments of the present invention may perform related operations in a service deployment method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
responding to a deployment request of a user for the service, and displaying a service deployment page by the user;
responding to configuration information input by a user in the service deployment page, and constructing a target service matched with the configuration information;
and issuing the target service to a micro-service registration center according to the configuration information, and generating a service page matched with the target service.
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 service deployment apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the 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 (10)

1. A method for service deployment, the method comprising:
responding to a deployment request of a user for the service, and displaying a service deployment page by the user;
responding to configuration information input by a user in the service deployment page, and constructing a target service matched with the configuration information;
and issuing the target service to a micro-service registration center according to the configuration information, and generating a service page matched with the target service.
2. The method of claim 1, wherein constructing the target service matching the configuration information comprises:
generating a standard service code matched with the service to be deployed according to the configuration information;
creating a gitlab version warehouse name and a jenkins task;
uploading the standard service code to a storage location in the gitlab that matches the version repository name;
and calling the jenkins task to acquire the standard service codes from the storage position, and constructing a target service matched with the standard service codes.
3. The method of claim 2, wherein publishing the target service to a micro-service registry according to the configuration information comprises:
generating a configuration file matched with the service to be deployed according to the standard service code;
wherein, the configuration file comprises the address information of the microservice registration center;
and issuing the target service to a micro-service registration center according to the address information.
4. The method of claim 2, wherein generating a service page matching the target service comprises:
and generating a service page matched with the target service according to the standard service code, a preset data format and a page construction tool.
5. The method of claim 2, wherein generating a standard service code matching the service to be deployed according to the configuration information comprises:
generating a corresponding initial service code by using a preset development tool according to the configuration information; the initial service code is used for representing a micro service architecture matched with the configuration information;
and matching the regular expression with the initial service code, and modifying the initial service code into a standard service code according to a matching result.
6. The method of claim 1, wherein the configuration information comprises a group base packet name, port information of the target service, a service packet name corresponding to the target service, identification information of the target service, a service name to which the target service belongs, and menu information corresponding to the target service.
7. The method of claim 1, after generating the service page matching the target service, further comprising:
and responding to a triggering request of the user to the service page, and displaying the target service by the user.
8. A service deployment apparatus, characterized in that the apparatus comprises:
the deployment page display module is used for responding to a deployment request of a user for the service and displaying a service deployment page by the user;
the target service construction module is used for responding to the configuration information input by the user in the service deployment page and constructing the target service matched with the configuration information;
and the target service publishing module is used for publishing the target service to a micro service registration center according to the configuration information and generating a service page matched with the target service.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
the service deployment method as recited in any of claims 1-7, when executed by the one or more programs, such that the one or more processors execute the programs.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the service deployment method of any one of claims 1 to 7.
CN202011593956.9A 2020-12-29 2020-12-29 Service deployment method, device, computer equipment and storage medium Pending CN112667251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011593956.9A CN112667251A (en) 2020-12-29 2020-12-29 Service deployment method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011593956.9A CN112667251A (en) 2020-12-29 2020-12-29 Service deployment method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112667251A true CN112667251A (en) 2021-04-16

Family

ID=75411933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011593956.9A Pending CN112667251A (en) 2020-12-29 2020-12-29 Service deployment method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667251A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672278A (en) * 2021-08-23 2021-11-19 湖南惠农科技有限公司 Service node version control method and device under micro-service architecture
CN116627434A (en) * 2023-07-24 2023-08-22 北京寄云鼎城科技有限公司 Model deployment service method, electronic equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672278A (en) * 2021-08-23 2021-11-19 湖南惠农科技有限公司 Service node version control method and device under micro-service architecture
CN113672278B (en) * 2021-08-23 2024-05-10 湖南惠农科技有限公司 Service node version control method and device under micro-service architecture
CN116627434A (en) * 2023-07-24 2023-08-22 北京寄云鼎城科技有限公司 Model deployment service method, electronic equipment and medium
CN116627434B (en) * 2023-07-24 2023-11-28 北京寄云鼎城科技有限公司 Model deployment service method, electronic equipment and medium

Similar Documents

Publication Publication Date Title
WO2018014657A1 (en) Unified portal method, apparatus and system
CN109104467B (en) Development environment construction method and device, platform system and storage medium
Alaya et al. Toward semantic interoperability in oneM2M architecture
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
EP2771803B1 (en) File fetch from a remote client device
WO2009098909A1 (en) Virtual appliance assignment system
CN107450899B (en) Method and device for generating terminal control script
CN109245988A (en) Monitor mail automatic sending method, system, computer equipment and storage medium
CN103634138B (en) The remotely management of distributed scheduling and O&M method and system thereof
WO2023093429A1 (en) Micro-application running method and apparatus, and device, storage medium and program product
CN105872019A (en) Method and device for logging in Docker container by Web end
Da Silva et al. Internet of things out of the box: using TOSCA for automating the deployment of IoT environments
EP3654123B1 (en) Method of comissioning a field device in an industrial system network
CN112667251A (en) Service deployment method, device, computer equipment and storage medium
CN110324169A (en) A kind of method and apparatus of interface management
CN113301116A (en) Cross-network communication method, device, system and equipment for microservice application
CN109213498A (en) A kind of configuration method and server of internet web front-end
CN114254606A (en) Microservice framework model
CN110597783A (en) Database management method, device, equipment and storage medium
CN113268232A (en) Page skin generation method and device and computer readable storage medium
CN107404410B (en) Method and device for constructing virtual network function platform in cloud environment
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
US20060047781A1 (en) Method and system for providing remote portal service modules
CN117435215A (en) Development environment deployment method, system, computer device and storage medium
CN114296698A (en) BPM-based business demand flow system design method

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