我想通過API將SimpleSample java鏈代碼示例部署到IBM Bluemix區塊鏈。當我部署時,我可以通過chaincode ID獲得成功消息。但在網絡頁面中,我看不到chaincode ID。當我看到日誌時,我可以得到以下錯誤。IBM Bluemix中的Java超鏈接chaincode部署錯誤(Dockerfile不能爲空)
[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
我使用以下JSON輸入在Bluemix Blockchain API中部署java鏈式代碼。
{"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}
對於測試,我創建了新的存儲庫,並從https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample複製了SimpleSample示例。
我只面向Java鏈代碼而不面向GO Lang文件。 我不確定爲什麼IBM Bluemix Blockchain爲Dockerfile拋出錯誤。 請任何人都幫我在IBM Bluemix Blockchain中部署Java Chaincode。
(我也試過在庫的根文件夾中創建Dockerfile在hyperledger fabric java chaincode error提及。不過還是我收到同樣的錯誤)
您使用的是fabric 0.6還是1.0? –
我正在使用fabric 1.0 – Arun