【问题标题】:Bluemix: Staging failed: Buildpack compilation step failedBluemix:暂存失败:Buildpack 编译步骤失败
【发布时间】:2015-11-18 09:50:00
【问题描述】:

从星期一开始,我们无法将 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

【问题讨论】:

    标签: php ibm-cloud


    【解决方案1】:

    您可以使用自定义 buildpack 在 bluemix 上推送 php 应用程序。
    对于新堆栈 cflinuxfs2,我建议使用“zend-server-php-buildpack-bluemix”,其中包括:

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

    用法:

    • 输入以下命令:

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

    您的应用程序是使用 Zend Server buildpack 部署的

    问候。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-07
      • 1970-01-01
      • 2021-10-07
      • 2020-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多