When using the external repos feature, it is generally best practice to mirror the external repos you want to use (e.g. with a tool like repomirror), and use your local mirror url for the external repo in Koji.

On Fri, Mar 17, 2023 at 9:09 AM Joe (Jun-Yan) Chen <jychena@ambarella.com> wrote:
Dear Koji Development Team,


I hope this email finds you well. I am writing to seek your expertise about using QEMU as a Koji Builder to build packages for the aarch64 on the fedora platform.

When Koji invokes mock for building, it spends a significant amount of time updating yum metadata(≈15mins, <mirrors.kernel.org> set as external repo) resulting in taking 30 minutes to init buildroot alone (download speed≈2.8MB/s). I tried to use squid to cache mirror of fedora by modify /etc/kojid.com: yum_proxy = http://xxx:3128 but the "--installroot" process still costs a lot of time.


I would like to know if there is any information that I may have overlooked or any guidance or recommendations you may have to speed up init buildroot process on QEMU builder.

Thank you in advance for your time and consideration.

Best Regards,
Junyan CHEN


Ambarella AI Envisioned Junyan(Joe) CHEN
Software Engineer | SDK Team
Phone: +86-021-60880608-265
Email:  jychena@ambarella.com


This email and attachments contain Ambarella Proprietary and/or Confidential Information and is intended solely for the use of the individual(s) to whom it is addressed. Any unauthorized review, use, disclosure, distribute, copy, or print is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you.
_______________________________________________
koji-devel mailing list -- koji-devel@lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.org
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue