From 3c29197c5eeb4da2f1065852962db94306a49d47 Mon Sep 17 00:00:00 2001 From: Lkeme <19500576+lkeme@users.noreply.github.com> Date: Sun, 18 Jun 2023 14:29:20 +0800 Subject: [PATCH] [update] docker --- docker/entrypoint.sh | 40 ++++++++++++++++++++++++++++++---------- docs/DOC.md | 20 +++++++++++++------- 2 files changed, 43 insertions(+), 17 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 21bcabd..5a4853b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -10,41 +10,61 @@ case ${MIRRORS} in ;; "0") # https://github.com/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-github.com ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-github.com(RAW|源站) ${Font} \n ======== \n" git remote set-url origin https://github.com/lkeme/BiliHelper-personal.git ;; "1") # https://ghproxy.com/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-ghproxy.com ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-ghproxy.com(KR|韩国) ${Font} \n ======== \n" git remote set-url origin https://ghproxy.com/https://github.com/lkeme/BiliHelper-personal.git ;; "2") - # http://fastgit.org/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.fastgit.xyz ${Font} \n ======== \n" - git remote set-url origin https://hub.fastgit.xyz/lkeme/BiliHelper-personal.git + # http://gitclone.com/ + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-gitclone.com(CN|中国) ${Font} \n ======== \n" + git remote set-url origin https://gitclone.com/github.com/lkeme/BiliHelper-personal.git ;; "3") # https://hub.gitfast.tk/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.gitfast.tk ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.gitfast.tk(US|美国) ${Font} \n ======== \n" git remote set-url origin https://hub.gitfast.tk/lkeme/BiliHelper-personal.git ;; "4") # https://hub.gitslow.tk/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.gitslow.tk ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.gitslow.tk(US|美国) ${Font} \n ======== \n" git remote set-url origin https://hub.gitslow.tk/lkeme/BiliHelper-personal.git ;; "5") # https://hub.verge.tk/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.verge.tk ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.verge.tk(US|美国) ${Font} \n ======== \n" git remote set-url origin https://hub.verge.tk/lkeme/BiliHelper-personal.git ;; "6") # https://gh.api.99988866.xyz/ - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-gh.api.99988866.xyz ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-gh.api.99988866.xyz(US|美国) ${Font} \n ======== \n" git remote set-url origin https://gh.api.99988866.xyz/https://github.com/lkeme/BiliHelper-personal.git ;; +"7") + # https://kgithub.com/ + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-kgithub.com(SG|新加坡) ${Font} \n ======== \n" + git remote set-url origin https://kgithub.com/lkeme/BiliHelper-personal.git + ;; +"8") + # https://github.moeyy.xyz/ + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-github.moeyy.xyz(SG|新加坡) ${Font} \n ======== \n" + git remote set-url origin https://github.moeyy.xyz/https://github.com/lkeme/BiliHelper-personal.git + ;; +"9") + # https://hub.fgit.ml/ + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.fgit.ml(HK|香港) ${Font} \n ======== \n" + git remote set-url origin https://hub.fgit.ml/lkeme/BiliHelper-personal.git + ;; +"10") + # https://hub.fgit.gq/ + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-hub.fgit.gq(HK|香港) ${Font} \n ======== \n" + git remote set-url origin https://hub.fgit.gq/lkeme/BiliHelper-personal.git + ;; *) - echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-github.com ${Font} \n ======== \n" + echo -e "\n ======== \n ${Info} ${GreenBG} 切换源-github.com(RAW|源站) ${Font} \n ======== \n" git remote set-url origin https://github.com/lkeme/BiliHelper-personal.git ;; esac diff --git a/docs/DOC.md b/docs/DOC.md index d21e967..bb2fddf 100644 --- a/docs/DOC.md +++ b/docs/DOC.md @@ -248,14 +248,20 @@ $ -e VERSION=2 # 使用 版本 V2.x.x(默认选项) - 使用github镜像加速 +> 以下加速镜像均为网络收集,感谢公益提供者,如有问题请联系删除 + ```shell script -$ -e MIRRORS=0 # 使用 github.com -$ -e MIRRORS=1 # 使用 ghproxy.com -$ -e MIRRORS=2 # 使用 fastgit.org -$ -e MIRRORS=3 # 使用 hub.gitfast.tk -$ -e MIRRORS=4 # 使用 hub.gitslow.tk -$ -e MIRRORS=5 # 使用 hub.verge.tk -$ -e MIRRORS=6 # 使用 gh.api.99988866.xyz +$ -e MIRRORS=0 # 使用 github.com(RAW|CDN +$ -e MIRRORS=1 # 使用 ghproxy.com(KR|韩国) +$ -e MIRRORS=2 # 使用 gitclone.com(CN|中国) +$ -e MIRRORS=3 # 使用 hub.gitfast.tk(US|美国) +$ -e MIRRORS=4 # 使用 hub.gitslow.tk(US|美国) +$ -e MIRRORS=5 # 使用 hub.verge.tk(US|美国) +$ -e MIRRORS=6 # 使用 gh.api.99988866.xyz(US|美国) +$ -e MIRRORS=7 # 使用 kgithub.com(SG|新加坡) +$ -e MIRRORS=8 # 使用 github.moeyy.xyz(SG|新加坡) +$ -e MIRRORS=9 # 使用 hub.fgit.ml(HK|香港) +$ -e MIRRORS=10 # 使用 hub.fgit.gq(HK|香港) $ -e MIRRORS=custom -e CUSTOM_CLONE_URL=https://github.com/lkeme/BiliHelper-personal.git # 使用 自定义克隆地址 ```