DevHeads.net

Proposal : Use OSBS to build the fedora container base image

Hi all,

I would like to get feedbacks on the following proposal. Use OSBS to
build the fedora container base image, indeed OSBS has the capability
to build a base container image using a kickstart file.
To do this OSBS needs a Dockerfile, a kickstart file and an
image-build.conf file stored in dist-git, then OSBS will trigger an
ImageFactory task in Koji in order to build to base image and then it
will build the base container based on the artifacts built in Koji.

Here a the few advantages I see in moving forward with this proposal :

- Use of a single dist-git repo for the base image, allowing use of fedora-ci.
- Using OSBS will allow us to make use of bodhi updates to release
new versions of the image
- OSBS deals with multi-arches (we currently use a custom script in
releng to build manifest list)
- Does not requires releng to run a script to release the images

Before I start looking at the implementation details, I would
appreciate feedbacks.

Thanks
Clément

Comments

Re: Proposal : Use OSBS to build the fedora container base image

By Mohan Boddu at 12/05/2018 - 16:46

+1 to the change proposal.

Someone still need to submit updates in bodhi and rel-eng would be happy to
own that task and it is much simpler than what we have today.

On Mon, Dec 3, 2018 at 1:39 PM Clement Verna < ... at fedoraproject dot org>
wrote:

Re: Proposal : Use OSBS to build the fedora container base image

By King InuYasha at 12/03/2018 - 14:00

On Mon, Dec 3, 2018 at 1:39 PM Clement Verna < ... at fedoraproject dot org> wrote:
Is anyone actively maintaining ImageFactory? Because it's still Python
2 only and I haven't seen anyone really working on fixing that, much
less supporting more images easily...

Re: Proposal : Use OSBS to build the fedora container base image

By Dennis Gregorovic at 01/02/2019 - 14:24

There has been some progress as Tomas Kopecek added py3 patches to Oz last
year... <a href="https://github.com/clalancette/oz/pull/263" title="https://github.com/clalancette/oz/pull/263">https://github.com/clalancette/oz/pull/263</a>

Not sure how much effort is needed to add py3 support to ImageFactory
itself. Copying Tomas as Brendan. Neither of them maintain IF, but they
have contributed to it in the past and may be able to help.

-- Dennis

Re: Proposal : Use OSBS to build the fedora container base image

By Dennis Gregorovic at 01/03/2019 - 09:53

Forwarding info I got from Tomas off-line...

"""
oz should be py3-ready according to clancellete (not tested by me). I've
started some work on ImageFactory, but didn't get too far as there were
other priorities. It seemed to be doable (waited on oz in that time), so if
we want to give it some resources (very rough estimation ~1month/man to get
both things running together)

About ImageFactory maintaining - I don't think there is anybody actively
maintaining it, nearest shot is Brendan. Both mailing lists are dead from
2014/2015.

btw, for OSBS it should be no difference while koji builders are still
python2. ImageFactory is running there and needs to be same python version
as kojid (it is used as library, not separate process).
"""

Re: Proposal : Use OSBS to build the fedora container base image

By King InuYasha at 01/03/2019 - 11:35

On Thu, Jan 3, 2019 at 9:54 AM Dennis Gregorovic < ... at redhat dot com> wrote:
The PRs for Koji to move to Python 3 are waiting for their review to
be completed to be merged:

* <a href="https://pagure.io/koji/pull-request/1117" title="https://pagure.io/koji/pull-request/1117">https://pagure.io/koji/pull-request/1117</a>
* <a href="https://pagure.io/koji/pull-request/921" title="https://pagure.io/koji/pull-request/921">https://pagure.io/koji/pull-request/921</a>
* <a href="https://pagure.io/koji/pull-request/891" title="https://pagure.io/koji/pull-request/891">https://pagure.io/koji/pull-request/891</a>

Basically, as soon as someone gives a crap about it, these can be
finished up, merged, and we can have Koji switched to Python 3.