CN114385195A - Third-party platform deployment method, third-party platform deployment device, computer equipment and medium - Google Patents

Third-party platform deployment method, third-party platform deployment device, computer equipment and medium Download PDF

Info

Publication number
CN114385195A
CN114385195A CN202111507856.4A CN202111507856A CN114385195A CN 114385195 A CN114385195 A CN 114385195A CN 202111507856 A CN202111507856 A CN 202111507856A CN 114385195 A CN114385195 A CN 114385195A
Authority
CN
China
Prior art keywords
party platform
docker container
target server
deploying
installation
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
CN202111507856.4A
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.)
Hangzhou Anheng Information Security Technology Co Ltd
Original Assignee
Hangzhou Anheng Information Security 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 Hangzhou Anheng Information Security Technology Co Ltd filed Critical Hangzhou Anheng Information Security Technology Co Ltd
Priority to CN202111507856.4A priority Critical patent/CN114385195A/en
Publication of CN114385195A publication Critical patent/CN114385195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration 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)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a deployment method and device of a third-party platform, computer equipment and a computer readable storage medium, wherein an installation package required for deploying the third-party platform is obtained, and the installation package comprises a configuration file for deploying the third-party platform and a file to be installed; acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server; and installing the files to be installed in the started docker container according to the preset installation requirements. According to the method and the device, the docker container is created and started, and the file to be installed is installed in the started docker container according to the preset installation requirement, so that the third-party platform is fully automatically deployed, and the third-party platform deployment efficiency is effectively improved.

Description

