diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2024-08-16 10:40:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 10:40:27 +0800 |
| commit | cf8ca4d2f8f9096a5d158584473f6a9d9c2936c9 (patch) | |
| tree | 7027af80eb0a0e852f5c44560d0e139984514301 | |
| parent | Merge pull request #5789 from WillardHu/fix-impersonation (diff) | |
| parent | changing apt source after multiple failures (diff) | |
| download | kubeedge-cf8ca4d2f8f9096a5d158584473f6a9d9c2936c9.tar.gz | |
Merge pull request #5800 from wbc6080/fix-container-ci
Change apt source to fix container runtime CI failures
| -rwxr-xr-x | hack/local-up-kubeedge.sh | 5 |
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 |
