This is an automated email from the ASF dual-hosted git repository. nicoloboschi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push: new fd40eae1f77 [fix][ci] Pick ubuntu mirror that uses http:// (#19233) fd40eae1f77 is described below commit fd40eae1f774fd2a1b84a0ad9c754972a168d25d Author: Lari Hotari <lhot...@users.noreply.github.com> AuthorDate: Sat Jan 14 20:26:15 2023 +0200 [fix][ci] Pick ubuntu mirror that uses http:// (#19233) --- build/pulsar_ci_tool.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/pulsar_ci_tool.sh b/build/pulsar_ci_tool.sh index a2df13806c7..31bb18f746f 100755 --- a/build/pulsar_ci_tool.sh +++ b/build/pulsar_ci_tool.sh @@ -57,8 +57,9 @@ function ci_pick_ubuntu_mirror() { UBUNTU_MIRROR=$({ # choose mirrors that are up-to-date by checking the Last-Modified header for { - # randomly choose up to 10 mirrors - curl -s http://mirrors.ubuntu.com/mirrors.txt | shuf -n 10 + # randomly choose up to 10 mirrors using http:// protocol + # (https isn't supported in docker containers that don't have ca-certificates installed) + curl -s http://mirrors.ubuntu.com/mirrors.txt | grep '^http://' | shuf -n 10 # also consider Azure's Ubuntu mirror echo http://azure.archive.ubuntu.com/ubuntu/ } | xargs -I {} sh -c 'echo "$(curl -m 5 -sI {}dists/$(lsb_release -c | cut -f2)-security/Contents-$(dpkg --print-architecture).gz|sed s/\\r\$//|grep Last-Modified|awk -F": " "{ print \$2 }" | LANG=C date -f- -u +%s)" "{}"' | sort -rg | awk '{ if (NR==1) TS=$1; if ($1 == TS) print $2 }'