- Please modify the demo/fabric-network/first-network/docker-compose-cli.yaml to deploy the service on the specified host. constraints: [node.hostname == bingsu-sw11]
- The demo respository need to be located under /home/docker/ on every host.
- Please make sure the system is clean (expecially no existing volume, no existing chaincode image ) before you start the Fabric network.
- If you modify the configtx.yaml, you need to run "demo/fabric-network/first-network/byfn.sh generate", and then commit the generated artifacts to distribute them accross all the hosts.
-
Build swarm cluster docker swarm init copy the command "docker join ...." in the returned resut to join the swarm master.
-
Clear the existing Fabric network (if exists) cd /home/docker/demo/fabric-network/first-network ./debug stop ./debug prune ./debug ls docker image rm ... # remove the existing chaincode images which looks like dev-xxxxx
-
Build the Fabric network cd /home/docker/demo/fabric-network/first-network ./debug start docker exec -it fabric_clixxxxxxxxx bash # enter into the cli container
-
cd ./scripts
-
./createFabricNetwork.sh