Skip to content

osbuild/koji-image-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koji-image-builder

This project provides image-builder integration with Koji. image-builder is a tool that builds images (as the name says).

koji configuration

To use koji-image-builder you need the following things in your koji instance:

  1. Create the image-builder-build group which contains image-builder and distribution-gpg-keys.
  2. Create fXX-image-builder-build tags, which contain the image-builder-build group and have mock.new_chroot set to 0.
  3. Create fXX-image-builder targets, which use the fXX-image-builder-build tags as their build tag and the fXX tag as their target.
  4. Add the image-builder-build group to your build tag.
  5. 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.

TODO

  • patch koji to accept zst (docs/schema.sql, archivetypes table + migration?)

Test

Unit

The unittests mock out the majority of koji-provied classes and run quickly, you can run them with:

$ pytest test/unit
# ...

Integration

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published