CN114124938A - Method, device, equipment and medium for automatically deploying IPFS (Internet protocol File System) network - Google Patents

Method, device, equipment and medium for automatically deploying IPFS (Internet protocol File System) network Download PDF

Info

Publication number
CN114124938A
CN114124938A CN202111404922.5A CN202111404922A CN114124938A CN 114124938 A CN114124938 A CN 114124938A CN 202111404922 A CN202111404922 A CN 202111404922A CN 114124938 A CN114124938 A CN 114124938A
Authority
CN
China
Prior art keywords
ipfs
file
packaging
node
preset
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.)
Granted
Application number
CN202111404922.5A
Other languages
Chinese (zh)
Other versions
CN114124938B (en
Inventor
赵子墨
黄浩
李倩
李照川
孙永超
郭亚琨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Original Assignee
Chaozhou Zhuoshu Big Data Industry Development 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 Chaozhou Zhuoshu Big Data Industry Development Co Ltd filed Critical Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Priority to CN202111404922.5A priority Critical patent/CN114124938B/en
Publication of CN114124938A publication Critical patent/CN114124938A/en
Application granted granted Critical
Publication of CN114124938B publication Critical patent/CN114124938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification discloses a method for automatically deploying an IPFS network, which comprises the following steps: packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package; determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes; sending a preset packaging file to each equipment node based on an automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain an IPFS installation file; connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network; and deploying each equipment node according to the execution command of each node to obtain the deployed IPFS network.

Description

Method, device, equipment and medium for automatically deploying IPFS (Internet protocol File System) network
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for automatically deploying an IPFS network.
Background
The interplanetary File System (IPFS) is a network transmission protocol for creating persistent and distributed storage and shared files. It is a content addressable peer-to-peer hypermedia distribution protocol. With the development of IPFS driven by the rise of block chains, more and more projects begin to use IPFS, and the purposes are roughly divided into two categories: firstly, a block chain consensus mechanism is used for carrying out shared storage, identity authentication and other works; and secondly, building a distributed storage network by using the characteristics of the IPFS. Because of the requirement of each project on the IPFS network, the rapid construction of the IPFS network is very important.
At present, a lot of Linux distribution versions are distributed on the market, and when the IPFS is manually built, the configuration file needs to be manually modified, the key is generated, and the key is connected with the front-end development framework node. The traditional manual construction process is too complicated and is easy to cause errors.
Therefore, a method for rapidly building and deploying an IPFS network is needed.
Disclosure of Invention
One or more embodiments of the present specification provide a method, an apparatus, a device, and a medium for automatically deploying an IPFS network, which are used to solve the following technical problems: how to provide a method for rapidly building and deploying an IPFS network.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present specification provide a method for automatically deploying an IPFS network, the method comprising:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
Optionally, in one or more embodiments of the present specification, before packaging the IPFS installation file into the preset software package based on a pre-installed packaging tool, the method further includes:
installing the packaging tool and the development environment into a Linux system to obtain the Linux system meeting the requirements; the Linux system meeting the requirements is a Linux system provided with all software packages and all language development environments;
in the Linux system meeting the requirements, packaging an IPFS program package and a second configuration file into the IPFS installation file; wherein the second configuration file comprises: the master node of the IPFS network, the key of each node of the IPFS and the storage sharing path.
Optionally, in one or more embodiments of the present specification, in the Linux system that meets the requirement, packaging an IPFS package and a second configuration file into the IPFS installation file specifically includes:
creating an output folder in the maximally installed Linux system according to a preset Linux command;
copying the IPFS package and a second configuration file to the output folder;
and packaging the output file according to the packaging tool to obtain an IPFS installation file.
Optionally, in one or more embodiments of the present specification, the determining, according to a preset installation step of a specified device, an automatic deployment program including a first configuration file specifically includes:
acquiring a Linux system version of the designated equipment, and determining an installation file directory of the IPFS network and a control flow of each equipment node in the designated equipment according to the Linux system version;
determining a preset installation step of the specified equipment according to the installation file directory of the IPFS network and the control flow;
determining a first configuration file according to the preset installation step of the specified equipment;
and determining the automatic deployment program according to a preset grammar and the first configuration file.
Optionally, in one or more embodiments of the present specification, the connecting the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network specifically includes:
acquiring a main node of the IPFS network according to the second configuration file in the IPFS installation file, and determining an equipment node corresponding to the main node of the IPFS network;
and sequentially connecting the equipment node corresponding to the main node of the IPFS network with each equipment node according to the connection information of the IPFS network node and the key so as to obtain an initial IPFS network.
Optionally, in one or more embodiments of the present specification, after the performing the deployment processing on the device nodes according to the execution command of each node and obtaining the deployed IPFS network, the method further includes:
acquiring an operation log of each equipment node in the deployed IPFS network, and storing the operation log into a preset file directory;
and acquiring the deployment state of each equipment node according to the preset file directory.
Optionally, in one or more embodiments of the present specification, the preset packaging software is AppImage, and the pre-installed packaging tools are linux, deployqt and patchelf.
One or more embodiments of the present specification provide an apparatus for automatically deploying an IPFS network, the apparatus comprising:
the packaging unit is used for packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
the determining unit is used for determining an automatic deployment program containing a first configuration file according to the preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
a sending unit, configured to send the preset packed file to each device node based on the automatic deployment program, and start the preset packed file based on the automatic deployment program to obtain the IPFS installation file;
the connection unit is used for connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and the deployment unit is used for deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
One or more embodiments of the present specification provide an apparatus for automatically deploying an IPFS network, the apparatus comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the IPFS installation files are packaged into the preset packaging software to obtain the software file package, so that the equipment can complete the configuration of the IPFS network without reinstalling the operation environment and only by the software file package, the process of quick installation is realized, and the experience of a user is improved. In addition, automatic deployment of the IPFS network is realized through an automatic deployment program, errors which are easy to occur in the traditional manual configuration process are avoided, and the development process of technicians on the IPFS network installation program is saved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort. In the drawings:
fig. 1 is a flowchart illustrating a method for automatically deploying an IPFS network according to an embodiment of the present disclosure;
fig. 2 is a process diagram of automatically deploying an IPFS network in an application scenario according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an internal structure of an automated IPFS network according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an internal structure of an automated IPFS network according to an embodiment of the present disclosure;
fig. 5 is a non-volatile storage medium provided in an embodiment of the present specification.
Detailed Description
The embodiment of the specification provides a method, a device, equipment and a medium for automatically deploying an IPFS network.
The development of an interplanetary file system is driven by the rise of a block chain, more and more projects begin to use IPFS, and the purposes are roughly divided into two categories. One is the work of making some shared storage and identity authentication by using a consensus machine of a block chain, and the other is the work of building a distributed storage network by using the characteristics of the IPFS. Accordingly, installation of IPFS networks is also becoming more common.
At present, Linux circulating on the market finds many versions, and if an IPFS network needs to be established, the problem of system compatibility inevitably occurs, and manual establishment of the IPFS also needs manual configuration of files, generation of keys and connection of network nodes, so that the process is very complicated and program errors are easy to occur.
In order to solve the above technical problem, an embodiment of the present specification provides a method for automatically deploying an IPFS network, and by packaging an IPFS installation file in a linux system that meets requirements, deployment of the IPFS does not require installation of an operating environment in advance, so that real plug and play is achieved. The IPFS installation files are packaged into preset packaging software to obtain the software file package, so that the writing of the IPFS by the equipment can be completed only by deleting the software file package, and the experience degree of a user is improved. Through the automatic deployment program, automatic deployment is realized, and errors which easily occur in the traditional manual configuration process are avoided.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without any creative effort shall fall within the protection scope of the present specification.
As shown in fig. 1, an embodiment of the present specification provides a flowchart illustrating a method for automatically deploying an IPFS network.
In one or more embodiments of the present description, the execution subject is a server or each execution unit that needs to deploy an IPFS network. As can be seen from fig. 1, the method comprises the following steps:
s101: and packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package.
At present, when the IPFS network is deployed in different Linux systems, a corresponding language development environment needs to be installed to obtain corresponding data-dependent compatibility. However, the process makes the deployment process of the IPFS network too complicated, and the system compatibility problem is not easy to solve. Therefore, in one or more embodiments of the present specification, the packaging tool and the development environment may be installed in the Linux system in advance, and a Linux system that meets requirements for installing all software packages and all language development environments is obtained. And then packaging the IPFS program package and the second configuration file into an IPFS installation file package from the Linux system meeting the requirements. Wherein, the packaging process of the IPFS comprises the following steps: inputting a preset command in a command line of a Linux system meeting requirements, and creating a folder, for example: and based on the mkdir output command, creating an output folder, copying the IPFS program package and the second configuration file into the output folder, and packaging based on a command of a preset packaging tool to obtain the IPFS installation file.
As shown in the process diagram of fig. 2, after obtaining the IPFS installation file, the IPFS needs to be packaged in the preset packaging software to obtain the software file package. In one or more embodiments of the present specification, the packaging software is preset as AppImage, and the pre-installed packaging tools are linux deployqt and patchelf. Among them, it should be noted that: the AppImage is a software packaging mode under Linux, and for a developer, the developer uses the AppImage to package and package own software, so that the developer can directly run on a mainstream release, and a version does not need to be compiled for each mainstream Linux release with serious fragmentation.
The AppImage encapsulates the running environment, the dependency library and the like required by the application program into a package, thereby solving the complex dependency problem and compatibility problem in Linux systems of different versions. In addition, the packaging process for the Appimage is also simple, and the binary program can be directly converted into the Appimage application program, such as the binary file contained in the tar.gz, deb, rpm package. Your online hosted persistent integration service version application, application built by persistent integration tools, and the like can be packaged as an AppImage. The method also supports the application program based on the cross-platform C + + application and the UI development library, and the desktop application program which uses JavaScript, HTML and CSS to construct a cross-platform desktop application program, and packages the cross-platform desktop application program into AppImage, and even can package the whole software catalog into AppImage together.
In the following steps of the embodiment of the present specification, the preset packaging software is described as AppImage, and the packaging tool is described as linux deployqt.
S102: determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of each node.
In one or more embodiments of the present description, determining an automatic deployment program including a first configuration file according to a preset installation step of a specified device specifically includes the following steps: firstly, the Linux system version of the designated device needs to be obtained, so that the installation file directory of the IPFS and the control flow of each device node are determined according to the version of the Linux system. For example, control multiple computers and execute commands of uploading, downloading, decompressing, running and the like. And then obtaining the preset installation step of the IPFS network in the appointed equipment according to the installation file directory of the IPFS and the control flow of each equipment node. Determining according to preset installation steps comprises: the first configuration file comprises connection information of the IPFS network nodes, execution commands of each node and the like. And acquiring the automatic deployment program according to the preset grammar and the first configuration file, wherein the preset grammar can be the shell grammar of the Linux system, so that the automatic deployment program can be flexibly applied.
S103: and sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file.
After the software file package AppImage file and the automatic deployment program are acquired based on steps S101-S102. As shown in fig. 2, based on the automatic deployment program, the AppImage file may be uploaded to each node device that needs to deploy the IPFS network, so as to implement batch automatic deployment of each device node. Specifically, the software file package is first uploaded to each device node through an automatic deployment program, that is, the AppImage file is uploaded to each device node. And remotely calling a starting command of the software file package AppImage file in batches based on an automatic deployment program so as to realize uniform configuration of the IPFS network of each equipment node, and setting the role, the key and the storage path of each equipment node so as to realize establishment of a distributed network.
S104: and connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network.
In one or more embodiments of the present description, connecting the device nodes according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network specifically includes the following processes: firstly, a master node of the IPFS network can be obtained based on a second configuration file of the IPFS installation file, and an equipment node corresponding to the master node is determined, so that the equipment node is used as the master node in the IPFS network. And sequentially connecting the main node in the IPFS network with other equipment according to the connection information of the IPFS network nodes in the first configuration information and the key in the second configuration file to obtain the IPFS network. Namely, the first node is started to be a bootstrap node automatically, the subsequent nodes are added into the IPFS local area network automatically, and finally all the equipment nodes, namely the IPFS nodes, form a distributed network, wherein it needs to be stated that each node can store files.
S105: and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
After the IPFS network is obtained, the automatic deployment program can realize the batch execution of commands such as uploading, downloading, decompressing, running and the like on a plurality of machines in a mode that the parameters are modified by the first configuration file, so that the deployed IPFS network is obtained. According to the application image-based packaging method and device, the packaged files are packaged in the Linux system meeting the requirements, the environment data of the packaged files are dependent, the problem that software is incompatible due to environment differences of the Linux system in a traditional mode is effectively solved, and the deployment efficiency and success rate are improved. In addition, the problem of program error and time cost waste caused by the traditional manual configuration process are solved based on the installation of the automatic deployment program.
In one or more embodiments of the present specification, the method after obtaining the deployed IPFS network further includes: the method comprises the steps of obtaining an operation log of each equipment node in the IPFS network after deployment, and storing the operation log into a preset file directory, so that the deployment state of each equipment node can be obtained based on the preset file directory, and the monitoring of the deployment state of the IPFS network in each equipment node is realized.
In one or more embodiments of the present disclosure, as shown in fig. 3, a schematic internal structure diagram of an apparatus for automatically deploying an IPFS network is provided.
As shown in fig. 3, an apparatus for automatically deploying an IPFS network includes:
a packaging unit 301, configured to package the IPFS installation file into preset packaging software based on a pre-installed packaging tool, to obtain a software file package;
a determining unit 302, configured to determine, according to a preset installation step of a specified device, an automatic deployment program including a first configuration file; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
a sending unit 303, configured to send the preset packed file to each device node based on the automatic deployment program, and start the preset packed file based on the automatic deployment program to obtain the IPFS installation file;
a connection unit 304, configured to connect the device nodes according to the connection information of the IPFS network node and the IPFS installation file, to obtain an initial IPFS network;
the deployment unit 305 is configured to perform deployment processing on each device node according to the execution command of each node, so as to obtain a deployed IPFS network.
In one or more embodiments of the present description, the apparatus further comprises: a mounting unit; an IPFS packing unit;
the installation unit is used for installing the packaging tool and the development environment into a Linux system to obtain the Linux system meeting the requirements; the Linux system meeting the requirements is a Linux system provided with all software packages and all language development environments;
the IPFS packaging unit is used for packaging an IPFS program package and a second configuration file into the IPFS installation file in the Linux system meeting the requirements; wherein the second configuration file comprises: the master node of the IPFS network, the key of each node of the IPFS and the storage sharing path.
In one or more embodiments of the present specification, the IPFS packing unit specifically includes: a creating unit; a copying unit; an output file packing unit;
the creating unit is used for creating an output folder in the Linux system meeting the requirements according to a preset Linux command;
the copying unit is used for copying the IPFS program package and a second configuration file to the output folder;
and the output file packaging unit is used for packaging the output files according to the packaging tool to obtain an IPFS installation file.
In one or more embodiments of the present specification, the determining unit specifically includes: a first acquisition unit; a step determination unit; a file determining unit; a program determining unit;
the first obtaining unit is used for obtaining a Linux system version of the designated equipment, and determining an installation file directory of the IPFS network and a control flow of each equipment node in the designated equipment according to the Linux system version;
the step determining unit is used for determining the preset installation step of the specified equipment according to the installation file directory of the IPFS network and the control flow;
the file determining unit is used for determining a first configuration file according to the preset installation step of the specified equipment;
the program determining unit is used for determining the automatic deployment program according to preset grammar and the first configuration file.
In one or more embodiments of the present disclosure, the connection unit specifically includes: a second acquisition unit and a node connection unit;
the second obtaining unit is configured to obtain a master node of the IPFS network according to the second configuration file in the IPFS installation file, and determine an equipment node corresponding to the master node of the IPFS network;
and the node connection unit is used for sequentially connecting the equipment node corresponding to the main node of the IPFS network with each equipment node according to the connection information of the IPFS network node and the key so as to obtain an initial IPFS network.
In one or more embodiments of the present description, the apparatus further comprises: a storage unit and a third acquisition unit;
the storage unit is used for acquiring the running logs of each equipment node in the deployed IPFS network and storing the running logs into a preset file directory;
the third obtaining unit is configured to obtain the deployment state of each device node according to the preset file directory.
As shown in fig. 4, in one or more embodiments of the present specification, a schematic internal structure diagram of an apparatus for automatically deploying an IPFS network is provided.
As can be seen from fig. 4, an apparatus for automatically deploying an IPFS network includes:
at least one processor 401; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor 401; wherein,
the memory 402 stores instructions executable by the at least one processor 401 to enable the at least one processor 401 to:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
As shown in fig. 5, an internal structural diagram of a nonvolatile storage medium is provided in the embodiments of the present specification.
As shown in fig. 5, a non-volatile storage medium contains computer-executable instructions 501, where the executable instructions 501 include:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the device, and the nonvolatile computer storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A method for automatically deploying an IPFS network, the method comprising:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
2. The method of claim 1, wherein the packaging of the IPFS installation files to the pre-defined software package is performed based on a pre-installed packaging tool, and the method further comprises:
installing the packaging tool and the development environment into a Linux system to obtain the Linux system meeting the requirements; the Linux system meeting the requirements is a Linux system provided with all software packages and all language development environments;
in the Linux system meeting the requirements, packaging an IPFS program package and a second configuration file into the IPFS installation file; wherein the second configuration file comprises: the master node of the IPFS network, the key of each node of the IPFS and the storage sharing path.
3. The method according to claim 2, wherein packaging an IPFS package and a second configuration file into the IPFS installation file in the Linux system that meets the requirements specifically comprises:
creating an output folder in the Linux system meeting the requirements according to a preset Linux command;
copying the IPFS package and a second configuration file to the output folder;
and packaging the output file according to the packaging tool to obtain an IPFS installation file.
4. The method according to claim 1, wherein the determining an automatic deployment program including a first configuration file according to the preset installation step of the specified device specifically includes:
acquiring a Linux system version of the designated equipment, and determining an installation file directory of the IPFS network and a control flow of each equipment node in the designated equipment according to the Linux system version;
determining a preset installation step of the specified equipment according to the installation file directory of the IPFS network and the control flow;
determining a first configuration file according to the preset installation step of the specified equipment;
and determining the automatic deployment program according to a preset grammar and the first configuration file.
5. The method according to claim 2, wherein the obtaining an initial IPFS network by connecting the device nodes according to the connection information of the IPFS network nodes and the IPFS installation file specifically comprises:
acquiring a main node of the IPFS network according to the second configuration file in the IPFS installation file, and determining an equipment node corresponding to the main node of the IPFS network;
and sequentially connecting the equipment node corresponding to the main node of the IPFS network with each equipment node according to the connection information of the IPFS network node and the key so as to obtain an initial IPFS network.
6. The method according to claim 1, wherein the method for automatically deploying an IPFS network deploys the device nodes according to the execution command of each node, and after obtaining the deployed IPFS network, the method further comprises:
acquiring an operation log of each equipment node in the deployed IPFS network, and storing the operation log into a preset file directory;
and acquiring the deployment state of each equipment node according to the preset file directory.
7. The method according to claim 1, wherein the predetermined packaging software is AppImage, and the pre-installed packaging tools are linux deployqt and patchelf.
8. An apparatus for automatically deploying an IPFS network, the apparatus comprising:
the packaging unit is used for packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
the determining unit is used for determining an automatic deployment program containing a first configuration file according to the preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
a sending unit, configured to send the preset packed file to each device node based on the automatic deployment program, and start the preset packed file based on the automatic deployment program to obtain the IPFS installation file;
the connection unit is used for connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and the deployment unit is used for deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
9. An apparatus for automatically deploying an IPFS network, the apparatus comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
10. A non-volatile storage medium containing computer-executable instructions, the executable instructions comprising:
packaging the IPFS installation file into preset packaging software based on a pre-installed packaging tool to obtain a software file package;
determining an automatic deployment program containing a first configuration file according to a preset installation step of the specified equipment; wherein the first configuration file comprises: connection information of IPFS network nodes and execution commands of all the nodes;
sending the preset packaging file to each equipment node based on the automatic deployment program, and starting the preset packaging file based on the automatic deployment program to obtain the IPFS installation file;
connecting each equipment node according to the connection information of the IPFS network node and the IPFS installation file to obtain an initial IPFS network;
and deploying the equipment nodes according to the execution command of each node to obtain the deployed IPFS network.
CN202111404922.5A 2021-11-24 2021-11-24 Method, device, equipment and medium for automatically deploying IPFS network Active CN114124938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111404922.5A CN114124938B (en) 2021-11-24 2021-11-24 Method, device, equipment and medium for automatically deploying IPFS network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111404922.5A CN114124938B (en) 2021-11-24 2021-11-24 Method, device, equipment and medium for automatically deploying IPFS network

Publications (2)

Publication Number Publication Date
CN114124938A true CN114124938A (en) 2022-03-01
CN114124938B CN114124938B (en) 2024-10-01

Family

ID=80372094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111404922.5A Active CN114124938B (en) 2021-11-24 2021-11-24 Method, device, equipment and medium for automatically deploying IPFS network

Country Status (1)

Country Link
CN (1) CN114124938B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412768A (en) * 2013-07-19 2013-11-27 蓝盾信息安全技术股份有限公司 Zookeeper cluster automatic-deployment method based on script program
CN106453565A (en) * 2016-10-17 2017-02-22 郑州云海信息技术有限公司 Distributed storage area network deployment method and device
CN106610853A (en) * 2015-10-26 2017-05-03 阿里巴巴集团控股有限公司 Application deployment method and device
WO2020034194A1 (en) * 2018-08-17 2020-02-20 西门子股份公司 Method, device, and system for processing distributed data, and machine readable medium
CN110933189A (en) * 2020-02-10 2020-03-27 北京启迪区块链科技发展有限公司 Fabric-based block chain network deployment method, device, equipment and medium
US20210124760A1 (en) * 2019-10-25 2021-04-29 Accenture Global Solutions Limited Automatic creation of blockchain network infrastructures

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412768A (en) * 2013-07-19 2013-11-27 蓝盾信息安全技术股份有限公司 Zookeeper cluster automatic-deployment method based on script program
CN106610853A (en) * 2015-10-26 2017-05-03 阿里巴巴集团控股有限公司 Application deployment method and device
WO2017071494A1 (en) * 2015-10-26 2017-05-04 阿里巴巴集团控股有限公司 Application deployment method and apparatus
CN106453565A (en) * 2016-10-17 2017-02-22 郑州云海信息技术有限公司 Distributed storage area network deployment method and device
WO2020034194A1 (en) * 2018-08-17 2020-02-20 西门子股份公司 Method, device, and system for processing distributed data, and machine readable medium
US20210124760A1 (en) * 2019-10-25 2021-04-29 Accenture Global Solutions Limited Automatic creation of blockchain network infrastructures
CN110933189A (en) * 2020-02-10 2020-03-27 北京启迪区块链科技发展有限公司 Fabric-based block chain network deployment method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ABOUTMN: "什么是AppImage", Retrieved from the Internet <URL:https://blog.csdn.net/aboutmn/article/details/87254930> *
殷龙;王宏伟;: "基于IPFS的分布式数据共享系统的研究", 物联网技术, no. 06, 20 June 2016 (2016-06-20) *

Also Published As

Publication number Publication date
CN114124938B (en) 2024-10-01

Similar Documents

Publication Publication Date Title
CN108897547B (en) Software automation deployment method and device
CN110727446A (en) Automatic deployment method, device, equipment and medium
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
CN106909362B (en) Method and device for generating BMC (baseboard management controller) firmware and method and device for starting BMC system
CN106371881B (en) Method and system for updating program version in server
CN110389766B (en) HBase container cluster deployment method, system, equipment and computer readable storage medium
CN112148306B (en) Micro-service operation and maintenance management system and method
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN103595770A (en) Method and device for achieving file downloading through SDK
JP2023518198A (en) A method and apparatus for managing an automation program for an industrial automation platform
CN103595769A (en) Method and device for achieving file uploading through SDK
CN110968510A (en) SSD automatic online upgrading firmware test method and device and computer equipment
CN114124938A (en) Method, device, equipment and medium for automatically deploying IPFS (Internet protocol File System) network
CN112099815A (en) Continuous integration environment construction method and device
CN116126357A (en) Automatic deployment method and device for test tool, readable storage medium and electronic equipment
CN104933018A (en) File processing method and apparatus
CN109144524B (en) Version release method of subject game on education platform and electronic equipment
CN114553703B (en) Deployment method, device, equipment and storage medium of industrial equipment control strategy
CN115809084A (en) Version generation method and device, electronic equipment and storage medium
CN115599399A (en) Application program deployment method and device and storage medium
CN113626330B (en) Mixed mode mobile application debugging method and system
CN112685048B (en) Application program packaging method, electronic device and storage medium
CN115098105A (en) Container cloud performance test evaluation realization method, device, equipment and medium
CN112685051A (en) Method, device, platform and storage medium for automatically executing shell script
US11269610B1 (en) System and method for self-service configuration management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant