Skip to content

Implement Konflux builder/generator#956

Draft
jmtd wants to merge 6 commits intocekit:developfrom
jmtd:konflux
Draft

Implement Konflux builder/generator#956
jmtd wants to merge 6 commits intocekit:developfrom
jmtd:konflux

Conversation

@jmtd
Copy link
Collaborator

@jmtd jmtd commented Mar 3, 2026

This is very useful for me, but I don't know how many other users we might have.

This implements a konflux builder, very similar to the existing osbs builder. It is used to sync the generation results from cekit with another git repository. Unlike the osbs builder, It does not trigger a build, only prepares the sources.

There's a fair bit of clean up needed. Future feature: gather all packages to be installed and generate/update a rpms.in.yaml for hermetic builds. Possibly also generating rpms.lock.yaml.

jmtd added 6 commits March 3, 2026 10:02
A Task within Konflux modifies the Dockerfile being built. This
process is buggy and it cannot handle the args-style RUN format.
See: <konflux-ci/build-definitions#1200>

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Derived and very similar to the OSBS builder, a back-end to support
generating and syncing container sources with a Git designed to be
used in conjunction with Konflux.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
use cekit/tools/git instead.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
This overrides the bits we need from tools/git.

Now we can prepare (but not yet push) a suitable commit for Konflux.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Assuming the contents of the file is (mostly) defined at the image
descriptor key "konflux"."rpms.in.yaml", collate, unique and sort
all the packages installed for the container (across all modules);
add it to the 'packages' key and write the result to
target/image/rpms.in.yaml

Currnetly: no schema validation for presence of "rpms.in.yaml" key
(current schema is too relaxed, accepts anything); we overwrite any
existing packages key, might be nicer to merge.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant