Split dockerhub mirrors

This commit is contained in:
Aoran Zeng
2024-08-09 02:10:31 +08:00
parent 0282062868
commit 4ebe58c1f1
3 changed files with 26 additions and 20 deletions

View File

@@ -2334,6 +2334,18 @@ static const char
wr_winget, wr_brew, wr_cocoapods, wr_dockerhub, wr_flathub, wr_nix, wr_guix, wr_emacs, wr_tex, wr_anaconda
};
#undef t
static MirrorSite*
available_mirrors[] = {
&MirrorZ, &Tuna, &Sjtug_Zhiyuan, &Zju, &Lzuoss, &Jlu, &Bfsu, &Pku, &Bjtu, &Sustech, &Ustc, &Hust, &Nju, // &Cqu,
&Ali, &Tencent, &Huawei, &Volcengine, &Netease, &Sohu, &Api7, &Fit2Cloud,
&RubyChina, &EmacsChina, &NpmMirror, &GoProxyCN, &GoProxyIO,
// 暂不支持 &NugetOrg
// 不要列出 &Upstream 和 &UserDdefine
};
/************************************** End Target Matrix ****************************************/

View File

@@ -6,6 +6,17 @@
* Last modified : <2024-08-09>
* ------------------------------------------------------------*/
static MirrorSite
// 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug
DaoCloud = {"daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/",
"https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-community-v0.18.0-amd64.tar"},
Fit2Cloud = {"fit2cloud", "FIT2CLOUD", "杭州飞致云信息科技有限公司", "https://www.fit2cloud.com/", NULL},
Huecker = {"huecker", "(Russia) Huecker", "俄罗斯 Huecker.io", "https://huecker.io/",
// 同 DaoCloud没有合适的下载链接先随便给一个以避免 bug
"https://huecker.io/en/use.html"};
/**
* 2024-07-24 更新
*
@@ -31,6 +42,7 @@ wr_dockerhub_sources[] = {
def_sources_n(wr_dockerhub);
void
wr_dockerhub_getsrc (char *option)
{