Conversation
2bb431a to
b100b85
Compare
| ARG UBUNTU_UPDATES_MIRROR=http://archive.ubuntu.com/ubuntu | ||
| ARG UBUNTU_BACKPORTS_MIRROR=http://archive.ubuntu.com/ubuntu | ||
| ARG UBUNTU_SECURITY_MIRROR=http://security.ubuntu.com/ubuntu | ||
| ARG OS_CODENAME=jammy |
There was a problem hiding this comment.
Maybe remove this logic at all and use common approach with Greengage to change mirrors?
There was a problem hiding this comment.
The Greengage approach uses --add-host to redirect archive.ubuntu.com DNS to azure.archive.ubuntu.com's IP. This works because Azure's Ubuntu mirror serves packages at the same standard paths that apt expects:
http://<azure_mirror_ip>/ubuntu/dists/jammy/Release -> 200 OK
Our internal mirror uses a non-standard path structure:
/ubuntu/jammy/jammy/dists/jammy/Release <- actual path on our internal mirror.
/ubuntu/dists/jammy/Release <- what apt requests after --add-host redirect -> 404
--add-host only replaces the IP address at the DNS level - it does not rewrite URL paths. So after the redirect, apt still requests the standard paths, which return 404 on our mirror.
| apt-get install -y ./*.deb; \ | ||
| rm ./*.deb; \ | ||
| else \ | ||
| mkdir -p "$(dirname $adb_python3_bin)" && ln -sf "$(which python3)" $adb_python3_bin; \ |
There was a problem hiding this comment.
Maybe pass system python as build-arg for simplicity?
This reverts commit 7c5e7d3.
Add build for ubuntu 24 (#2702)
Task: CI-5852