【问题标题】:OpenShift build from git repo从 git repo 构建 OpenShift
【发布时间】:2017-06-20 12:17:56
【问题描述】:

我正在尝试使用 ssh 密钥作为秘密从 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.

我错过了什么?

【问题讨论】:

    标签: git openshift-origin


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-15
      • 1970-01-01
      • 2012-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多