From 28dcaf9ed7fcae69a2be45c3950356e921025b40 Mon Sep 17 00:00:00 2001 From: chaunceyjiang Date: Thu, 23 Nov 2023 18:17:47 +0800 Subject: [PATCH] Fix local-up-karmada.sh is not working. Signed-off-by: chaunceyjiang --- hack/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/util.sh b/hack/util.sh index 7ebaa6d64..dd7814372 100755 --- a/hack/util.sh +++ b/hack/util.sh @@ -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 }