从git repo构建OpenShift

时间:2017-06-20 12:17:56

标签: git openshift-origin

我正在尝试使用ssh-key作为秘密从git存储库初始化OpenShift构建:

$ oc new-build --name=modelingweb git@bitbucket.org:genettasoft/gs_modelling_web.git --build-secret deploymentkey

但似乎我的git url不被识别为git url:

error: no match for "git@bitbucket.org:genettasoft/gs_modelling_web.git"

The 'oc new-build' command will match arguments to the following types:

  1. Images tagged into image streams in the current project or the 'openshift' project
     - if you don't specify a tag, we'll add ':latest'
  2. Images in the Docker Hub, on remote registries, or on the local Docker engine
  3. Git repository URLs or local paths that point to Git repositories

--allow-missing-images can be used to force the use of an image that was not matched

See 'oc new-build -h' for examples.

我错过了什么?

1 个答案:

答案 0 :(得分:0)

您可以尝试使用OpenShift Origin v3.6.x吗?看起来这两个问题都已在最新版本中得到纠正。您可以在此处下载最新版本:https://github.com/openshift/origin/releases