On Thu, Apr 16, 2020 at 10:11:47AM +0100, Lee Yarwood wrote:
Understood, going off on a slight tangent here but has virt-builder ever been considered for building these CI images? I appreciate there's a huge amount of logic built up in the dib elements at this point but I've always assumed you could inject that into a virt-builder run somehow.
Not seriously -- for a start I'm yet to find a tool that can build *everything* we're interested in; including centos, fedora, debian, suse and gentoo; despite [1] being impressive it still lacks coverage of some of them. As you say, most of the logic is in the various elements doing customisation. If anything the trend is to *decrease* the logic there and move it into Zuul base jobs -- there is a lot of history, and the amazing templating and inheritance that we have in our jobs now was not always available, leading to some of the choices we made at the time to do various things to the images we make available which we would not do now. There is some interest in making dib builds bootstrap themselves from containers; see [2] for a WIP change. This avoids some of the issues with requiring the host to have tools to build guest chroots. -i [1] http://builder.libguestfs.org/index.asc [2] https://review.opendev.org/#/c/700083/