我目前有一个内置于php 5.4的遗留应用程序,我试图迁移到openshift。使用替代容器镜像的Openshift
然而,似乎PHP 5.4并不作为openshift 3.5中的默认容器图像。这是我的buildconfig文件的一部分。
...
source:
type: Git
git:
uri: 'https://xxx.git'
ref: master
secrets: null
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: 'php:5.5'
...
到目前为止,一切都按预期工作。但是,在sourceStrategy部分,如果我将名称更改为:“name:'php:5.4'”,则失败。
是否有任何可能的方式来获得PHP 5.4环境?
人们似乎在这个网址的PHP 5.4墨盒: https://github.com/openshift-cartridges/origin-community-cartridges/tree/master/openshift-origin-cartridge-php-5.4
我将如何将它集成到我的openshift环境?
我目前正在测试机上运行openshift容器平台3.5。
谢谢。
磁带盒适用于较旧的OpenShift V2,而不是您正在使用的V3。 –
在OpenShift V3中,捆绑S2I构建器的唯一PHP版本支持5.5,5.6和7.0。 https://github.com/sclorg/s2i-php-container –