加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
2.addOrg3.sh 948 Bytes
一键复制 编辑 原始数据 按行查看 历史
XUJF 提交于 2019-12-12 23:24 . Init
#!/bin/sh
echo
echo ===========================================
echo === add Org3 to network
echo ==========================================
echo
CHANNEL_NAME="mychannel"
echo
echo "========= Creating config transaction to add org3 to network =========== "
echo
echo "Generate the Org3 Crypto Material"
cd ../first-network/org3-artifacts
../../bin/cryptogen generate --config=./org3-crypto.yaml
export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json
cp -r crypto-config/peerOrganizations/org3.example.com/ ../crypto-config/peerOrganizations/
cd ../../fcc
echo "add org3 join channel ...."
export IMAGE_TAG=1.4.3 && export COMPOSE_PROJECT_NAME=net && docker-compose -f ../first-network/docker-compose-org3.yaml up -d
docker exec cli /opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/step1org3.sh
docker exec cli /opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/step2org3.sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化