Re: Network rules to use mock on RHEL8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 03. 12. 23 v 20:46 Emmanuel Seyman napsal(a):
Hello, all.

Wanting to promote RPM packages, I'm trying to use mock on an RHEL8 VM
that does not have unrestricted access to the internet. This fails
miserably, as you would expect it to.

I've already established that I need access to:
* registry.access.redhat.com on port 443
* cdn.redhat.com on port 443

Is there anything else I need to ask? Opening ports on internal VMs is a
lengthy process and I would really appreciate any help here.


It depends what you want to build. You have to check configs you want to use. E.g. Building Fedoras may requires access to registry.fedoraproject.org

https://github.com/rpm-software-management/mock/blob/main/mock-core-configs/etc/mock/templates/fedora-rawhide.tpl#L15C35-L15C62

If you want to build in rhel chroots you may need to add hostnames from this KB:
  https://access.redhat.com/solutions/65300

If you are building on top of Alma you may want to add

https://github.com/rpm-software-management/mock/blob/main/mock-core-configs/etc/mock/templates/almalinux-9.tpl#L6

https://github.com/rpm-software-management/mock/blob/main/mock-core-configs/etc/mock/templates/almalinux-9.tpl#L32 or rather use specific mirror.

And similarly for EPEL

https://github.com/rpm-software-management/mock/blob/main/mock-core-configs/etc/mock/templates/epel-9.tpl#L7

Beside that, that should be all.

Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys
--
_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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.fedoraproject.org/archives/list/epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Announce]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux