GithubHelp home page GithubHelp logo

simbausa / fabric-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhayujie/fabric-tools

0.0 2.0 0.0 27 KB

Some scripts for configuring and deploying the fabric network

JavaScript 54.52% Shell 45.48%

fabric-tools's Introduction

修改组织和通道名称

set_config.sh

执行脚本一键设置组织名称和通道名称:

./set_config.sh <orgName> <channelName>

动态增加或删除组织

new_org.sh

1.动态增加组织

./new_org.sh --add <domain> --number <num>
  • domain: 新增组织的域名,域名的第一部分为组织名
  • num: 新增组织中初始节点数量

2.删除已有组织

./new_org.sh --del <orgName>
  • orgName: 组织名称

add_org.js

调用SDK实现增加和删除组织的功能

多机部署新组织并加入网络

第一步

将deploy目录拷贝至新加入的机器,在目录下执行:

sudo ./deploy.sh --domain <domain>  --order <ordererIP>

(domain参数:新加组织的域名, order参数:orderer节点所在的ip地址)

e.g.     sudo ./deploy.sh --domain airchain.example.com --order 192.168.1.51

第二步

将新机器的deploy/artifacts目录下生成的新组织证书目录 (e.g. airchain.example.com) 拷贝到应用程序所在服务器的airtrip/new-org目录下,并在new-org目录下执行:

sudo ./add_org.sh - -org <orgName> --ip <IP>

(org参数:新加组织的名称,ip参数:新组织所在机器的ip地址)

e.g.     sudo ./add_org.sh --org airchain --ip 192.168.1.52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.