问题描述
我们在 IBM Cloud 上有一个 PHP 应用程序连接到 DB2 实例(也在 IBM Cloud 上),该应用程序已经完美运行了 2 年
We have a PHP app on IBM Cloud connected to an instance of DB2 (also on IBM Cloud) that has been working flawlessly for 2 years
直到 9 月 16 日,我们在 PHP 应用程序中使用了 buildbpack(这样它可以通过 db2_connect PHP 函数连接到 DB2.)
Up until Sept 16th, we used the buildbpack with our PHP app (so that it could connect to DB2 via the db2_connect PHP function.)
现在在 cflinuxfs3
升级之后 buildpack 不起作用,我们被迫使用
Now after the cflinuxfs3
upgrade that buildpack does not work and we are forced to use the
" "php_buildpack" 社区 buildpack 已安装在 Cloud Foundry 中".
但是,这个新的 buildpack 不支持 DB2 连接.尝试使用此 buildpack 时,我运行了一个日志,发现此错误:
however, This new buildpack does not support DB2 connections. When trying to use this buildpack I run a log I find this error :
未定义函数:db2_connect()".
我搜索了一个构建包,它既支持与 DB2 的连接,又与 IBM Cloud Foundry 上的 cflinuxfx3 兼容.
I've searched high and low for a buildpack that would both support connections to DB2 and be compatible with cflinuxfx3 on IBM Cloud Foundry.
有人知道这样的构建包吗?
Does anyone know of such a buildpack?
推荐答案
有一个公告:
IBM Cloud 上的 Swift Buildpack 现在支持 cflinuxfs3 并包含新的运行时
https://www.ibm.com/cloud/blog/announcements/the-swift-buildpack-versions-2020-and-210-are-now-available-on-ibm-cloud
There was an announcement:
Swift Buildpack on IBM Cloud Now Supports cflinuxfs3 and Includes New Runtimes
https://www.ibm.com/cloud/blog/announcements/the-swift-buildpack-versions-2020-and-210-are-now-available-on-ibm-cloud
这里是从 URL 中截取的:
Here is snipped from the URL:
现在可以在 IBM Cloud 上使用 Swift buildpack 版本 2.0.20 和 2.1.0.
The Swift buildpack versions 2.0.20 and 2.1.0 are now available on IBM Cloud.
这些构建包提供 Swift 5.0 作为默认运行时并缓存 4.2.4 版本.在您重新部署现有应用程序之前,它不会受到新 buildpack 的影响.重新部署后,现有应用程序应继续按原样"运行,无需任何额外更改.新应用程序将自动使用新的 buildpack.Swift buildpack 版本 2.1.0 仅支持 cflinuxfs3,版本 2.0.20 仅支持 cflinuxfs2.
These buildpacks provide Swift version 5.0 as the default runtime and caches version 4.2.4. An existing application will not be affected by the new buildpack until you redeploy it. After you redeploy, existing applications should continue to run "as is" without any additional changes. New applications will automatically use the new buildpack. Swift buildpack verison 2.1.0 supports cflinuxfs3 only and version 2.0.20 supports cflinuxfs2 only.
希望这会有所帮助.
这篇关于github php buildpack 支持 DB2 和 IBM Cloud php 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!