External chaincode build - package couchdb indexes #fabric #couchdb


neeroz.kumar29@...
 

I am building and deploying the chaincode externally on hyperledger fabric v2.3.2 and using couchdb as the state DB. I would appreciate if anyone could tell me how to package the couch DB indexes?

CouchDB Index

I have tried few ways:
  • package the META-INF directory along with the connection.json which outputs "code.tar.gz" ---> this resulted in error during chaincode installtion (invalid file type)
  • package the META-INF directory along with "code.tar.gz" and "metadata.json" which outputs "cc_name.tgz" ----> this doesn't creates any indexes in couchDB or it gives the same error as above


neeroz.kumar29@...
 

I figure out the issue with this. If anyone encounter the same problem then this might help.
Make sure that you're copying the META-INF folder in the external build and release scripts. You can refer to the document here