Skip to content

About

IPTB Plugins for BTFS

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

102 Commits

Folders and files

Repository files navigation

IPTB Plugins

This project contains the IPFS plugins for IPTB. Due to the way IPFS manages dependencies, these plugins cannot be easily loaded into a generic build of IPTB, and must be use with the IPTB build in this project.

Example

$ iptb auto -type localbtfs -count 5
<output removed>

$ iptb start

$ iptb shell 0
$ echo $BTFS_PATH
/home/iptb/testbed/testbeds/default/0

$ echo 'pizza!' | btfs add -q
QmZio6HUGdQfPq1tMNGUyDvcGnBERwyBdic75bXXU5txcj

$ exit

$ iptb connect 0 4

$ iptb shell 4
$ btfs cat QmZio6HUGdQfPq1tMNGUyDvcGnBERwyBdic75bXXU5txcj
pizza!

Usage

NAME:
   iptb - iptb is a tool for managing test clusters of libp2p nodes

USAGE:
   iptb [global options] command [command options] [arguments...]

VERSION:
   2.0.0

COMMANDS:
     auto     create default testbed and initialize
     testbed  manage testbeds
     help, h  Shows a list of commands or help for one command
   ATTRIBUTES:
     attr  get, set, list attributes
   CORE:
     init     initialize specified nodes (or all)
     start    start specified nodes (or all)
     stop     stop specified nodes (or all)
     restart  restart specified nodes (or all)
     run      run command on specified nodes (or all)
     connect  connect sets of nodes together (or all)
     shell    starts a shell within the context of node
   METRICS:
     logs    show logs from specified nodes (or all)
     events  stream events from specified nodes (or all)
     metric  get metric from node

GLOBAL OPTIONS:
   --testbed value  Name of testbed to use under IPTB_ROOT (default: "default") [$IPTB_TESTBED]
   --quiet          Suppresses extra output from iptb
   --help, -h       show help
   --version, -v    print the version

Install

$ git clone git@github.com:TRON-US/iptb-btfs-plugins.git
$ cd iptb-btfs-plugins
$ make install 

Run iptb with btfs nodes

$ export NODES=<number of btfs nodes desired, default is 5>
$ make start

Run iptb with btfs nodes reporting to dev services

$ export NODES=<number of btfs nodes desired, default is 5>
$ make start_dev

Configure for local networking

$ iptb run -- btfs config --json Addresses.Announce  []
$ iptb stop
$ iptb start

License

MIT

About

IPTB Plugins for BTFS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址