Configurations and Code derived from https://github.com/hyperledger/fabric-samples examples
- Clean key store: init.sh
- Generating crypto resources and orderer, channel and anchor peer genesis blocks: generate.sh
- Start network: start.sh
- Stop network: stop.sh
- Purge network: teardown.sh
Installation and Instantiation via hyperledger fabric tools:
customer
producer
Examples:
peer chaincode install -n simulationcontract -v 1 -p /opt/gopath/src/github.com/contract -l node --peerAddresses peer1.customer.com:7051
peer chaincode instantiate -n simulationcontract -v 4 -l node -c '{"Args":["org.prototype.simulationcontract:instantiate"]}' -C mainchannel -P "OR ('CustomerMSP.member', 'ProducerMSP.member')"
Configs:
RUN Monitoring:
cd network/monitoring/docker
docker-compose up -d
Print logs from all containers with logspout:
cd network/monitoring/docker
- Execute monitordocker.sh
Configurations only tested on windows OS