2015-10-05 133 views
1

在我们公司,我们使用自己的Git仓库和自签名证书。OpenShift来源于自己的git仓库克隆错误

如果我尝试从git仓库中在OpenShift中构建一个新的应用程序,它不接受我们的证书(请看下面的日志)。只使用git clone导致没有错误,所以原因可能在OpenShift自己的git客户端。

下面是OC集结日志细节:

如果它试图通过ssh来克隆回购:

I1005 09:26:33.661857  1 docker.go:203] Cloning source from ssh://[email protected]:port/blablabla/xyz.git 
E1005 09:26:33.718445  1 git.go:102] Clone failed: Host key verification failed. 
fatal: Could not read from remote repository. 

通过https:

I1005 11:49:52.134760  1 docker.go:203] Cloning source from https://[email protected]:port/blablabla/xyz.git 
E1005 11:49:52.392426  1 git.go:102] Clone failed: fatal: unable to access 'https://[email protected]:port/blablabla/xyz.git': Peer's certificate issuer has been marked as not trusted by the user. 
F1005 11:49:52.392460  1 builder.go:54] Build error: exit status 128 

sslVerify在.gitconfig设置为false。

任何想法如何使OpenShift接受证书或只是忽略它? 非常感谢!

P.S. OpenShift地安装这种方式: https://github.com/openshift/openshift-ansible/blob/master/README_origin.md

UPD:尝试以下,没有效果的解决方案: https://docs.openshift.org/latest/dev_guide/builds.html#using-private-repositories-for-builds

版本:

oc v1.0.6-2-ge2a02a8 
kubernetes v1.1.0-alpha.0-1605-g44c91b1 
+0

如何在OpenShift地设置?我假设你是否使用了使用这些指令的'docker'标签? https://docs.openshift.org/latest/getting_started/administrators.html#running-in-a-docker-container – booyaa

+0

我把这个信息放在主要问题中 –

+0

你是否在你的包含包含sslVerify设置的.gitconfig文件中建立? –

回答