将 Hyperledger Composer 区块链业务网络部署到 Hyperledger Fabric(多个组织)
Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations)
我实现了 hyperledger composer tutorial and created a simple business network definition. Then I deployed it through composer and implemented it's rest APIs through composer-rest-server. Now I want to add one more peer to it on a different machine (PC) which can access the Blockchain I previously created. I followed this Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations),但在本教程中,网络是在同一台机器上使用 docker 容器配置的,具有两个组织的结构网络。
我的问题:
1. 多个组织使用 docker 个容器(在同一台机器上)和使用多台机器(PC)有什么区别?
2. 如何使用 Hyplerledger Composer 在多台机器 (PC) 上实现?
提前致谢!
正如在 Hyperledger Rocket Chat 上的回答:
您参考的教程(一台 PC 上的多组织)用于说明多组织的 Composer 方面 - 多对等配置。没有必要使用 Docker 容器来构建 Fabric,但它更容易,而且大多数人选择那样做。
Composer 使用多机设置很容易 - 您只需创建一个不同的 connection.json 文件到 'point' 到不同的地址!真正的问题是如何实现多组织 Hyperledger Fabric。
Docker Compose 是用于 Development Fabric 和教程的工具,它提供组件容器之间的网络,但 Docker Compose 仅适用于单台机器。要使用多台机器,Kubernetes 或 Docker Swarm 是更好的选择(或云托管),当然生产需要 Docker Compose 以外的东西。
然而,有几个教程可用于学习或 PoC - 我没有尝试过,但社区中的其他人有:
https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f
我实现了 hyperledger composer tutorial and created a simple business network definition. Then I deployed it through composer and implemented it's rest APIs through composer-rest-server. Now I want to add one more peer to it on a different machine (PC) which can access the Blockchain I previously created. I followed this Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations),但在本教程中,网络是在同一台机器上使用 docker 容器配置的,具有两个组织的结构网络。
我的问题:
1. 多个组织使用 docker 个容器(在同一台机器上)和使用多台机器(PC)有什么区别?
2. 如何使用 Hyplerledger Composer 在多台机器 (PC) 上实现?
提前致谢!
正如在 Hyperledger Rocket Chat 上的回答:
您参考的教程(一台 PC 上的多组织)用于说明多组织的 Composer 方面 - 多对等配置。没有必要使用 Docker 容器来构建 Fabric,但它更容易,而且大多数人选择那样做。
Composer 使用多机设置很容易 - 您只需创建一个不同的 connection.json 文件到 'point' 到不同的地址!真正的问题是如何实现多组织 Hyperledger Fabric。
Docker Compose 是用于 Development Fabric 和教程的工具,它提供组件容器之间的网络,但 Docker Compose 仅适用于单台机器。要使用多台机器,Kubernetes 或 Docker Swarm 是更好的选择(或云托管),当然生产需要 Docker Compose 以外的东西。 然而,有几个教程可用于学习或 PoC - 我没有尝试过,但社区中的其他人有: https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f