ros-infrastructure / cookbook-ros-buildfarm

Apache License 2.0
2 stars 2 forks source link

Switch from Pulp to createrepo-agent for RPMs #116

Closed cottsay closed 2 years ago

cottsay commented 2 years ago

This change switches the RPM repository management solution from Pulp to createrepo-agent. It leaves Pulp configured and running, but moves the endpoint from http://example.com/{os_name}/building/{os_verison}/{os_arch} to http://example.com/{os_name}_pulp/building/{os_verison}/{os_arch}. Existing testing and main repositories are left untouched, and will be managed by createrepo-agent automatically on-demand.

There is a one-time manual migration that must be performed to copy the existing contents of the building repository from Pulp to createrepo-agent. After deployment is complete, run the following command on the repo host as the jenkins-agent user:

$ createrepo-agent --sync=http://127.0.0.1/rhel_pulp/building/8/ --arch=SRPMS --arch=x86_64 /var/repos/rhel/building/8/