【发布时间】:2016-09-08 03:00:52
【问题描述】:
我很难在 Bluemix 上部署这个标准电子商务项目: https://github.com/zallaricardo/ecommerce-devops
我选择使用 git 存储库并通过 Bluemix 管道服务进行自动部署。在成功构建并修复了许多错误配置之后,根本挑战似乎是为项目编写正确版本的 manifest.yml 文件。
没有manifest.yml文件,日志显示如下错误:
Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
Updating app loja-virtual-devops in org pfc-devops / space Dev as [email account]...
OK
Uploading loja-virtual-devops...
Uploading app files from: /home/pipeline/d38f0184-33da-44da-ba16-4671b491988a
Uploading 384.1M, 1679 files
228.5M uploaded...
Done uploading
OK
Stopping app loja-virtual-devops in org pfc-devops / space Dev as [email account]...
OK
Starting app loja-virtual-devops in org pfc-devops / space Dev as[email account]...
-----> Downloaded app package (452M)
-----> Downloaded app buildpack cache (4.0K)
Staging failed: An application could not be detected by any available buildpack
FAILED
NoAppDetectedError
TIP: Buildpacks are detected when the "cf push" is executed from within the directory that contains the app source code.
Use 'cf buildpacks' to see a list of supported buildpacks.
Use 'cf logs loja-virtual-devops --recent' for more in depth log information.
并且对于我相信的清单版本* - 我是这个清单的新手* - 没问题且足够,日志显示:
Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
FAILED
Error reading manifest file:
yaml: unmarshal errors:
line 2: cannot unmarshal !!seq into map[interface {}]interface {}
manifest.yml文件目前写法如下:
---
- name: loja-virtual-devops
memory: 512M
buildpack: https://github.com/cloudfoundry/java-buildpack
domain: mybluemix.net
对于如何修复此应用程序的清单或通过 Bluemix 成功部署项目的其他方式的任何提示,我将非常感激。
【问题讨论】:
标签: deployment e-commerce ibm-cloud devops