This project provides image-builder
integration with Koji. image-builder
is a tool that builds images (as the name says).
To use koji-image-builder
you need the following things in your koji
instance:
- Create the
image-builder-build
group which containsimage-builder
anddistribution-gpg-keys
. - Create
fXX-image-builder-build
tags, which contain theimage-builder-build
group and havemock.new_chroot
set to0
. - Create
fXX-image-builder
targets, which use thefXX-image-builder-build
tags as their build tag and thefXX
tag as their target. - Add the
image-builder-build
group to your build tag. - Create packages for the things you want to build in the target tag, for example
Fedora-Minimal
After this you can enable the image_builder
plugin in your hub, and builder configuration files.
- patch koji to accept zst (docs/schema.sql, archivetypes table + migration?)
The unittests mock out the majority of koji
-provied classes and run quickly, you can run them with:
$ pytest test/unit
# ...
These tests set up a full containerized koji
environment and does image builds in it. sudo
is required for this. The tests take long, especially if the containers need to be built. The following does a quick smoke test by setting up the entire environment and doing a build from the command line.
$ python3 run.py test
# ...
Leaving out the test
argument lets you run a local koji environment to interact with.