简体   繁体   中英

Java hyperledger chaincode deploy error in IBM Bluemix (The Dockerfile cannot be empty)

I am trying to deploy SimpleSample java chaincode example to IBM Bluemix blockchain through API. when I deploy, I can get the success message with chaincode ID. But in Network page I could not see chaincode ID. when I see logs, I can get the following error.

[dockercontroller] deployImage -> ERRO 043[0m Error building images: API error (500): Error response from daemon: The Dockerfile (Dockerfile) cannot be empty
[dockercontroller] deployImage -> ERRO 044[0m Image Output:

[dockercontroller] Start -> ERRO 045[0m start-could not recreate container API error (500): Error: image library/9bbb29a5a6794936aaae6ee299a2636e-vp0-624c3384a3b6047ef189de555743206cd22f6add42f952975e94bb68ff11ec2f1205a8ce6cbb7bbedfc369939f15b6ac5ae598180138bcd4abd0b34275bfcc71:latest not found
[chaincode] Launch -> ERRO 046[0m launchAndWaitForRegister failed Error starting container: API error (500): Error: image library/9bbb29a5a6794936aaae6ee299a2636e-vp0-624c3384a3b6047ef189de555743206cd22f6add42f952975e94bb68ff11ec2f1205a8ce6cbb7bbedfc369939f15b6ac5ae598180138bcd4abd0b34275bfcc71:latest not found

I used the following JSON input to deploy the java chaincode in Bluemix Blockchain API.

{"jsonrpc":"2.0","method":"deploy","params":{"type":4,"chaincodeID":{"path":"https://github.com/gobiarun/SimpleSample.git"},"ctorMsg":{"function":"init","args":["a","900","b","20000"]},"secureContext":"user_type1_0"},"id":1}

For testing I created new repository and copied the SimpleSample example from https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample .

I am facing this issue only for Java chaincode and not for GO Lang files. I am not sure why IBM Bluemix Blockchain throwing error for Dockerfile. Please anyone help me to deploy the Java Chaincode in IBM Bluemix Blockchain.

(Also I tried to create Dockerfile in repository root folder as mentioned in hyperledger fabric java chaincode error . But still I am getting same error)

Fabric 1.0.0-beta and all subsequent release candidates do not support Java chaincode. It isn't ready for production use and hence the release engineers have chosen to disable it until post 1.0.0 release, when the work will be completed. Please see the release notes for 1.0.0-beta.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM