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