I wanted to write a plugin where a task would run in a kubernetes pod
instead of using mock in the "local builder".
I know mock is not abstracted, but how a task is run is, isn't it?
I was taking a look at the "runroot" plugin source code and it looked
like (to me at least) that it overrides the default behavior when a task
needs to be run (such as building an RPM por example), is that correct?
 - https://pagure.io/koji/blob/master/f/plugins/builder/runroot.py
On Mon, Nov 30, 2020 at 4:03 PM Michael McLean <mikem(a)redhat.com> wrote:
This is possible, but it is probably more work than you expect.
Mock is not abstracted in the code, so you can't simply swap out mock for
something else. You'd need to write new method handlers.
There is also the matter of how to trigger such builds. If this plugin
adds new build methods, then you'd likely need a hub plugin to create the
task(s) and a cli plugin to provide the command.
I suppose you could alternately override the `buildArch` method if your
approach could work as a drop-in replacement for it, but it's unclear what
exactly you are trying to accomplish.
On Mon, Nov 30, 2020 at 12:35 PM Leonardo Rossetti <lrossett(a)redhat.com>
> I was taking a look at this page:
and I was wondering if a
> plugin could be written to provide an alternative build/isolation system
> instead of the default one.
> Would it be possible to write a builder plugin that would not use mock as
> the isolation system?
> Leonardo Rossetti
> Senior Software Engineer,
> Red Hat <https://www.redhat.com>
> koji-devel mailing list -- koji-devel(a)lists.fedorahosted.org
> To unsubscribe send an email to koji-devel-leave(a)lists.fedorahosted.org
> Fedora Code of Conduct:
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
koji-devel mailing list -- koji-devel(a)lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
Senior Software Engineer,
Red Hat <https://www.redhat.com>