Skip to content

Conversation

@supakeen
Copy link
Member

After a chat in our community Matrix channel I realized that we have not documented the various ways of managing repositories in image-builder. Let's start that off with a small initial page that I will build on in the following commits.

@supakeen supakeen force-pushed the repository-documentation branch 11 times, most recently from 8361d2b to 4f94477 Compare November 28, 2025 12:19
achilleas-k
achilleas-k previously approved these changes Dec 3, 2025
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some minor comments, but ok to ignore or address separately.

@@ -0,0 +1,103 @@
# Repository Management

When building package based images `image-builder` will use repositories to get packages from. `image-builder` ships with built-in definitions and repositories for a [list of distributions](../10-faq.md#built-in-distributions). These are used when building artifacts.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit of an awkward sentence structure here ("... to get the packages from.").

How about:

When building package-based images, image-builder downloads packages from pre-defined repositories.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


When building package based images `image-builder` will use repositories to get packages from. `image-builder` ships with built-in definitions and repositories for a [list of distributions](../10-faq.md#built-in-distributions). These are used when building artifacts.

A common request is to enable additional repositories, override the repositories used, redirect repositories, or include additional repositories in the produced artifact. For this we need to go through the way `image-builder` uses repositories for each step of the build process.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd replace "request" with "requirement".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

$ sudo image-builder build --distro fedora-43 --force-repo https://some/base/url minimal-raw-xz
```

`force-repo` can be passed multiple times. When this is done all `force-repo` repositories are used but no built in repositories.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "passed" is used a lot in this section. Let's reduce the number a bit and instead say "can be used multiple times" (or maybe "specified", if you prefer).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced some with "given", and some with "can be used". Large reduction in the use of passed :)

@supakeen supakeen force-pushed the repository-documentation branch 3 times, most recently from 0020c06 to c733f81 Compare December 15, 2025 10:46
@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 16, 2026
@supakeen
Copy link
Member Author

Not stale.

@github-actions github-actions bot removed the Stale label Jan 17, 2026
After a chat in our community Matrix channel I realized that we have not
documented the various ways of managing repositories in `image-builder`.
Let's start that off with a small initial page that I will build on in
the following commits.

This relies on the implementation of the new `force-repo-dir` behavior
as that's the behavior documented [1].

[1]: osbuild#408

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
With the potential to use YAML for repository file formats let's make
sure it's the advertised way [1].

[1]: osbuild/images#2095

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
@supakeen supakeen force-pushed the repository-documentation branch from 913a770 to 0c9ad2a Compare January 19, 2026 09:29
@supakeen supakeen marked this pull request as ready for review January 19, 2026 09:29
@supakeen supakeen requested a review from a team as a code owner January 19, 2026 09:29
@supakeen supakeen requested review from achilleas-k, croissanne and lzap and removed request for a team January 19, 2026 09:29
@supakeen supakeen requested a review from bcl January 23, 2026 08:06
@supakeen supakeen marked this pull request as draft January 23, 2026 08:36
@supakeen
Copy link
Member Author

Not all PRs that this requires has landed, notably I still need to fix up and land #408.

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.

4 participants