Following the intrustction at https://hyperledger-fabric.readthedocs.io/en/latest/Setup/JAVAChaincode/, I was able to deploy a Hyperledger Java chaincode locally, that is:
- Set up a validating peer
- Write and build a Java chaincode locally, say in a directory X (which contains a
build.gradlefile) - Deploy successfully using
peer chaincode deploy -l java -p full_path_to_X -c ...
But whenever I upload the chaincode directory to Github, and try this address during deploy: peer chaincode deploy -l java -p https://github.com/user/X, I got the error:
"Erro getting chaincode package bytes. Error cloning git repository exit status 128"
It is not a problem with Git repository, for in it there is a Go chaincode, and I can deploy that Go chaincode successfully this way.
Would it be a problem with the Java container image used in Hyperledger has not had a feature to fetch a remote chaincode from Git?