Skip to content

Commit

Permalink
Merge pull request kubeedge#5800 from wbc6080/fix-container-ci
Browse files Browse the repository at this point in the history
Change apt source to fix container runtime CI failures
  • Loading branch information
kubeedge-bot authored Aug 16, 2024
2 parents dcb2a05 + 03d2e32 commit cf8ca4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hack/local-up-kubeedge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf8ca4d

Please sign in to comment.