使用现有存储库中的分支创建Openshift应用程序(使用`rhc create`)

tim*_*ber 3 git git-branch openshift openshift-client-tools openshift-web-console

OpenShift Web控制台允许使用现有远程存储库中的分支/标记创建新应用程序,我不知道如何使用rhc create.

相关的命令行选项--from-code URL适用于默认存储库路径,但如何判断要使用哪个特定分支?我在OpenShift文档或任何其他Web资源上找不到任何内容.

我尝试了以下和其他一些变体,但没有成功:

rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository/tree/my_branch

rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository.git/my_branch

结果消息:

Source code repository could not be cloned: 'https://github.com/my_user/my_repository.git/my_branch'. Please verify the repository is correct and contact support.

我需要用来rhc create创建新的应用程序,因为这允许使用多个盒式磁带(此处python-3.3和postgresql-9.2)创建应用程序,这是通过Web控制台无法实现的.

nih*_*vey 6

你很亲密 您可以通过执行以下操作从分支创建应用程序:

rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository#mybranch