summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2024-08-16 10:40:27 +0800
committerGitHub <noreply@github.com>2024-08-16 10:40:27 +0800
commitcf8ca4d2f8f9096a5d158584473f6a9d9c2936c9 (patch)
tree7027af80eb0a0e852f5c44560d0e139984514301
parentMerge pull request #5789 from WillardHu/fix-impersonation (diff)
parentchanging apt source after multiple failures (diff)
downloadkubeedge-cf8ca4d2f8f9096a5d158584473f6a9d9c2936c9.tar.gz
Merge pull request #5800 from wbc6080/fix-container-ci
Change apt source to fix container runtime CI failures
-rwxr-xr-xhack/local-up-kubeedge.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/hack/local-up-kubeedge.sh b/hack/local-up-kubeedge.sh
index a99635e73..cefe2009b 100755
--- a/hack/local-up-kubeedge.sh
+++ b/hack/local-up-kubeedge.sh
@@ -36,6 +36,11 @@ function install_cr() {
while [ $attempt_num -lt $max_attempts ]
do
+ if [ $attempt_num -eq 3 ]; then
+ echo "Download failed multiple times, try to change apt source ..."
+ sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
+ sudo apt-get update
+ fi
if [[ "${CONTAINER_RUNTIME}" = "docker" ]]; then
install_docker
verify_docker_installed