How to use a chaincode that's not on github?

前端 未结 2 974
臣服心动
臣服心动 2021-01-14 12:59

I have developed a chaincode using this and now that I know that it works I want to test it in a network with multiple nodes.

Where should I put my chaincode so that

2条回答
  •  臣服心动
    2021-01-14 13:44

    Usually, I put my own chaincode on github. Then:

    $ docker run -i -t hyperledger/fabric-peer /bin/bash
    
    # git clone https://github.com/xxx/myOwnChaincode.git; exit
    
    $ docker commit -m 'mm' -a 'aa'  containerId xxx/fabric-peer
    

    Finally, the docker image "xxx/fabric-peer" contains self-programmed chaincodes. For all these steps, I write a shell script and it works so fine for me.

提交回复
热议问题