[PATCH compass-ci] container/openresty-proxy-cache: fix failed to git clone

[error] /c/compass-ci/container/openresty-proxy-cache# ./build Cloning into 'openresty'... fatal: remote error: access denied or repository not exported: /gitee.com/cuiyili/openresty.git [why] lkp-tests/tests/deploy-ci: ... cat >> /etc/gitconfig <<-EOF [url "git://$GIT_SERVER/gitee.com"] insteadOf=https://gitee.com ... /etc/gitconfig cause failed to git clone https://gitee.com/cuiyili/openresty.git, https -> http to fix this problem. Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/openresty-proxy-cache/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/openresty-proxy-cache/build b/container/openresty-proxy-cache/build index 76652097..3635507f 100755 --- a/container/openresty-proxy-cache/build +++ b/container/openresty-proxy-cache/build @@ -8,6 +8,6 @@ docker_skip_rebuild "openresty:proxy_cache" [ -d "openresty" ] && rm -rf openresty -git clone https://gitee.com/cuiyili/openresty.git || exit 1 +git clone http://gitee.com/cuiyili/openresty.git || exit 1 docker build -t openresty:proxy_cache . -f openresty/Dockerfile -- 2.23.0

On Mon, Apr 26, 2021 at 06:28:45PM +0800, Liu Yinsi wrote:
[error] /c/compass-ci/container/openresty-proxy-cache# ./build Cloning into 'openresty'... fatal: remote error: access denied or repository not exported: /gitee.com/cuiyili/openresty.git
[why] lkp-tests/tests/deploy-ci: ... cat >> /etc/gitconfig <<-EOF [url "git://$GIT_SERVER/gitee.com"] insteadOf=https://gitee.com ...
/etc/gitconfig cause failed to git clone https://gitee.com/cuiyili/openresty.git, https -> http to fix this problem.
Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/openresty-proxy-cache/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/openresty-proxy-cache/build b/container/openresty-proxy-cache/build index 76652097..3635507f 100755 --- a/container/openresty-proxy-cache/build +++ b/container/openresty-proxy-cache/build @@ -8,6 +8,6 @@ docker_skip_rebuild "openresty:proxy_cache"
[ -d "openresty" ] && rm -rf openresty
-git clone https://gitee.com/cuiyili/openresty.git || exit 1 +git clone http://gitee.com/cuiyili/openresty.git || exit 1
http => git Thanks, Xueliang
docker build -t openresty:proxy_cache . -f openresty/Dockerfile -- 2.23.0

On Mon, Apr 26, 2021 at 07:06:17PM +0800, Cao Xueliang wrote:
On Mon, Apr 26, 2021 at 06:28:45PM +0800, Liu Yinsi wrote:
[error] /c/compass-ci/container/openresty-proxy-cache# ./build Cloning into 'openresty'... fatal: remote error: access denied or repository not exported: /gitee.com/cuiyili/openresty.git
[why] lkp-tests/tests/deploy-ci: ... cat >> /etc/gitconfig <<-EOF [url "git://$GIT_SERVER/gitee.com"] insteadOf=https://gitee.com ...
/etc/gitconfig cause failed to git clone https://gitee.com/cuiyili/openresty.git, https -> http to fix this problem.
-git clone https://gitee.com/cuiyili/openresty.git || exit 1 +git clone http://gitee.com/cuiyili/openresty.git || exit 1
http => git
not work /c/compass-ci/container/openresty-proxy-cache# ./build Cloning into 'openresty'... fatal: unable to connect to gitee.com: gitee.com[0: 212.64.62.183]: errno=Connection timed out Thanks, Yinsi
Thanks, Xueliang
docker build -t openresty:proxy_cache . -f openresty/Dockerfile -- 2.23.0
participants (2)
-
Cao Xueliang
-
Liu Yinsi