2015-11-06 92 views
0

試圖開始使用此..IBM容器和DevOps管道

我創建了一個圖像(Nodejs)並將其推送到Bluemix。在Bluemix中,我創建了一個容器並且工作正常。

然後我用jazz創建了一個項目...並使用DevOps管道(IBM Container服務)構建應用程序。我想要做的是自動構建和部署這個應用程序。

現在..我應該把什麼作爲圖像名稱?我會認爲這是我已經推動的形象,但也許不是。然後,我將它改爲「mynewapp」,但這也不起作用。

我得到的,當我使用現有的圖像錯誤是:(圖片名稱爲test920)不知道爲什麼它增加了12的標籤......

The desired image repository name will be registry.ng.bluemix.net/jytestcontainer/test920:12 
Initialization complete 
Number of images: 0 and Image limit: 5 
The number of images are less than the image limit 
Init runtime of 3m 10s 
total 12 

Starting build script 
No unit tests cases have been checked in 
Building registry.ng.bluemix.net/jytestcontainer/test920:12 
zipped tar size: 1185166 
Posting 1185166 bytes... It may take a while... 
Command failed with container cloud service 
{ 
    "code": "IC5000E", 
    "description": **"Sorry, an error occurred on our side. Please reference the problem using the provided incident ID",** 
    "incident_id": "b4b88aeb12e5a4d9", 
    "name": "DefaultMessage", 
    "rc": "500", 
    "type": "General" 
} 

當我使用一個新的形象的名字 - - 一個不存在的。我得到:

Building registry.ng.bluemix.net/jytestcontainer/**nodecontainer**:15 
zipped tar size: 1185855 
Posting 1185855 bytes... It may take a while... 
Command failed with container cloud service 
{ 
    "code": "IC5000E", 
    "description": "Sorry, an error occurred on our side. Please reference the problem using the provided incident ID", 
    "incident_id": "b520b2ea4a115bbd", 
    "name": "DefaultMessage", 
    "rc": "500", 
    "type": "General" 
} 
"ice build --pull --tag registry.ng.bluemix.net/jytestcontainer/nodecontainer:15 /home/jenkins/workspace/3f72adfe-59e3-b729-ef87-6316c8d67561/806f147e-9244-4b69-849e-abce3b0def1b" did not return successfully. 

所以,問題是......難道這個過程中建立一個新的形象第一次?如果是這樣的話。爲什麼它不適用於不存在的圖像名稱?

如果它需要一個現有的圖像..爲什麼它使用一個不存在的標籤?

任何指針讚賞....

乾杯

+0

注:經過編譯腳本... 大廈registry.ng.bluemix.net/jytestcontainer/test920:12 的「12」是內部版本 - 不記名。 – James

回答

1

這些sample scripts爲我工作得很好。您可以在此公開sample中查看使用情況。

+0

謝謝何塞..將檢查出並更新此線程.... – James