Speeding up koji-generated mock builds

Alan Franzoni mailing at franzoni.eu
Wed Dec 15 16:28:32 UTC 2010


On Fri, Dec 3, 2010 at 9:56 PM, Mike McLean <mikem at redhat.com> wrote:
> However, I should point out that mock does support a "site-wide
> configuration file" (/etc/mock/site-defaults.cfg). The default site
> config for mock does nothing, but you could conceivably set options
> there on your builders. A few caveats though:
>  1) this may be playing with fire a bit
>  2) you're likely going to damage/break reproducibility
>  3) you'll want to keep such settings consistent across all your builders.

Sorry for the late response.

AFAIK, kojid overrides mock site-defaults and turns off ccache,
yum_cache and root_cache:

https://fedorahosted.org/koji/browser/koji/__init__.py#L1276

Btw, instead of fiddling with koji-builder internals, we decided to
manually build via mock and then import the packages on koji; this
lets use to do whatever we like with build-time mock parameters and
still use koji as a repository backend, and we're quite satisfied with
the results.



-- 
Alan Franzoni
--
contact me at public@[mysurname].eu


More information about the buildsys mailing list