I am trying to install and deploy the chaincode as external service following the instructions here
I have created the couchdb indexes following the instructions here and package the chaincode as:
- package the META-INF directory along with the connection.json which outputs "code.tar.gz"
- package the META-INF directory along with "code.tar.gz" and "metadata.json" which outputs "cc_name.tgz"
Both of these methods resulted in error while installing the chaincode using peer lifecycle command.
I installed the chaincode without packaging the META-INF (couchd indexes) and everything works as expected. But for blockchain application I have few situations where I need to query data from couchdb and update the assets in the ledger.
What's the correct way to package the couchdb indexes when deploying the chaincode externally?