Deploy Chaincode from an External Service
You can run external chaincode, or chaincode as a service, on Oracle Blockchain Platform.
You can run chaincode as a service that is managed externally instead of being built and launched on a peer node. This functionality decouples creating the chaincode from deploying it to the Hyperledger Fabric network. Instead, the chaincode can be managed by an administrator independently of the peer node.
- Create a
connection.jsonfile with the address information of the external host, and then compress the file in.zipformat. The following text shows a sampleconnection.jsonfile.
Use the public IP address or host name and the public port for the address when you specify the remote host or VM where the chaincode is managed.{ "address": "example.com:9999", "dial_timeout": "10s", "tls_required": false } - When you deploy chaincode, select External for the Chaincode Type. For Chaincode Source, upload the
.zipfile that you created in the previous step.