将生成好的上节对农产品溯源合约进行调试,测试,本节将打包的合约代码,进行install、approve、commit,生成合约镜像与合约容器。
trace.tar.gz
上传到/root/fabric/scripts/fabric-samples/test-network
路径编写 install.sh 合约安装脚本,chmod a+x install.sh
,执行./install.sh
# install chaincode to 1export CORE_PEER_TLS_ENABLED=trueexport CORE_PEER_LOCALMSPID="Org1MSP"export CORE_PEER_TLS_ROOTCERT_FILE