2015-10-05 129 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文件中建立? –

回答