0

Do you have any idea how am I going to connect 2 existing organizations from different machines using the existing channel of 1 organizations. Here is what I have as of now, Org1 is running in VM1 and Org2 is running in VM2 with both have there own chaincode installed. What I am trying to do is to connect Org2 to Org1 to a channel of Org1. I don't have any idea how am I going to do it since currently the only example that I have is only using the same VM. Thank you.

Dan Anderson
  • 2,265
  • 1
  • 9
  • 20
Jeson
  • 251
  • 4
  • 14

2 Answers2

0

You can connect them through the channel. Suppose that you have already all the url exposed of each components (peer, orderer ..) and that org1 hold the channel. You simply need give to org2 the right to join the existing channel.

Here a guide: https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html

based on what you said, you should start the tutorial from the section "Generate the Org3 Crypto Material".

0

To connect organizations on different hosts, you'll need to create a Docker Swarm. Once you have all the hosts joined to docker swarm, you'll need to create an overlay network and make your containers join this overlay network.

You can start following this blog that describes a simple configuration for multiple hosts. For further reference, you can refer to this SO answer.

For deployment using Kubernetes, you can refer to this medium blog.

Mrudav Shukla
  • 708
  • 1
  • 7
  • 25