WO2020125389A1 - 镜像文件的获取方法、装置、计算机设备和存储介质 - Google Patents
镜像文件的获取方法、装置、计算机设备和存储介质 Download PDFInfo
- Publication number
- WO2020125389A1 WO2020125389A1 PCT/CN2019/122360 CN2019122360W WO2020125389A1 WO 2020125389 A1 WO2020125389 A1 WO 2020125389A1 CN 2019122360 W CN2019122360 W CN 2019122360W WO 2020125389 A1 WO2020125389 A1 WO 2020125389A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image file
- node
- basic
- file
- service
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
Definitions
- the present application relates to a method, device, computer equipment, and storage medium for acquiring an image file.
- a method, an apparatus, a computer device, and a storage medium for acquiring an image file are provided.
- a method for obtaining an image file includes:
- a method for obtaining an image file includes:
- the configuration file is used to generate a target image file in combination with the basic image file of the service node after the blockchain node pulls the configuration file and the basic image file of the service node using a preset automated deployment script .
- An apparatus for acquiring mirror files includes:
- a network segment information sending module configured to obtain network segment information of a blockchain node and send the network segment information to an operation server, wherein the network segment information is used to instruct the operation server to determine the blockchain The access port of the node;
- a basic parameter sending module configured to send the basic parameters of the blockchain node to the operation server through the access port, wherein the basic parameters are used to instruct the operation server to generate a configuration according to the basic parameters File, the basic image file of the service node is pre-stored in the operation server;
- a file pulling module configured to pull the configuration file and the basic image file of the service node from the operation server using a preset automatic deployment script
- the image file generating module is configured to generate a target image file according to the configuration file and the basic image file of the service node.
- An apparatus for acquiring mirror files includes:
- Network segment information acquisition module used to acquire the basic mirror file of the service node, and receive the network segment information of the blockchain node
- An access port determination module for determining the access port of the blockchain node based on the network segment information
- a configuration file obtaining module configured to obtain the basic parameters of the blockchain node through the access port, and generate a configuration file according to the basic parameters
- the configuration file is used to generate a target image file in combination with the basic image file of the service node after the blockchain node uses a preset automated deployment script to pull the corresponding configuration file and the basic image file of the service node.
- a computer device includes a memory and one or more processors.
- the memory stores computer-readable instructions.
- the steps of the method for acquiring an image file provided in any embodiment of the present application are implemented. .
- One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to implement any one of the embodiments of the present application.
- FIG. 1 is an application scenario diagram of a method for acquiring an image file according to one or more embodiments.
- FIG. 2 is a schematic flowchart of a method for acquiring an image file according to one or more embodiments.
- FIG. 3 is a schematic flowchart of a method for acquiring an image file in another embodiment.
- FIG. 4 is a schematic flowchart of a method for acquiring an image file in another embodiment.
- FIG. 5 is a block diagram of an apparatus for acquiring an image file according to one or more embodiments.
- FIG. 6 is a block diagram of an apparatus for acquiring an image file in another embodiment.
- FIG. 7 is a block diagram of an apparatus for acquiring an image file in yet another embodiment.
- FIG. 8 is a block diagram of a computer device in accordance with one or more embodiments.
- the method for obtaining an image file provided by this application can be applied to the application environment shown in FIG. 1.
- the operation server 102 communicates with the blockchain node 104 through the network through the network, prepares the basic image file of the service node locally on an operation server 102 in advance, and opens a network port on the operation server that the blockchain node 104 can access
- the blockchain node 104 sends basic parameters to the operation server 102 through the network port corresponding to the network segment where the blockchain node is located.
- the basic parameters generate a configuration file corresponding to the blockchain node 104; the blockchain node 104 executes an automated deployment script and pulls the basic image file and configuration file of the service node from the operation server 102, thereby generating a corresponding service node image file.
- the operation server 102 and the blockchain node 104 can be implemented by an independent server or a server cluster composed of multiple servers.
- a method for obtaining an image file is provided. Taking the method applied to the blockchain node in FIG. 1 as an example for illustration, it includes the following steps:
- Step S210 Obtain the network segment information of the blockchain node and send the network segment information to the operation server, where the network segment information is used to instruct the operation server to determine the access port of the blockchain node.
- the operation server pre-opens network ports that can access the operation server for different network segments; the blockchain node sends its own network segment information to the operation server, so that the operation server determines the blockchain node Access port to access the operation server.
- Step S220 Send the basic parameters of the blockchain node to the operation server through the access port, where the basic parameters are used to instruct the operation server to generate a configuration file according to the basic parameters, and the basic image file of the service node is saved in the operation server in advance.
- the basic parameters include the service address of the server where the blockchain node is located, the exposed port and its information, and the peer level of the blockchain node.
- the blockchain node After determining the access port to access the operation server, the blockchain node Send its own basic parameters to the operation server.
- the operation server executes the configuration file generation tool to generate configuration-related configuration files.
- Step S230 Use the preset automatic deployment script to pull the configuration file and the basic image file of the service node from the operation server.
- the automated deployment script is uploaded to the blockchain node in advance.
- the blockchain node executes the automated deployment script to pull the service node foundation from the operation server The image file and the configuration file generated by the operation server.
- Step S240 Generate a target image file according to the configuration file and the basic image file of the service node.
- the access port of the operation server is determined according to the network segment of the blockchain node, and the configuration file corresponding to the blockchain node and the basic image file are pulled from the operation server through the access port, thereby Generate target image files based on configuration files and basic image files to implement automatic deployment of service node image files, greatly reducing the error probability of manually pulling image files. Since only basic image files need to be prepared, deployment and maintenance costs are effectively reduced and services are improved. Node image file deployment efficiency, and during the deployment of the service node image file, the institutional network corresponding to each blockchain node is still shielded from the outside, effectively ensuring the security of the network.
- the automated deployment script includes an instruction to start the image file; after the step of generating the target image file according to the configuration file and the basic image file of the service node, the method further includes: executing the start image file instruction to start executing the target image file to obtain the target image Services; add target mirroring services to blockchain nodes.
- the automatic deployment script also includes a command to start the image file.
- the blockchain node executes the automatic deployment script, generates the target image file from the basic image file and the configuration file of the service node, and starts executing the program in the target image file.
- the method before the step of generating the target image file according to the configuration file and the basic image file of the service node, the method further includes: parsing the configuration file to obtain the node configuration parameters in the configuration file; and performing the node configuration parameters and the basic parameters Contrast; if the node configuration parameters are consistent with the basic parameters, then perform the steps of generating the target image file based on the configuration file and the basic image file of the service node.
- the blockchain node pulls the corresponding configuration file and the basic image file of the service node from the service operating machine, it parses the configuration file to obtain the node configuration parameters in the configuration file; Compare and verify the basic parameters of. If the verification is successful, the target image file is generated according to the configuration file and the basic image file of the service node. By verifying the correctness of various parameters in the configuration file, the accuracy of the configuration file is ensured, and then the accuracy of the image file generation of the service node is improved, and the image file deployment error monitoring is realized.
- the step of sending the basic parameters of the blockchain node to the operation server through the access port includes: hashing the basic parameters to obtain the first hash value; using the privacy of the blockchain node The key encrypts the first hash value to obtain signature data; the signature data and basic parameters are sent to the service operating machine, where the service operating machine is used to use the public key of the blockchain node after receiving the signature data and basic parameters Decrypt the signature data to obtain the first hash value; perform hash processing on the basic parameter to obtain the second hash value; when the first hash value and the second hash value are consistent, generate a configuration file according to the basic parameter.
- the blockchain node before the blockchain node sends the basic parameters of the node to the service operation machine, the blockchain node performs hash processing on the basic parameters to obtain the first hash value, and uses the private key of the blockchain node Encrypt the obtained first hash value to obtain signature data; while the blockchain node sends the basic parameters to the service operation machine, it also sends the signature data to the service operation machine.
- the service operator After receiving the signature data and the basic parameters, the service operator decrypts the signature data using the public key of the blockchain node to obtain the first hash value; meanwhile, the service operator performs hash processing on the basic parameters to obtain the second hash Value, by comparing whether the first hash value and the second hash value are consistent, to achieve the verification of the basic parameters, to avoid transmission errors during the transmission of the basic parameters of the blockchain nodes, improve the accuracy of configuration file generation, and reduce the target The error rate generated by the image file.
- a method for obtaining an image file is provided.
- the method is applied to the service operation machine in FIG. 1 as an example for illustration, which includes the following steps: a method for obtaining an image file
- Methods include:
- Step S310 Obtain the basic image file of the service node, and receive the network segment information of the blockchain node.
- Step S320 Determine the access port of the blockchain node according to the network segment information.
- Step S330 Obtain the basic parameters of the blockchain node through the access port and generate a configuration file according to the basic parameters; wherein, the configuration file is used to pull the configuration file and the basic image of the service node on the blockchain node using a preset automated deployment script After the file, combined with the basic image file of the service node to generate the target image file.
- the service operating machine uploads the basic image file of the service node locally in advance, and after receiving the network segment information sent by the blockchain node, determines the network port accessed by the blockchain node according to the network segment information, thereby determining from The network port receives basic parameters sent by the blockchain node, and uses the configuration file generation tool to generate configuration files from the basic parameters.
- the blockchain node executes a pre-stored automated deployment script to pull the basic image file and configuration file of the service node from the operation server After that, the target image file is generated based on the service node image file and the configuration file, and the automatic deployment of the service node image file is realized, which greatly reduces the error probability of manually pulling the image file.
- the service operating machine may open access ports for all network segments in advance, and when a blockchain node sends network segment information, it can quickly determine the corresponding access port.
- the service node basic image file includes a sorting node basic image file, a peer node basic image file and a transaction server basic image file; the step of determining the service node basic image file from the service node basic image file includes: obtaining The identity of the blockchain node. Determine the node type corresponding to the blockchain node according to the identity. The node type includes sorting node, peer node and transaction server node; determine the basic image file of the service node corresponding to the node type as being pulled The basic image file of the service node.
- the node types of the blockchain nodes include sorting nodes, peer nodes, and transaction server nodes; correspondingly, the basic image files of the service node include sorting node basic image files, peer node basic image files, and transaction server basic image files, etc.
- the basic image files of the service node include sorting node basic image files, peer node basic image files, and transaction server basic image files, etc.
- the service operating machine obtains the identity of the blockchain node, and matches the identity with the identity data in the local database; when the identity is successfully matched with the identity data, the node type corresponding to the identity data is determined as The node type of the blockchain node; the service operator determines the corresponding type of service node basic image file as the service node basic image file with the node type, so that the blockchain node pulls the service node basic image file.
- a method for obtaining an image file is provided.
- the method is applied to the interaction between the service operation machine and the blockchain node in FIG. 1 as an example, and may include the following steps :
- Step S410 The blockchain node obtains the network segment information of the blockchain node and sends the network segment information to the operation server;
- Step S420 operating the server to obtain the basic image file of the service node, and receiving the network segment information of the blockchain node;
- Step S430 The operation server determines the access port of the blockchain node according to the network segment information
- Step S440 the blockchain node sends the basic parameters of the blockchain node to the operation server through the access port;
- Step S450 The operation server obtains the basic parameters of the blockchain node through the access port, and generates a configuration file according to the basic parameters;
- Step S460 the blockchain node uses a preset automatic deployment script to pull the configuration file and the basic image file of the service node from the operation server;
- Step S470 Generate a target image file according to the configuration file and the basic image file of the service node.
- the service operator uploads the basic image file of the service node locally in advance, and after receiving the network segment information sent by the blockchain node, determines the network port accessed by the blockchain node according to the network segment information. Therefore, the basic parameters sent by the blockchain node are received from the determined network port, and the basic parameters are generated into a configuration file using a configuration file generation tool.
- the blockchain node executes a pre-stored automated deployment script to pull the basic image file of the service node from the operation server After the configuration file, the target image file is generated according to the service node image file and the configuration file to realize the automatic deployment of the service node image file, which greatly reduces the error probability of manually pulling the image file and improves the service node image file deployment efficiency.
- steps in the flowcharts of FIGS. 2 to 4 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, the execution of these steps is not strictly limited in order, and these steps may be executed in other orders. Moreover, at least some of the steps in FIGS. 2 to 4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or The execution order of the stages is not necessarily sequential, but may be executed in turn or alternately with other steps or sub-steps of the other steps or at least a part of the stages.
- an image file acquisition device including: a network segment information acquisition module 510, a basic parameter transmission module 520, a file pull module 530, and an image file generation module 540, among them:
- the network segment information sending module 510 is used to obtain the network segment information of the blockchain node and send the network segment information to the operation server, wherein the network segment information is used to instruct the operation server to determine the access port of the blockchain node;
- the basic parameter sending module 520 is used to send the basic parameters of the blockchain node to the operation server through the access port, wherein the basic parameters are used to instruct the operation server to generate a configuration file based on the basic parameters, and the service is saved in advance in the operation server Node basic image file;
- the file pulling module 530 is used to pull a configuration file and a basic image file of the service node from the operation server by using a preset automatic deployment script;
- the image file generation module 540 is used to generate a target image file according to the configuration file and the basic image file of the service node.
- the automated deployment script includes an instruction to start the image file; the image file generation module 540 is used to execute the instruction to start the image file to start executing the target image file to obtain the target image service; the target image service is added to the blockchain node .
- the image file generation module 540 is used to parse the configuration file to obtain the node configuration parameters in the configuration file; compare the node configuration parameters with the basic parameters; if the node configuration parameters are consistent with the basic parameters, execute Steps to generate the target image file according to the configuration file and the basic image file of the service node.
- the basic parameter sending module 520 is used to hash the basic parameters to obtain the first hash value; the first hash value is encrypted using the private key of the blockchain node to obtain signature data; Send the signature data and basic parameters to the service operation machine, where the service operation machine is used to decrypt the signature data using the public key of the blockchain node after receiving the signature data and the basic parameters to obtain the first hash value;
- the basic parameters are hashed to obtain a second hash value; when the first hash value and the second hash value are consistent, a configuration file is generated according to the basic parameters.
- an image file acquisition device including: a network segment information acquisition module 610, an access port determination module 620, and a configuration file acquisition module 630, where:
- the network segment information obtaining module 610 is used to obtain the basic mirror file of the service node and receive the network segment information of the blockchain node;
- the access port determination module 620 is used to determine the access port of the blockchain node according to the network segment information
- the configuration file obtaining module 630 is used to obtain the basic parameters of the blockchain node through the access port and generate a configuration file according to the basic parameters;
- the configuration file is used to generate the target image file in combination with the basic image file of the service node after the blockchain node uses the preset automated deployment script to pull the configuration file and the basic image file of the service node.
- an image file acquisition device further includes a basic image file determination module 640, and the service node basic image file includes a sorting node basic image file, peer The basic image file of the node and the basic image file of the transaction server; the basic image file determination module 640 is used to obtain the identity of the blockchain node, and determine the node type corresponding to the blockchain node according to the identity, the node type includes sorting node, peer node and Transaction server node; determine the basic image file of the service node corresponding to the node type as the basic image file of the service node being pulled.
- the service node basic image file includes a sorting node basic image file, peer The basic image file of the node and the basic image file of the transaction server
- the basic image file determination module 640 is used to obtain the identity of the blockchain node, and determine the node type corresponding to the blockchain node according to the identity, the node type includes sorting node, peer node and Transaction server node; determine the basic image file of the service node corresponding to the no
- Each module in the above-mentioned image file acquisition device may be implemented in whole or in part by software, hardware, or a combination thereof.
- the above modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software so that the processor can call and execute the operations corresponding to the above modules.
- a computer device is provided.
- the computer device may be a server, and its internal structure may be as shown in FIG. 8.
- the computer device includes a processor, memory, network interface, and database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
- the memory of the computer device includes a non-volatile computer-readable storage medium and internal memory.
- the non-volatile computer-readable storage medium stores an operating system, computer-readable instructions, and a database.
- the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile computer-readable storage medium.
- the database of the computer device is used to store basic parameters and basic image files of the service node.
- the network interface of the computer device is used to communicate with external terminals through a network connection.
- FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
- a computer device includes a memory and one or more processors.
- the memory stores computer-readable instructions.
- the steps of the method for acquiring an image file provided in any embodiment of the present application are implemented. .
- One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to implement any one of the embodiments of the present application.
- Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM random access memory
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous chain (Synchlink) DRAM
- RDRAM direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种镜像文件的获取方法,包括:获取区块链节点的网段信息,发送网段信息至操作服务机中,其中网段信息用于指示操作服务机确定区块链节点的访问端口;通过访问端口发送区块链节点的基础参数至操作服务机中,其中,基础参数用于指示操作服务机根据基础参数生成配置文件,操作服务机中预先保存服务节点基础镜像文件;利用预设的自动化部署脚本从操作服务机中拉取配置文件以及服务节点基础镜像文件;根据配置文件以及服务节点基础镜像文件生成目标镜像文件。
Description
本申请要求于2018年12月17日提交中国专利局,申请号为2018115443848,申请名称为“镜像文件的获取方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及一种镜像文件的获取方法、装置、计算机设备和存储介质。
在区块链部署过程中,由于区块链的组件模块比较多,组织和运行起来比较繁琐,特别在涉及到分布式跨网段部署的时候。每个参与区块链的机构成员为了安全性能上的考虑,参与区块链的机构成员在设置区块链节点时,自建的网络往往对外屏蔽,此时每个网段、甚至每个区块链节点都需要事先准备好一份服务节点镜像文件。但是,发明人意识到,当区块链节点的数量较多,同时区块链节点又处于不同网段的时候,逐一对区块链节点部署服务节点镜像文件的工作量巨大,部署效率低,且极容易出现错误。
发明内容
根据本申请公开的各种实施例,提供一种镜像文件的获取方法、装置、计算机设备和存储介质。
一种镜像文件的获取方法,所述方法包括:
获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;
通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;
利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及
根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
一种镜像文件的获取方法,所述方法包括:
获取服务节点基础镜像文件,并接收区块链节点的网段信息;
根据所述网段信息确定所述区块链节点的访问端口;及
通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;
其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取所述配置文件以及所述服务节点基础镜像文件后,结合所述服务节点基础镜像文件生成目标镜像文件。
一种镜像文件的获取装置,所述装置包括:
网段信息发送模块,用于获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;
基础参数发送模块,用于通通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;
文件拉取模块,用于利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及
镜像文件生成模块,用于根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
一种镜像文件的获取装置,所述装置包括:
网段信息获取模块,用于获取服务节点基础镜像文件,并接收区块链节点的网段信息;
访问端口确定模块,用于根据所述网段信息确定所述区块链节点的访问 端口;及
配置文件获取模块,用于通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;
其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取对应的配置文件以及服务节点基础镜像文件后,结合所述服务节点基础镜像文件生成目标镜像文件。
一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的镜像文件的获取方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的镜像文件的获取方法的步骤。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中镜像文件的获取方法的应用场景图。
图2为根据一个或多个实施例中镜像文件的获取方法的流程示意图。
图3为另一个实施例中镜像文件的获取方法的流程示意图。
图4为又一个实施例中镜像文件的获取方法的流程示意图。
图5为根据一个或多个实施例中镜像文件的获取装置的框图。
图6为另一个实施例中镜像文件的获取装置的框图。
图7为又一个实施例中镜像文件的获取装置的框图。
图8为根据一个或多个实施例中计算机设备的框图。
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的镜像文件的获取方法,可以应用于如图1所示的应用环境中。操作服务机102通过网络与区块链节点104通过网络进行通信,在一个操作服务机102预先在本地准备服务节点基础镜像文件,并且在操作服务机上开通让区块链节点104可以访问的网络端口,在部署区块链节点104的服务节点镜像文件的过程中,区块链节点104通过该区块链节点所处网段对应的网络端口发送基础参数至操作服务机102,操作服务机102根据基础参数生成与区块链节点104对应的配置文件;区块链节点104执行自动化部署脚本,从操作服务机102上拉取服务节点基础镜像文件以及配置文件,从而生成与之对应的服务节点镜像文件。操作服务机102以及区块链节点104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在其中一个实施例中,如图2所示,提供了一种镜像文件的获取方法,以该方法应用于图1中的区块链节点为例进行说明,包括以下步骤:
步骤S210:获取区块链节点的网段信息,发送网段信息至操作服务机中,其中网段信息用于指示操作服务机确定区块链节点的访问端口。
本步骤中,操作服务机预先为不同的网段开通可以访问操作服务机的网络端口;区块链节点将自身的网段信息发送到操作服务机中,使操作服务机确定该区块链节点访问操作服务机的访问端口。
步骤S220:通过访问端口发送区块链节点的基础参数至操作服务机中,其中,基础参数用于指示操作服务机根据基础参数生成配置文件,操作服务 机中预先保存服务节点基础镜像文件。
本实施例中,基础参数包括区块链节点所在服务器的服务地址、暴露端口及其信息以及区块链节点的peer级别等信息;在确定到访问操作服务机的访问端口后,区块链节点将自身的基础参数发送至操作服务机中,操作服务机获得该基础参数后,执行配置文件生成工具,生成配置相关配置文件。
步骤S230:利用预设的自动化部署脚本从操作服务机中拉取配置文件以及服务节点基础镜像文件。
本实施例中,预先上传自动化部署脚本至区块链节点中,在区块链节点发送基础参数至操作服务机后,区块链节点执行该自动化部署脚本,从操作服务机上拉取服务节点基础镜像文件以及由操作服务机生成的配置文件。
步骤S240:根据配置文件以及服务节点基础镜像文件生成目标镜像文件。
上述镜像文件的获取方法中,根据区块链节点的网段确定与操作服务机的访问端口,通过访问端口从操作服务机中拉取与区块链节点对应的配置文件以及基础镜像文件,从而根据配置文件以及基础镜像文件生成目标镜像文件,实现自动化部署服务节点镜像文件,极大地降低了人工拉取镜像文件的出错概率,由于只需准备基础镜像文件,有效减少部署以及维护成本,提高服务节点镜像文件部署效率,且在服务节点镜像文件的部署过程中,每个区块链节点对应的机构网络仍是对外屏蔽的,有效保证网络的安全性。
在其中一个实施例中,自动化部署脚本包括启动镜像文件指令;根据配置文件以及服务节点基础镜像文件生成目标镜像文件的步骤之后,还包括:执行启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;将目标镜像服务加入至区块链节点中。
本实施例中,自动化部署脚本中还包括启动镜像文件指令,区块链节点执行该自动化部署脚本,将服务节点基础镜像文件以及配置文件生成目标镜像文件后,启动执行目标镜像文件中的程序,得到区块链节点对应的镜像服务,实现部署服务节点镜像服务,使得每个区块链节点对应的机构网络保持对外屏蔽,有效保证网络的安全性。
在其中一个实施例中,根据配置文件以及服务节点基础镜像文件生成目标镜像文件的步骤之前,还包括:对配置文件进行解析,得到配置文件中的节点配置参数;将节点配置参数与基础参数进行对比;若节点配置参数与基础参数一致,则执行根据配置文件以及服务节点基础镜像文件生成目标镜像文件的步骤。
本实施例中,区块链节点从服务操作机中拉取到对应的配置文件以及服务节点基础镜像文件后,对配置文件进行解析,获取配置文件中的节点配置参数;将节点配置参数与自身的基础参数进行对比验证,若验证通过,则根据配置文件以及服务节点基础镜像文件生成目标镜像文件。通过验证配置文件中各类参数的正确性,确保配置文件的准确性,进而提高服务节点镜像文件生成的准确性,实现镜像文件部署错误监控。
在其中一个实施例中,通过访问端口发送区块链节点的基础参数至操作服务机中的步骤,包括:对基础参数进行哈希处理,得到第一哈希值;利用区块链节点的私钥对第一哈希值进行加密,获得签名数据;将签名数据与基础参数发送至服务操作机,其中服务操作机用于在接收到签名数据与基础参数后,利用区块链节点的公钥对签名数据进行解密,获得第一哈希值;对基础参数进行哈希处理,获得第二哈希值;当第一哈希值以及第二哈希值一致时,根据基础参数生成配置文件。
本实施例中,在区块链节点发送本节点的基础参数至服务操作机之前,区块链节点对基础参数进行哈希处理获得第一哈希值,并利用本区块链节点的私钥对获得的第一哈希值进行加密得到签名数据;区块链节点将基础参数发送至服务操作机的同时,也将签名数据发送至服务操作机。
服务操作机在接收到签名数据以及基础参数后,利用区块链节点的公钥对签名数据进行解密得到第一哈希值;同时,服务操作机对基础参数进行哈希处理获得第二哈希值,通过对比第一哈希值以及第二哈希值是否一致,实现对基础参数通过验证,避免区块链节点基础参数的传输过程中的传输错误,提高配置文件生成的准确性,降低目标镜像文件生成的错误率。
在其中一个实施例中,如图3所示,提供了一种镜像文件的获取方法,以该方法应用于图1中的服务操作机为例进行说明,包括以下步骤:一种镜像文件的获取方法,方法包括:
步骤S310:获取服务节点基础镜像文件,并接收区块链节点的网段信息。
步骤S320:根据网段信息确定区块链节点的访问端口。
步骤S330:通过访问端口获取区块链节点的基础参数,并根据基础参数生成配置文件;其中,配置文件用于在区块链节点利用预设的自动化部署脚本拉取配置文件以及服务节点基础镜像文件后,结合服务节点基础镜像文件生成目标镜像文件。
本实施例中,服务操作机预先在本地上传服务节点基础镜像文件,在接收到区块链节点发送的网段信息,根据网段信息确定该区块链节点所访问的网络端口,从而从确定的网络端口接收区块链节点发送的基础参数,并利用配置文件生成工具将基础参数生成配置文件,区块链节点执行预存的自动化部署脚本从操作服务机上拉取服务节点基础镜像文件以及配置文件后,根据服务节点镜像文件以及配置文件生成目标镜像文件,实现自动化部署服务节点镜像文件,极大地降低了人工拉取镜像文件的出错概率,由于只需准备基础镜像文件,有效减少部署以及维护成本,提高服务节点镜像文件部署效率,且在服务节点镜像文件的部署过程中,每个区块链节点对应的机构网络仍是对外屏蔽的,有效保证网络的安全性。
在其中一个实施例中,服务操作机可以预先为所有网段开通访问端口,区块链节点发送网段信息时,可以快速确定对应的访问端口。
在其中一个实施例中,服务节点基础镜像文件包括排序节点基础镜像文件,peer节点基础镜像文件以及交易服务器基础镜像文件;从服务节点基础镜像文件中确定服务节点基础镜像文件的步骤,包括:获取区块链节点的身份标识,根据身份标识确定区块链节点对应的节点类型,节点类型包括排序节点,peer节点和交易服务器节点;将节点类型对应类型的服务节点基础镜像文件确定为被拉取的服务节点基础镜像文件。
本实施例中,区块链节点的节点类型包括排序节点、peer节点以及交易服务器节点;相应的,服务节点基础镜像文件包括排序节点基础镜像文件,peer节点基础镜像文件和交易服务器基础镜像文件等多种类型的基础镜像文件;
具体的,服务操作机获取区块链节点的身份标识,将该身份标识与本地数据库中的身份数据进行匹配;当身份标识与身份数据匹配成功时,将与该身份数据对应的节点类型确定为该区块链节点的节点类型;服务操作机将与节点类型将对应类型的服务节点基础镜像文件确定为服务节点基础镜像文件,使得区块链节点拉取的是服务节点基础镜像文件。
在其中一个实施例中,如图4所示,提供了一种镜像文件的获取方法,以该方法应用于图1中的服务操作机和区块链节点交互为例进行说明,可包括如下步骤:
步骤S410:区块链节点获取区块链节点的网段信息,发送网段信息至操作服务机中;
步骤S420:操作服务机获取服务节点基础镜像文件,并接收区块链节点的网段信息;
步骤S430:操作服务机根据网段信息确定区块链节点的访问端口;
步骤S440:区块链节点通过访问端口发送区块链节点的基础参数至操作服务机中;
步骤S450:操作服务机通过访问端口获取区块链节点的基础参数,并根据基础参数生成配置文件;
步骤S460:区块链节点利用预设的自动化部署脚本从操作服务机中拉取配置文件以及服务节点基础镜像文件;
步骤S470:根据配置文件以及服务节点基础镜像文件生成目标镜像文件。
上述镜像文件的获取方法中,服务操作机预先在本地上传服务节点基础镜像文件,在接收到区块链节点发送的网段信息,根据网段信息确定该区块链节点所访问的网络端口,从而从确定的网络端口接收区块链节点发送的基 础参数,并利用配置文件生成工具将基础参数生成配置文件,区块链节点执行预存的自动化部署脚本从操作服务机上拉取服务节点基础镜像文件以及配置文件后,根据服务节点镜像文件以及配置文件生成目标镜像文件,实现自动化部署服务节点镜像文件,极大地降低了人工拉取镜像文件的出错概率,提高服务节点镜像文件部署效率。
应该理解的是,虽然图2至图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2至图4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在其中一个实施例中,如图5所示,提供了一种镜像文件的获取装置,包括:网段信息获取模块510、基础参数发送模块520、文件拉取模块530和镜像文件生成模块540,其中:
网段信息发送模块510,用于获取区块链节点的网段信息,发送网段信息至操作服务机中,其中网段信息用于指示操作服务机确定区块链节点的访问端口;
基础参数发送模块520,用于通通过访问端口发送区块链节点的基础参数至操作服务机中,其中,基础参数用于指示操作服务机根据基础参数生成配置文件,操作服务机中预先保存服务节点基础镜像文件;
文件拉取模块530,用于利用预设的自动化部署脚本从操作服务机中拉取配置文件以及服务节点基础镜像文件;
镜像文件生成模块540,用于根据配置文件以及服务节点基础镜像文件生成目标镜像文件。
在其中一个实施例中,自动化部署脚本包括启动镜像文件指令;镜像文 件生成模块540用于执行启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;将目标镜像服务加入至区块链节点中。
在其中一个实施例中,镜像文件生成模块540用于对配置文件进行解析,得到配置文件中的节点配置参数;将节点配置参数与基础参数进行对比;若节点配置参数与基础参数一致,则执行根据配置文件以及服务节点基础镜像文件生成目标镜像文件的步骤。
在其中一个实施例中,基础参数发送模块520用于对基础参数进行哈希处理,得到第一哈希值;利用区块链节点的私钥对第一哈希值进行加密,获得签名数据;将签名数据与基础参数发送至服务操作机,其中服务操作机用于在接收到签名数据与基础参数后,利用区块链节点的公钥对签名数据进行解密,获得第一哈希值;对基础参数进行哈希处理,获得第二哈希值;当第一哈希值以及第二哈希值一致时,根据基础参数生成配置文件。
在其中一个实施例中,如图6所示,提供了一种镜像文件的获取装置,包括:网段信息获取模块610、访问端口确定模块620以及配置文件获取模块630,其中:
网段信息获取模块610,用于获取服务节点基础镜像文件,并接收区块链节点的网段信息;
访问端口确定模块620,用于根据网段信息确定区块链节点的访问端口;
配置文件获取模块630,用于通过访问端口获取区块链节点的基础参数,并根据基础参数生成配置文件;
其中,配置文件用于在区块链节点利用预设的自动化部署脚本拉取配置文件以及服务节点基础镜像文件后,结合服务节点基础镜像文件生成目标镜像文件。
在其中一个实施例中,如图7所示,提供了一种镜像文件的获取装置,镜像文件的获取装置还包括基础镜像文件确定模块640,服务节点基础镜像文件包括排序节点基础镜像文件,peer节点基础镜像文件以及交易服务器基础镜像文件;基础镜像文件确定模块640用于获取区块链节点的身份标识, 根据身份标识确定区块链节点对应的节点类型,节点类型包括排序节点,peer节点和交易服务器节点;将节点类型对应类型的服务节点基础镜像文件确定为被拉取的服务节点基础镜像文件。
关于镜像文件的获取装置的具体限定可以参见上文中对于镜像文件的获取方法的限定,在此不再赘述。上述镜像文件的获取装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性计算机可读存储介质、内存储器。该非易失性计算机可读存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性计算机可读存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储基本参数以及服务节点基础镜像文件等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种镜像文件的获取方法。
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的镜像文件的获取方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申 请任意一个实施例中提供的镜像文件的获取方法的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。
Claims (20)
- 一种镜像文件的获取方法,包括:获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求1所述的方法,其特征在于,所述自动化部署脚本包括启动镜像文件指令;在根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件之后,还包括:执行所述启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;及将所述目标镜像服务加入至区块链节点中。
- 根据权利要求1所述的方法,其特征在于,在根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件之前,还包括:对所述配置文件进行解析,得到所述配置文件中的节点配置参数;及将所述节点配置参数与所述基础参数进行对比;若所述节点配置参数与所述基础参数一致,则执行所述根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件的步骤。
- 根据权利要求1所述的方法,其特征在于,所述通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,包括:对所述基础参数进行哈希处理,得到第一哈希值;利用所述区块链节点的私钥对所述第一哈希值进行加密,获得签名数据; 及将所述签名数据与所述基础参数发送至所述服务操作机,其中所述服务操作机用于在接收到签名数据与基础参数后,利用所述区块链节点的公钥对所述签名数据进行解密,获得第一哈希值;对所述基础参数进行哈希处理,获得第二哈希值;当所述第一哈希值以及所述第二哈希值一致时,根据所述基础参数生成配置文件。
- 一种镜像文件的获取方法,所述方法包括:获取服务节点基础镜像文件,并接收区块链节点的网段信息;根据所述网段信息确定所述区块链节点的访问端口;及通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取所述配置文件以及所述服务节点基础镜像文件后,结合所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求5所述的方法,其特征在于,所述服务节点基础镜像文件包括排序节点基础镜像文件,peer节点基础镜像文件以及交易服务器基础镜像文件;在根据所述基础参数生成配置文件之后,还包括:获取所述区块链节点的身份标识,根据所述身份标识确定所述区块链节点对应的节点类型,所述节点类型包括排序节点,peer节点和交易服务器节点;及将所述节点类型对应类型的服务节点基础镜像文件确定为被拉取的服务节点基础镜像文件。
- 一种镜像文件的获取装置,包括:网段信息发送模块,用于获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;基础参数发送模块,用于通通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;文件拉取模块,用于利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及镜像文件生成模块,用于根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求7所述的装置,其特征在于,所述自动化部署脚本包括启动镜像文件指令;所述镜像文件生成模块,还用于:执行所述启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;及将所述目标镜像服务加入至区块链节点中。
- 根据权利要求7所述的装置,其特征在于,所述文件拉取模块,还用于:对所述配置文件进行解析,得到所述配置文件中的节点配置参数;及将所述节点配置参数与所述基础参数进行对比;在所述节点配置参数与所述基础参数一致时,使所述镜像文件生成模块执行所述根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求7所述的装置,其特征在于,所述基础参数发送模块,具体用于:对所述基础参数进行哈希处理,得到第一哈希值;利用所述区块链节点的私钥对所述第一哈希值进行加密,获得签名数据;及将所述签名数据与所述基础参数发送至所述服务操作机,其中所述服务操作机用于在接收到签名数据与基础参数后,利用所述区块链节点的公钥对 所述签名数据进行解密,获得第一哈希值;对所述基础参数进行哈希处理,获得第二哈希值;在所述第一哈希值以及所述第二哈希值一致时,根据所述基础参数生成配置文件。
- 一种镜像文件的获取装置,包括:网段信息获取模块,用于获取服务节点基础镜像文件,并接收区块链节点的网段信息;访问端口确定模块,用于根据所述网段信息确定所述区块链节点的访问端口;及配置文件获取模块,用于通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取对应的配置文件以及服务节点基础镜像文件后,结合所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求11所述的装置,其特征在于,所述服务节点基础镜像文件包括排序节点基础镜像文件,peer节点基础镜像文件以及交易服务器基础镜像文件;所述配置文件获取模块,具体用于:获取所述区块链节点的身份标识,根据所述身份标识确定所述区块链节点对应的节点类型,所述节点类型包括排序节点,peer节点和交易服务器节点;及将所述节点类型对应类型的服务节点基础镜像文件确定为被拉取的服务节点基础镜像文件。
- 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求13所述的计算机设备,其特征在于,所述自动化部署脚本包括启动镜像文件指令;所述处理器执行所述计算机可读指令时还执行以下步骤:执行所述启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;及将所述目标镜像服务加入至区块链节点中。
- 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:对所述配置文件进行解析,得到所述配置文件中的节点配置参数;及将所述节点配置参数与所述基础参数进行对比;若所述节点配置参数与所述基础参数一致,则执行所述根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件的步骤。
- 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:对所述基础参数进行哈希处理,得到第一哈希值;利用所述区块链节点的私钥对所述第一哈希值进行加密,获得签名数据;及将所述签名数据与所述基础参数发送至所述服务操作机,其中所述服务操作机用于在接收到签名数据与基础参数后,利用所述区块链节点的公钥对所述签名数据进行解密,获得第一哈希值;对所述基础参数进行哈希处理,获得第二哈希值;当所述第一哈希值以及所述第二哈希值一致时,根据所述 基础参数生成配置文件。
- 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取区块链节点的网段信息,发送所述网段信息至操作服务机中,其中所述网段信息用于指示所述操作服务机确定所述区块链节点的访问端口;通过所述访问端口发送所述区块链节点的基础参数至操作服务机中,其中,所述基础参数用于指示所述操作服务机根据所述基础参数生成配置文件,所述操作服务机中预先保存服务节点基础镜像文件;利用预设的自动化部署脚本从所述操作服务机中拉取所述配置文件以及所述服务节点基础镜像文件;及根据所述配置文件以及所述服务节点基础镜像文件生成目标镜像文件。
- 根据权利要求17所述的存储介质,其特征在于,所述自动化部署脚本包括启动镜像文件指令;所述计算机可读指令被所述处理器执行时还执行以下步骤:执行所述启动镜像文件指令启动执行目标镜像文件,获得目标镜像服务;及将所述目标镜像服务加入至区块链节点中。
- 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取服务节点基础镜像文件,并接收区块链节点的网段信息;根据所述网段信息确定所述区块链节点的访问端口;及通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取所述配置文件以及所述服务节点基础镜像文件后,结合所述服务节点基 础镜像文件生成目标镜像文件。
- 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:获取服务节点基础镜像文件,并接收区块链节点的网段信息;根据所述网段信息确定所述区块链节点的访问端口;及通过所述访问端口获取所述区块链节点的基础参数,并根据所述基础参数生成配置文件;其中,所述配置文件用于在所述区块链节点利用预设的自动化部署脚本拉取所述配置文件以及所述服务节点基础镜像文件后,结合所述服务节点基础镜像文件生成目标镜像文件。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811544384.8 | 2018-12-17 | ||
| CN201811544384.8A CN109788032B (zh) | 2018-12-17 | 2018-12-17 | 镜像文件的获取方法、装置、计算机设备和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020125389A1 true WO2020125389A1 (zh) | 2020-06-25 |
Family
ID=66498043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/122360 Ceased WO2020125389A1 (zh) | 2018-12-17 | 2019-12-02 | 镜像文件的获取方法、装置、计算机设备和存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109788032B (zh) |
| WO (1) | WO2020125389A1 (zh) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111970124A (zh) * | 2020-08-12 | 2020-11-20 | 曙光信息产业(北京)有限公司 | 计算机工厂模式控制方法、装置、计算机设备和存储介质 |
| CN112637365A (zh) * | 2021-01-06 | 2021-04-09 | Oppo广东移动通信有限公司 | 终端资源下发、获取方法、装置、电子设备 |
| CN113282065A (zh) * | 2021-05-18 | 2021-08-20 | 西安热工研究院有限公司 | 一种基于图形组态的聚类极值实时计算方法 |
| CN113516065A (zh) * | 2021-07-03 | 2021-10-19 | 北京中建建筑科学研究院有限公司 | 基于区块链的资料权重测算方法、装置、服务器及存储介质 |
| CN113641373A (zh) * | 2021-08-30 | 2021-11-12 | 北京京东乾石科技有限公司 | 一种镜像部署的方法、装置和存储介质 |
| CN115567547A (zh) * | 2022-08-18 | 2023-01-03 | 网易(杭州)网络有限公司 | 一种镜像分发方法、系统和设备 |
| CN116501747A (zh) * | 2023-04-24 | 2023-07-28 | 北京闪马智建科技有限公司 | 镜像文件的构建方法和装置、存储介质及电子装置 |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109788032B (zh) * | 2018-12-17 | 2021-12-14 | 深圳壹账通智能科技有限公司 | 镜像文件的获取方法、装置、计算机设备和存储介质 |
| CN112181474B (zh) * | 2019-07-04 | 2022-05-20 | 北京新唐思创教育科技有限公司 | 区块链业务处理方法、电子设备及计算机存储介质 |
| CN110647439B (zh) * | 2019-08-15 | 2023-02-03 | 深圳壹账通智能科技有限公司 | 确认区块链系统部署方法、装置、计算机设备及存储介质 |
| CN110572287B (zh) * | 2019-09-05 | 2022-03-18 | 腾讯科技(深圳)有限公司 | 数据容灾方法、装置、计算机设备和存储介质 |
| CN110673992B (zh) * | 2019-09-16 | 2022-06-03 | 苏州浪潮智能科技有限公司 | 一种多镜像融合自启方法和系统 |
| CN110855791B (zh) * | 2019-11-18 | 2021-07-27 | 腾讯科技(深圳)有限公司 | 一种区块链节点部署方法及相关设备 |
| CN111787116B (zh) * | 2020-07-07 | 2021-08-20 | 上海道客网络科技有限公司 | 一种基于区块链技术的容器镜像可信认证的系统与方法 |
| CN112491812B (zh) | 2020-07-08 | 2022-03-01 | 支付宝(杭州)信息技术有限公司 | 区块链一体机的哈希更新方法及装置 |
| CN111538996B (zh) * | 2020-07-08 | 2021-06-29 | 支付宝(杭州)信息技术有限公司 | 区块链一体机的可信启动方法及装置 |
| CN113971289B (zh) | 2020-07-08 | 2025-09-30 | 蚂蚁区块链科技(上海)有限公司 | 区块链一体机的可信启动方法及装置 |
| CN113434254B (zh) * | 2021-06-30 | 2023-03-07 | 深圳平安智汇企业信息管理有限公司 | 客户端部署方法、装置、计算机设备及存储介质 |
| CN113987534B (zh) * | 2021-10-26 | 2024-11-01 | 猪哥云(北京)网络科技有限公司 | 自动化部署区块链节点的方法、装置、计算机设备和存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106101242A (zh) * | 2016-06-24 | 2016-11-09 | 深圳前海微众银行股份有限公司 | 区块链云服务平台的构建方法和装置 |
| CN107911421A (zh) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | 用于配置区块链中跨网络通信的方法、设备和计算机存储介质 |
| CN108366105A (zh) * | 2018-01-30 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | 跨区块链的数据访问方法、装置、系统及计算机可读介质 |
| CN108964982A (zh) * | 2018-06-13 | 2018-12-07 | 众安信息技术服务有限公司 | 用于实现区块链的多节点的部署的方法、装置及存储介质 |
| CN109788032A (zh) * | 2018-12-17 | 2019-05-21 | 深圳壹账通智能科技有限公司 | 镜像文件的获取方法、装置、计算机设备和存储介质 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103136014B (zh) * | 2011-12-02 | 2016-07-13 | 北京市电力公司 | 数据库安装的方法和系统 |
| US9053236B1 (en) * | 2013-12-23 | 2015-06-09 | Emc Corporation | Automated directory services test setup utility |
| CN104503965B (zh) * | 2014-10-16 | 2017-08-29 | 杭州斯凯网络科技有限公司 | PostgreSQL高弹性的高可用及负载均衡实现方法 |
| WO2017098326A1 (en) * | 2015-12-11 | 2017-06-15 | Umbra Technologies Ltd. | System and method for information slingshot over a network tapestry and granularity of a tick |
| WO2018119638A1 (zh) * | 2016-12-27 | 2018-07-05 | 深圳前海达闼云端智能科技有限公司 | 记录应用程序配置信息的方法、装置和电子设备 |
| CN109002354B (zh) * | 2017-06-07 | 2022-05-03 | 中国科学院信息工程研究所 | 一种基于OpenStack的计算资源容量弹性伸缩方法及系统 |
| CN108170590B (zh) * | 2017-12-12 | 2021-08-24 | 北京大学深圳研究生院 | 一种区块链系统的测试系统和方法 |
| CN107888625A (zh) * | 2017-12-25 | 2018-04-06 | 杭州迪普科技股份有限公司 | 包过滤日志汇聚方法及装置 |
| CN108965468B (zh) * | 2018-08-16 | 2021-04-30 | 北京京东尚科信息技术有限公司 | 区块链网络服务平台及其链码安装方法、存储介质 |
-
2018
- 2018-12-17 CN CN201811544384.8A patent/CN109788032B/zh active Active
-
2019
- 2019-12-02 WO PCT/CN2019/122360 patent/WO2020125389A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106101242A (zh) * | 2016-06-24 | 2016-11-09 | 深圳前海微众银行股份有限公司 | 区块链云服务平台的构建方法和装置 |
| CN107911421A (zh) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | 用于配置区块链中跨网络通信的方法、设备和计算机存储介质 |
| CN108366105A (zh) * | 2018-01-30 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | 跨区块链的数据访问方法、装置、系统及计算机可读介质 |
| CN108964982A (zh) * | 2018-06-13 | 2018-12-07 | 众安信息技术服务有限公司 | 用于实现区块链的多节点的部署的方法、装置及存储介质 |
| CN109788032A (zh) * | 2018-12-17 | 2019-05-21 | 深圳壹账通智能科技有限公司 | 镜像文件的获取方法、装置、计算机设备和存储介质 |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111970124A (zh) * | 2020-08-12 | 2020-11-20 | 曙光信息产业(北京)有限公司 | 计算机工厂模式控制方法、装置、计算机设备和存储介质 |
| CN112637365A (zh) * | 2021-01-06 | 2021-04-09 | Oppo广东移动通信有限公司 | 终端资源下发、获取方法、装置、电子设备 |
| CN112637365B (zh) * | 2021-01-06 | 2023-01-31 | Oppo广东移动通信有限公司 | 终端资源下发、获取方法、装置、电子设备 |
| CN113282065A (zh) * | 2021-05-18 | 2021-08-20 | 西安热工研究院有限公司 | 一种基于图形组态的聚类极值实时计算方法 |
| CN113516065A (zh) * | 2021-07-03 | 2021-10-19 | 北京中建建筑科学研究院有限公司 | 基于区块链的资料权重测算方法、装置、服务器及存储介质 |
| CN113516065B (zh) * | 2021-07-03 | 2022-08-05 | 北京中建建筑科学研究院有限公司 | 基于区块链的资料权重测算方法、装置、服务器及存储介质 |
| CN113641373A (zh) * | 2021-08-30 | 2021-11-12 | 北京京东乾石科技有限公司 | 一种镜像部署的方法、装置和存储介质 |
| CN115567547A (zh) * | 2022-08-18 | 2023-01-03 | 网易(杭州)网络有限公司 | 一种镜像分发方法、系统和设备 |
| CN116501747A (zh) * | 2023-04-24 | 2023-07-28 | 北京闪马智建科技有限公司 | 镜像文件的构建方法和装置、存储介质及电子装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109788032B (zh) | 2021-12-14 |
| CN109788032A (zh) | 2019-05-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020125389A1 (zh) | 镜像文件的获取方法、装置、计算机设备和存储介质 | |
| US11068449B2 (en) | Data migration method, apparatus, and storage medium | |
| CN111367883A (zh) | 数据同步方法、装置、设备及计算机可读存储介质 | |
| CN110597918B (zh) | 一种账户管理方法、装置及计算机可读存储介质 | |
| US11985251B2 (en) | Data synchronization method and apparatus, computer device, and readable storage medium | |
| CN112199441B (zh) | 基于大数据平台的数据同步处理方法、装置、设备及介质 | |
| CN112491659B (zh) | 一种流量回放测试方法、装置、计算机设备和存储介质 | |
| US11182403B2 (en) | Systems and methods of launching new nodes in a blockchain network | |
| US11444785B2 (en) | Establishment of trusted communication with container-based services | |
| WO2019075978A1 (zh) | 数据传输方法、装置、计算机设备和存储介质 | |
| US20200134163A1 (en) | Monitoring device components using distributed ledger | |
| CN111628886B (zh) | 私有云环境下组建区块链网络的方法、装置、计算机设备 | |
| WO2017036228A1 (zh) | 一种实现系统升级的方法及装置 | |
| WO2019100598A1 (zh) | 交易处理方法、装置、计算机设备及存储介质 | |
| WO2020151181A1 (zh) | 基于区块链的跨平台数据更新方法、装置和计算机设备 | |
| CN114371866B (zh) | 业务系统的版本重构测试方法、装置和设备 | |
| CN110597541A (zh) | 基于区块链的接口更新处理方法、装置、设备及存储介质 | |
| CN109299116B (zh) | 一种数据同步方法、装置、设备及可读存储介质 | |
| CN114629648A (zh) | 基于双栈密码的数据托管方法及装置 | |
| CN113742681B (zh) | 一种账户管理方法、装置、计算机设备和存储介质 | |
| EP4220518B1 (en) | Blockchain network-based device management method, related device, and storage medium | |
| CN118214637B (zh) | 远程运维方法和计算机可读存储介质 | |
| CN111193730A (zh) | 一种IoT可信场景构建方法及装置 | |
| WO2021012562A1 (zh) | 区块链数据清理方法、装置、计算机设备和存储介质 | |
| CN113315795B (zh) | 云主机镜像的同步方法、装置和存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19899513 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.09.2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19899513 Country of ref document: EP Kind code of ref document: A1 |