Merge pull request #4312 from chaunceyjiang/shell

Fix local-up-karmada.sh is not working.
This commit is contained in:
karmada-bot 2023-11-24 17:34:54 +08:00 committed by GitHub
commit 05afc3f3c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ function util::set_mirror_registry_for_china_mainland() {
"cluster/images/buildx.Dockerfile"
)
for dockerfile in "${dockerfile_list[@]}"; do
grep 'mirrors.ustc.edu.cn' ${repo_root}/${dockerfile} > /dev/null || sed -i'' -e "1a\\
grep 'mirrors.ustc.edu.cn' ${repo_root}/${dockerfile} > /dev/null || sed -i'' -e "/FROM alpine:/a\\
RUN echo -e http://mirrors.ustc.edu.cn/alpine/v3.17/main/ > /etc/apk/repositories" ${repo_root}/${dockerfile}
done
}