是否可以在 OpenShift Cartridge 的 Source-Url 中使用特定分支或提交?
Can a specific branch or commit be used in the Source-Url for an OpenShift Cartridge?
我正在使用 this iojs OpenShift cartridge,现在已经更新到 iojs 3.0,但我需要一个 iojs 2.x 版本来测试一些功能。
查看墨盒的 manifest.yml
(here), I see the Source-Url
set to the git repo (https://github.com/connyay/openshift-iojs.git)。我在想,如果我将其更改为使用相同 Github 存储库的旧版本,那么我会得到旧墨盒。
Source-Url
属性也支持指定分支或提交哈希(ala https://github.com/connyay/openshift-iojs.git#v2.5.0 etc) ? The OpenShift documentation 没有提及任何相关内容。
您链接到的文档没有直接提到这一点,但它暗示了示例中的解决方案:Source-Url: https://github.com/example/killer-cartridge/archive/master.zip
因此,对于特定的分支、提交或标记(分别):
Source-Url: https://github.com/connyay/openshift-iojs/archive/master.zip
Source-Url: https://github.com/connyay/openshift-iojs/archive/ebd98692265f58c3f207555045a7c1a5ddb381a8.zip
Source-Url: https://github.com/luciddreamz/openshift-php/archive/v1.zip
OpenShift Cartridge reflector, for cartridges that do not specify a Source-Url
, allows you to do this by specifying a branch, commit, or tag in the 'commit' query parameter.
我正在使用 this iojs OpenShift cartridge,现在已经更新到 iojs 3.0,但我需要一个 iojs 2.x 版本来测试一些功能。
查看墨盒的 manifest.yml
(here), I see the Source-Url
set to the git repo (https://github.com/connyay/openshift-iojs.git)。我在想,如果我将其更改为使用相同 Github 存储库的旧版本,那么我会得到旧墨盒。
Source-Url
属性也支持指定分支或提交哈希(ala https://github.com/connyay/openshift-iojs.git#v2.5.0 etc) ? The OpenShift documentation 没有提及任何相关内容。
您链接到的文档没有直接提到这一点,但它暗示了示例中的解决方案:Source-Url: https://github.com/example/killer-cartridge/archive/master.zip
因此,对于特定的分支、提交或标记(分别):
Source-Url: https://github.com/connyay/openshift-iojs/archive/master.zip
Source-Url: https://github.com/connyay/openshift-iojs/archive/ebd98692265f58c3f207555045a7c1a5ddb381a8.zip
Source-Url: https://github.com/luciddreamz/openshift-php/archive/v1.zip
OpenShift Cartridge reflector, for cartridges that do not specify a Source-Url
, allows you to do this by specifying a branch, commit, or tag in the 'commit' query parameter.