Third-party platform deployment method, third-party platform deployment device, computer equipment and medium
Technical Field
The present application relates to the field of service deployment technologies, and in particular, to a method and an apparatus for deploying a third-party platform, a computer device, and a computer-readable storage medium.
Background
With the development of internet technology, various third party platforms such as a takeaway platform, a payment platform, an insurance platform, a situation awareness platform, and the like are layered endlessly. Since the third party platform may need to be applied to different environments, such as governments, companies or individuals, the third party platform needs to be deployed in different servers. The process of deploying the third-party platform is complex, and various environment configurations and file installation are required.
In the prior art, third party platforms are deployed manually. However, the manual operation is time-consuming and labor-consuming, and inevitable errors are caused by the manual operation, so that the problem of low deployment efficiency of the third-party platform exists.
Disclosure of Invention
Based on this, it is necessary to provide a third party platform deployment method, apparatus, computer device and computer readable storage medium to solve the problem of low third party platform deployment efficiency in the related art.
In a first aspect, an embodiment of the present application provides a third-party platform deployment method, configured to deploy a third-party platform in a target server, where the method includes the following steps:
acquiring an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed;
acquiring relevant information of a docker container required by the third-party platform according to the configuration file;
configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server;
and installing the files to be installed in the started docker container according to preset installation requirements.
In some embodiments, after obtaining the installation package required for deploying the third-party platform, before configuring the network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server, the method further includes:
judging whether the deployment of the third-party platform is cluster deployment or not according to the configuration file;
if yes, copying the installation package to all the target servers needing to deploy the third-party platform; the catalogs of the installation packages of all the target servers are kept consistent;
and carrying out secret-free configuration on all the target servers, and issuing a remote agent command synchronization command.
In some embodiments, the obtaining, according to the configuration file, the relevant information of the docker container required by the third-party platform includes:
acquiring a mapping relation between the target server and the docker container according to the configuration file;
and acquiring the relevant information of the docker container required by the deployment of the third-party platform according to the mapping relation.
In some embodiments, before configuring the network segment of the docker container according to the information about the docker container, and creating and starting the docker container in the target server, the method further includes:
and checking whether the installation environment of the target server is correct and whether the memory of the target server meets preset requirements.
In some of these embodiments, the method further comprises:
setting an installation progress mark;
and after the file to be installed is installed in the started docker container according to a preset installation requirement, detecting the installation progress of the target server according to the installation progress mark.
In some of these embodiments, the method further comprises:
after the target server is deployed, generating an authorization code of the target server according to the network address and the hardware information of the target server;
and authorizing the target server according to the authorization code.
In some of these embodiments, the method further comprises:
configuring a timing task for cleaning a log file;
and clearing the log file in the target server by calling the timing task.
In a second aspect, in this embodiment, there is provided a third-party platform deployment apparatus, configured to deploy a third-party platform in a target server, where the apparatus includes: the device comprises a first acquisition module, a second acquisition module, a creation module and an installation module:
the first obtaining module is used for obtaining an installation package required by deploying the third-party platform, and the installation package comprises a configuration file for deploying the third-party platform and a file to be installed;
the second acquisition module acquires the relevant information of the docker container required by the third-party platform according to the configuration file;
the creation module is used for configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server;
the installation module is used for installing the files to be installed in the started docker container according to preset installation requirements.
In a third aspect, there is provided in this embodiment a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, in the present embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect as described above.
According to the deployment method and device of the third-party platform, the computer equipment and the computer readable storage medium, the installation package required for deploying the third-party platform is obtained, and the installation package comprises the configuration file for deploying the third-party platform and the file to be installed; acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server; and installing the files to be installed in the started docker container according to the preset installation requirements. According to the method and the device, the docker container is created and started, and the file to be installed is installed in the started docker container according to the preset installation requirement, so that the third-party platform is fully automatically deployed, and the third-party platform deployment efficiency is effectively improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is an application scenario diagram of a deployment method of a third-party platform provided according to an embodiment of the present application;
FIG. 2 is a flowchart of a deployment method of a third party platform provided according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a deployment apparatus of a third party platform provided according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device provided according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Fig. 1 is an application scenario diagram of a deployment method of a third-party platform according to an embodiment of the present application. As shown in fig. 1, both the server 101 and the target server 102 may perform data transmission via a network. After acquiring an installation package required for deploying a third-party platform, the server 101 acquires relevant information of a docker container required for deploying the third-party platform according to the configuration file, wherein the installation package comprises the configuration file for deploying the third-party platform and a file to be installed; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server 102; and installing the files to be installed in the started docker container according to the preset installation requirements. The server 101 may be implemented by an independent server or a server cluster composed of a plurality of servers, and the target server 102 may be implemented by an independent server or a server cluster composed of a plurality of servers.
The embodiment provides a deployment method of a third party platform, which is used for deploying the third party platform in a target server, and as shown in fig. 2, the method includes the following steps:
step S210, obtaining an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed.
Specifically, the third-party platform may be any third-party platform, such as a takeaway platform, a payment platform, an insurance platform, a situation awareness platform, and the like. Since the third party platform may need to be applied to different environments, such as governments, companies or individuals, the third party platform needs to be deployed in different target servers. The installation package of the third-party platform can be generally obtained from an official website, the configuration file in the installation package defines environment configuration information required by the target server to deploy the third-party platform, and the file to be installed deploys files required to be installed by the third-party platform for the target server, such as database services, nginx, java running environment and the like.
Step S220, acquiring relevant information of the docker container required by the third-party platform according to the configuration file.
Specifically, docker is a Linux Container based advanced Container engine for the PaaS provider doccloud open source, with source code hosted on gitubs, open source based on the go language and compliant with the apache2.0 protocol. The docker provides resource isolation and security guarantee of the container through a kernel virtualization technology. Because the docker realizes isolation through virtualization of the operating system layer, extra operating system overhead similar to a virtual machine is not needed when the docker container runs, and the resource utilization rate is improved. docker enables almost any program to run in a secure, isolated container. Security and isolation may enable a server to run multiple containers simultaneously. The relevant information of the docker container comprises information such as an IP (Internet protocol) of the docker container and a name of the docker container which are required to be created by the target server for deploying the third-party platform, and the relevant information of the docker container required for deploying the third-party platform is put in the configuration file, so that the relevant information of the docker container required for deploying the third-party platform can be obtained according to the configuration file. As one of the embodiments, the information related to the docker container may be placed in a hostinfo json profile, which is formatted as follows:
{
"10.50.2.247":{"1.server1":{"memory":"8G","ip":"72.118.1.11","type":"server","group":"namenode"},"1.snamenode1":{"memory":"8G","ip":"72.118.1.12","type":"agent","group":"snamenode"},"1.datanode1":{"memory":"26G","ip":"72.118.1.13","type":"agent","group":"datanode"},"1.zookeeper1":{"memory":"2G","ip":"72.118.1.16","type":"agent","group":"zookeeper"}
}
10.50.2.247 represents ip information of a target server, 1.server1, 1.snamenode1, 1.datanode1 and 1.zookeeper1 represent names of a docker container, a memory field represents memory required to be allocated to the docker container, an ip field represents ip information of the docker container, a type represents a service type of the docker container, and a group represents a service group to which the docker container belongs.
Step S230, configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server.
Specifically, after obtaining the relevant information of the docker containers required by the third-party platform, in order to enable the docker containers to communicate with each other, the docker containers share network resources with each other, so that a network segment of the docker containers needs to be configured, and all the docker containers are configured in one network. The name of the network segment may be arbitrary, and may be mynet, for example. According to the information such as the ip of the target server, the name of the container, the ip of the container and the like, the container can be created and started in the target server by using a docker container command.
And S240, installing the file to be installed in the started docker container according to a preset installation requirement.
Specifically, the preset installation requirement is that which to-be-installed file is installed in which container, and generally, the type of the to-be-installed file is matched with the type of the docker container, for example, if the to-be-installed file serves as a database, the current to-be-installed file is installed in the docker container of the database type. The preset installation requirements can be set according to actual requirements. Because the docker containers can share resources, if a certain file to be installed is installed in a certain docker container and a service corresponding to the file to be installed is started, the service corresponding to the file to be installed in the current docker container can share resources with other docker containers.
As one embodiment, in step S230, the network segment of the docker container is configured according to the relevant information of the docker container, and before the docker container is created and started in the target server, the deployment method of the third-party platform further includes backing up the firewall rule of the target server, so as to restore the environment configuration of the target server after a problem occurs in the deployment process.
In the related art, a third-party platform is deployed manually. However, the manual operation is time-consuming and labor-consuming, and inevitable errors are caused by the manual operation, so that the problem of low deployment efficiency of the third-party platform exists. Through the steps S210 to S240, an installation package required for deploying the third-party platform is obtained, and the installation package includes a configuration file for deploying the third-party platform and a file to be installed; acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server; and installing the files to be installed in the started docker container according to the preset installation requirements. According to the method and the device, the docker container is created and started, and the file to be installed is installed in the started docker container according to the preset installation requirement, so that the third-party platform is fully automatically deployed, and the third-party platform deployment efficiency is effectively improved.
Further, in one embodiment, after the step S210 obtains the installation package required for deploying the third party platform, before the step S230 configures the network segment of the docker container according to the relevant information of the docker container, and creates and starts the docker container in the target server, the deployment method of the third party platform further includes the following steps:
step S310, judging whether the deployment of the third-party platform is cluster deployment or not according to the configuration file;
step S320, if yes, copying the installation package to all target servers needing to deploy the third-party platform; the directories of the installation package of the target server are kept consistent;
step S330, carry on the secret-free configuration to all target servers, and issue the remote agent command synchronization command.
Specifically, the number of the target servers can be obtained according to the configuration file, and when the number of the target servers is not 1, it is indicated that the current deployment of the third-party platform is cluster deployment. As one embodiment, the number of files at the beginning of hostinfo in the configuration file is the number of target servers for deploying the third-party platform. And if the deployment of the third-party platform is cluster deployment, copying the installation package to all target servers needing to deploy the third-party platform, and keeping the directories of the installation packages of all the target servers consistent so as to prepare for subsequent cluster deployment. As one of the embodiments, the ip of the destination server as the root node may be obtained in the configuration file fast, and the directory of the installation package in all the destination servers is consistent with the directory of the installation package of the root node. In order to enable communication among all target servers to be free of user name and password authentication login, secret-free configuration is carried out on all target servers, access passwords of all target servers are consistent, and secret-free communication among the target servers is only allowed. And issuing a remote agent command synchronization command, so that the same operation command can reach all target servers at the same time, and all the target servers can simultaneously realize the deployment of a third-party platform. In one embodiment, in order to obtain the location of each file of the target server installation package, the/conf/extension.list configuration file storing the file directory is transmitted to the/conf/directory of each target server. As one embodiment, in order to make the subsequent update of the configuration information of the target server more timely, the GSSAPIauthentication configuration is added in the/etc/ssh/ssh _ config configuration file. To speed up the communication between the target servers, the UseDNS in the/etc/ssh/sshd _ config profile may be closed, as one of the embodiments. In addition, if the configuration file of the target server is changed, the opennshd service of the target server needs to be restarted, so that the changed configuration can be guaranteed to be effective.
Through the steps S310 to S330, the third-party platform can be deployed in a plurality of target servers at the same time, and the deployment efficiency of the third-party platform is effectively improved.
In one embodiment, the step S220 of obtaining, according to the configuration file, the relevant information of the docker container required by the third-party platform includes the following steps:
step S221, acquiring a mapping relation between the target server and the docker container according to the configuration file;
and step S222, acquiring relevant information of the docker container required by the third-party platform according to the mapping relation.
Specifically, the ip and the name of the ip and the docker container of the target server can be extracted according to the configuration file, the mapping relationship between the target server and the docker container can be obtained according to the ip and the name of the docker container of the target server, and the relevant information of the docker container required by the third-party platform to be deployed can be obtained more intuitively according to the mapping relationship between the target server and the docker container.
Further, in one embodiment, before configuring, in step S230, a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server, the deployment method of the third-party platform further includes the following steps:
and checking whether the installation environment of the target server is correct and whether the memory of the target server meets the preset requirements.
Specifically, since deployment of the third-party platform requires an installation environment of the target server, for example, in a case where the third-party platform is a situational awareness system, a version requirement of the target server is 7.6.1810, and if the version of the target server is not correct, deployment of the third-party platform cannot be performed. In addition, the third-party platform is deployed on the target server, so that resources of the target server are consumed, and if the resources of the target server are insufficient, a situation of failed deployment is likely to occur, so that whether the memory of the target server meets preset requirements needs to be detected, the sufficient resources of the target server are ensured, and the success rate of deployment is improved.
In one embodiment, the deployment method of the third party platform further comprises the following steps:
setting an installation progress mark;
and after the file to be installed is installed in the started docker container according to the preset installation requirement, detecting the installation progress of the target server according to the installation progress identifier.
By setting the installation progress mark, the installation progress of the target server can be detected in real time, and the deployment condition of the target server can be known.
In one embodiment, the deployment method of the third party platform further comprises the following steps:
after the target server is deployed, generating an authorization code of the target server according to the network address and the hardware information of the target server;
and authorizing the target server according to the authorization code.
Specifically, the hardware information of the target server includes information such as a cpu of the target server, a disk serial number, and the like, and the identity of the target server can be uniquely determined according to the network address of the target server and the hardware information. In many cases, the third-party platform belongs to a technical asset, and cannot be operated in all servers, and only the target server subjected to identity authentication can operate the third-party platform. According to the method and the device, the authorization code of the target server is generated after the identity of the current target server is legal according to the network address and the hardware information of the target server, the target server is authorized according to the authorization code, and the third-party platform can be operated only after the target server is authorized, so that the technical asset leakage is effectively avoided.
In one embodiment, the deployment method of the third party platform further comprises the following steps:
configuring a timing task for cleaning a log file;
and cleaning the log file in the target server by calling the timing task.
Specifically, a large amount of log files are generated in the process of deploying the third-party platform by the target server, and if the log files are not cleaned in time, the memory of the target server is continuously consumed by the log files, so that the deployment efficiency of the third-party platform is seriously affected. The time period of the timing task can be set according to actual requirements, for example, the log file is cleaned every 30 seconds. By calling the timing task, the log file in the target server is cleaned, so that the resources of the target server are not consumed by the log file, and the deployment efficiency of a third-party platform is improved.
The embodiment also provides a deployment method of a third-party platform, which comprises the following steps:
step S410, acquiring an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed.
Step S420, determining whether the deployment of the third party platform is a cluster deployment according to the configuration file. If yes, go to step S430, otherwise go to step S450.
Step S430, copying the installation package to all target servers needing to deploy the third-party platform; the catalog of installation packages for all target servers remains consistent.
Step S440, carry out secret-free configuration for all target servers, and issue remote agent command synchronization command.
And step S450, setting an installation progress mark.
Step S460, check whether the installation environment of the target server is correct and whether the memory of the target server meets the preset requirement.
Step S470, obtaining the mapping relation between the target server and the docker container according to the configuration file.
And step S480, acquiring relevant information of the docker container required by the third-party platform according to the mapping relation.
Step S490, configuring the network segment of the docker container according to the information related to the docker container, and creating and starting the docker container in the target server.
And S500, installing the file to be installed in the started docker container according to a preset installation requirement.
And step S510, detecting the installation progress of the target server according to the installation progress mark.
Step S520, configuring a timing task for cleaning the log file, and cleaning the log file in the target server by calling the timing task.
Step S530, after the target server is deployed, an authorization code of the target server is generated according to the network address and the hardware information of the target server.
And S540, authorizing the target server according to the authorization code.
Fig. 3 is a schematic diagram of a third-party platform deployment apparatus according to an embodiment of the present invention, and as shown in fig. 3, there is provided a third-party platform deployment apparatus 30, which includes a first obtaining module 31, a second obtaining module 32, a creating module 33, and an installing module 34:
the first obtaining module 31 is configured to obtain an installation package required for deploying the third-party platform, where the installation package includes a configuration file for deploying the third-party platform and a file to be installed;
the second obtaining module 32 is used for obtaining the relevant information of the docker container required by the third-party platform according to the configuration file;
the creating module 33 is configured to configure a network segment of the docker container according to the relevant information of the docker container, and create and start the docker container in the target server;
and the installation module 34 is used for installing the file to be installed in the started docker container according to a preset installation requirement.
The deployment device 30 of the third-party platform acquires an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed; acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server; and installing the files to be installed in the started docker container according to the preset installation requirements. According to the method and the device, the docker container is created and started, and the file to be installed is installed in the started docker container according to the preset installation requirement, so that the third-party platform is fully automatically deployed, and the third-party platform deployment efficiency is effectively improved.
In one embodiment, the deployment apparatus 30 of the third party platform further includes a determining module, configured to, after obtaining an installation package required for deploying the third party platform, configure a network segment of the docker container according to related information of the docker container, and determine whether deployment of the third party platform is cluster deployment according to the configuration file before creating and starting the docker container in the target server;
if yes, copying the installation package to all target servers needing to deploy the third-party platform; the directories of the installation packages of all the target servers are kept consistent;
and carrying out secret-free configuration on all target servers, and issuing a remote agent command synchronization command.
In one embodiment, the second obtaining module 32 is further configured to obtain, according to the configuration file, a mapping relationship between the target server and the docker container;
and acquiring the relevant information of the docker container required by the third-party platform according to the mapping relation.
In one embodiment, the deployment apparatus 30 of the third party platform further includes a checking module, configured to check whether the installation environment of the target server is correct and whether the memory of the target server meets the preset requirement before configuring the network segment of the docker container according to the related information of the docker container and creating and starting the docker container in the target server.
In one embodiment, the deployment apparatus 30 of the third party platform further includes a setting module, configured to set an installation progress flag;
and after the file to be installed is installed in the started docker container according to the preset installation requirement, detecting the installation progress of the target server according to the installation progress identifier.
In one embodiment, the deployment apparatus 30 of the third-party platform further includes an authorization module, configured to generate an authorization code of the target server according to the network address and the hardware information of the target server after the target server is deployed;
and authorizing the target server according to the authorization code.
In one embodiment, the deployment apparatus 30 of the third party platform further includes a cleaning module, configured to configure a timing task for cleaning the log file;
and cleaning the log file in the target server by calling the timing task.
It should be noted that each of the modules may be a functional module or a program module, and may be implemented by software or hardware. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operating system and the computer programs to run in the non-volatile storage medium. The database of the computer device is used for storing a preset configuration information set. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the deployment method of the third party platform.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The memory provides an environment for the operating system and the computer programs to run in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of deployment of a third party platform. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an installation package required for deploying a third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed;
acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file;
configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server;
and installing the files to be installed in the started docker container according to the preset installation requirements.
In one embodiment, after obtaining an installation package required for deploying a third-party platform, before configuring a network segment of a docker container according to related information of the docker container and creating and starting the docker container in a target server, a processor executes a computer program and further performs the following steps:
judging whether the deployment of the third-party platform is cluster deployment or not according to the configuration file;
if yes, copying the installation package to all target servers needing to deploy the third-party platform; the directories of the installation packages of all the target servers are kept consistent;
and carrying out secret-free configuration on all target servers, and issuing a remote agent command synchronization command.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a mapping relation between a target server and a docker container according to the configuration file;
and acquiring the relevant information of the docker container required by the third-party platform according to the mapping relation.
In one embodiment, before configuring a network segment of a docker container according to information related to the docker container and creating and starting the docker container in the target server, the processor executes the computer program and further performs the following steps:
and checking whether the installation environment of the target server is correct and whether the memory of the target server meets the preset requirements.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
setting an installation progress mark;
and after the file to be installed is installed in the started docker container according to the preset installation requirement, detecting the installation progress of the target server according to the installation progress identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
after the target server is deployed, generating an authorization code of the target server according to the network address and the hardware information of the target server;
and authorizing the target server according to the authorization code.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
configuring a timing task for cleaning a log file;
and cleaning the log file in the target server by calling the timing task.
The storage medium acquires an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed; acquiring relevant information of a docker container required by the deployment of a third-party platform according to the configuration file; configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server; and installing the files to be installed in the started docker container according to the preset installation requirements. According to the method and the device, the docker container is created and started, and the file to be installed is installed in the started docker container according to the preset installation requirement, so that the third-party platform is fully automatically deployed, and the third-party platform deployment efficiency is effectively improved.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without any inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A third party platform deployment method for deploying a third party platform in a target server, the method comprising the steps of:
acquiring an installation package required for deploying the third-party platform, wherein the installation package comprises a configuration file for deploying the third-party platform and a file to be installed;
acquiring relevant information of a docker container required by the third-party platform according to the configuration file;
configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server;
and installing the files to be installed in the started docker container according to preset installation requirements.
2. The method according to claim 1, wherein after the obtaining of the installation package required for deploying the third-party platform, before configuring the network segment of the docker container according to the relevant information of the docker container and creating and starting the docker container in the target server, the method further comprises:
judging whether the deployment of the third-party platform is cluster deployment or not according to the configuration file;
if yes, copying the installation package to all the target servers needing to deploy the third-party platform; the catalogs of the installation packages of all the target servers are kept consistent;
and carrying out secret-free configuration on all the target servers, and issuing a remote agent command synchronization command.
3. The third-party platform deployment method according to claim 1, wherein the obtaining, according to the configuration file, the relevant information of the docker container required for deploying the third-party platform includes the following steps:
acquiring a mapping relation between the target server and the docker container according to the configuration file;
and acquiring the relevant information of the docker container required by the deployment of the third-party platform according to the mapping relation.
4. The method for deploying a third-party platform according to any one of claims 1 to 3, wherein before the configuring the network segment of the docker container according to the information about the docker container, and creating and starting the docker container in the target server, the method further comprises:
and checking whether the installation environment of the target server is correct and whether the memory of the target server meets preset requirements.
5. The method for deploying a third party platform according to any one of claims 1 to 3, further comprising:
setting an installation progress mark;
and after the file to be installed is installed in the started docker container according to a preset installation requirement, detecting the installation progress of the target server according to the installation progress mark.
6. The method for deploying a third party platform according to any one of claims 1 to 3, further comprising:
after the target server is deployed, generating an authorization code of the target server according to the network address and the hardware information of the target server;
and authorizing the target server according to the authorization code.
7. The method for deploying a third party platform according to any one of claims 1 to 3, further comprising:
configuring a timing task for cleaning a log file;
and clearing the log file in the target server by calling the timing task.
8. A third party platform deployment apparatus for deploying a third party platform in a target server, the apparatus comprising: the device comprises a first acquisition module, a second acquisition module, a creation module and an installation module:
the first obtaining module is used for obtaining an installation package required by deploying the third-party platform, and the installation package comprises a configuration file for deploying the third-party platform and a file to be installed;
the second acquisition module acquires the relevant information of the docker container required by the third-party platform according to the configuration file;
the creation module is used for configuring a network segment of the docker container according to the relevant information of the docker container, and creating and starting the docker container in the target server;
the installation module is used for installing the files to be installed in the started docker container according to preset installation requirements.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111507856.4A 2021-12-10 2021-12-10 Third-party platform deployment method, third-party platform deployment device, computer equipment and medium Pending CN114385195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111507856.4A CN114385195A (en) 2021-12-10 2021-12-10 Third-party platform deployment method, third-party platform deployment device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111507856.4A CN114385195A (en) 2021-12-10 2021-12-10 Third-party platform deployment method, third-party platform deployment device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN114385195A true CN114385195A (en) 2022-04-22

Family

ID=81195976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111507856.4A Pending CN114385195A (en) 2021-12-10 2021-12-10 Third-party platform deployment method, third-party platform deployment device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN114385195A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116186645A (en) * 2022-12-27 2023-05-30 上海柯林布瑞信息技术有限公司 Product authorized deployment method and device based on containerization
CN117785266A (en) * 2023-12-26 2024-03-29 无锡雪浪数制科技有限公司 Automatic release method of application program, scheduling server and low-code platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116186645A (en) * 2022-12-27 2023-05-30 上海柯林布瑞信息技术有限公司 Product authorized deployment method and device based on containerization
CN117785266A (en) * 2023-12-26 2024-03-29 无锡雪浪数制科技有限公司 Automatic release method of application program, scheduling server and low-code platform

Similar Documents

Publication Publication Date Title
US11405274B2 (en) Managing virtual network functions
CN108255497B (en) Application deployment method and device
CN112214330A (en) Method and device for deploying master nodes in cluster and computer-readable storage medium
US10796001B2 (en) Software verification method and apparatus
US9015712B1 (en) Environment template-driven environment provisioning in a virtual infrastructure
CN106878334A (en) The automatically dispose system and method for cloud
CN114385195A (en) Third-party platform deployment method, third-party platform deployment device, computer equipment and medium
CN107430669B (en) Computing system and method
CN112130871B (en) Method and device for remotely deploying middleware, computer equipment and storage medium
US9628939B2 (en) Data calling method and device
US20230229758A1 (en) Automated persistent context-aware device provisioning
CN109347716B (en) Instantiation method and device of consumer VNF
US10771462B2 (en) User terminal using cloud service, integrated security management server for user terminal, and integrated security management method for user terminal
CN110928554A (en) Deployment method, device, equipment and storage medium
CN112860282A (en) Upgrading method and device of cluster plug-in and server
CN111857733A (en) Construction method, device and system of business environment and readable storage medium
CN110489305B (en) Server management method and device
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN111857758B (en) Application deployment method, device and medium
CN109213572A (en) A kind of confidence level based on virtual machine determines method and server
WO2020253468A1 (en) Cloud-based device, application program processing method, electronic equipment and storage medium
US20230229779A1 (en) Automated ephemeral context-aware device provisioning
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
CN115016801A (en) Test environment deployment method, system, terminal and storage medium in complex system
WO2013097237A1 (en) Method, device and system for deploying application process

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