Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After cloning Fabric, you can can test fabric binaries using a sample configuration. Using the binaries and sample configuration makes it simple and quick to iteratively make code changes, rebuild fabric, and test your changes.


Terminal prep

Add fabric /build/bin to your PATH.
Set FABRIC_CFG_PATH to fabric /sampleconfig directory, which contains sample orderer.yaml, peer.yaml, configtx.yaml, and msp for a SampleOrg.

...

   peer chaincode query -C mychannel -n marbles -c '{"Args":["readMarble","marble1"]}'


Cleanup data, chaincode containers and images

rm -r /var/hyperledger/

docker rm -f $(docker ps -aq)

docker rmi -f $(docker images -q --filter=reference='*dev*')