本项目基于 docker swarm 实现 Fabric 网络创建, 通道创建, 合约部署等等等功能.
https://github.com/yakumioto/hlf-deploy
依赖项目
https://github.com/yakumioto/hlf-tools (将 configtxlator 工具 转为 rpc 服务)
求各位大佬们点 Star 支持呀!
已支持功能
- createChannel
- updateAnchorPeer
- joinChannel
- installChaincode
- instantiateChaincode
- upgradeChaincode
- invokeChaincode
- queryChaincode
- addOrgChannel (动态添加组织)
在实现中
- deleteOrgChannel (动态删除组织)
- changeOrgCertificate (动态修改组织证书)
前期准备工作
- docker swarm 集群 (可单节点)
- fabric all images
- nfs server client (用于共享证书等文件)
- channel-artifacts
- crypto-config
启动测试网络
请保证上方所有准备工作已经完毕!
将 nfs 目录创建在 /nfsvolume !
以 root 权限运行
# nfs 配置编写
# 编辑 /etc/exports
# 添加以下行, 并保存
# 并执行 exportfs -arv 重新加载
# 如实在不懂可 google
/nfsvolume *(ro,sync,no_root_squash)
进入 test-network 目录
./hlfn.sh up