Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suddutt1/fabricswarm1
First Docker Swarm With 3 machines and balance transfer
https://github.com/suddutt1/fabricswarm1
Last synced: about 1 month ago
JSON representation
First Docker Swarm With 3 machines and balance transfer
- Host: GitHub
- URL: https://github.com/suddutt1/fabricswarm1
- Owner: suddutt1
- Created: 2017-11-12T10:19:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T16:39:23.000Z (about 7 years ago)
- Last Synced: 2023-03-05T03:03:17.947Z (almost 2 years ago)
- Language: Go
- Size: 15.6 MB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hyperledger Fabric Swarm with 3 nodes
First Docker Swarm With 3 machines and balance transfer
# Hit a road block
## Not able to instantiate the chain code
Here is the clue : ( Endorsed by IBM Blockchain CTO)
https://lists.hyperledger.org/pipermail/hyperledger-fabric/2017-September/001750.html
I'll keep working on this based on the hint.### The Swram consist of the following 3 nodes/hosts
1. Master node ( hostname : swarmmaster ) contains the orderer and cli
2. Node 1 ( hostname : node1) contains single peer of Bank X
3. Node 2 ( hostname : node2) contains single peer of Bank YAll the arttifacts of this repository should be pulled and same copy should be placed in all the nodes
Assuming that this reposittory is downloaded into the following directory of swarmmaster host
/home/suddutt1/networks/swarm2/, execute the following commands in sequence```sh
cd /home/suddutt1/networks/swarm2/
. setenvdocker swarm init --advertise-addr :2377
```
Run the following command in node1 and node2 host
```sh
docker swarm join --token :2377
```Run the following command in the swrammaster host
```sh
cd /home/suddutt1/networks/swarm2/
. setenvdocker stack deploy --compose-file docker-compose.yaml banknet
docker ps
docker exec -it bash
# Inside the container run the following command to join
. buildandjoinchannel.sh```