Bluemix:暂存失败:Buildpack编译步骤失败

时间:2015-11-18 09:50:00

标签: php ibm-cloud

由于周一我们无法将我们的Dreamfactory应用程序推送到Bluemix,它总是会失败,错误会在下面附上。用于推送应用程序的命令是:

cf push <appname> -s cflinuxfs2

输出:

-----> Downloaded app package (15M)
Cloning into '/tmp/buildpacks/cf-php-build-pack'...
Submodule 'compile-extensions' (https://github.com/cloudfoundry/compile-extensions) registered for path 'compile-extensions'
Cloning into 'compile-extensions'...
Submodule path 'compile-extensions': checked out 'a4b58d8ec6acd35a5b7b6d406e21c590b5686371'
-------> Buildpack version 4.3.0
Installing Nginx
Traceback (most recent call last):
  File "/tmp/buildpacks/cf-php-build-pack/scripts/compile.py", line 51, in <module>
    .from_build_pack('lib/additional_commands')
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/builder.py", line 189, in extensions
    process_extension(path, ctx, 'compile', process, args=[self])
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/utils.py", line 69, in process_extension
    success(getattr(extn, to_call)(*args))
  File "/tmp/buildpacks/cf-php-build-pack/lib/nginx/extension.py", line 39, in compile
    .package('NGINX')
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/builder.py", line 165, in package
    self._installer.install_binary(key)
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/cloudfoundry.py", line 197, in install_binary
    url = self._ctx['%s_DOWNLOAD_URL' % installKey]
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/utils.py", line 151, in __getitem__
    return self.format(dict.__getitem__(self, key))
  File "/tmp/buildpacks/cf-php-build-pack/lib/build_pack_utils/utils.py", line 143, in format
    newVal = val.format(**self)
KeyError: u'NGINX_16_LATEST'
Staging failed: Buildpack compilation step failed
FAILED
BuildpackCompileFailed

1 个答案:

答案 0 :(得分:2)

你可以使用自定义buildpack在bluemix上推送一个php应用程序 对于新堆栈 cflinuxfs2 我建议使用&#34; zend-server-php-buildpack-bluemix &#34;包括:

  • Zend Server 8.5企业版
  • Zend Server 8.5配置文件
  • PHP 5.6
  • Apache Web服务器

<强>用法:

  • 输入以下命令:
  

cf push your_app_name -m 512M -s cflinuxfs2 -b   https://github.com/zendtech/zend-server-php-buildpack-bluemix.git

使用Zend Server buildpack

部署您的应用程序

问候。