Commit graph

340 commits

Author SHA1 Message Date
robojerk
ee02c74250 did stuff 2025-08-26 10:33:28 -07:00
Simon de Vlieger
3f2346b201 doc: build systems
Some checks failed
SPEC file check / 🔍 Check spec file osbuild/images dependencies (push) Failing after 13s
Build & Deploy Container / Build & push image (push) Failing after 1s
Go / build (push) Failing after 9s
Integration tests / lint (push) Failing after 1s
Integration tests / build (push) Failing after 1s
Initial documentation on Koji.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-22 06:27:03 +00:00
Simon de Vlieger
f2145c66c3 doc: mention per-distro image types
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-22 06:27:03 +00:00
Simon de Vlieger
c38a24c780 doc: update usage
Make sure to pass `--distro` so the `minimal-raw-xz` image type exists,
not all distributions have it and since we're available on multiple it's
better to be explicit.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-22 06:27:03 +00:00
Simon de Vlieger
e7f44067b4 doc: mention CentOS
We're also available in CentOS repositories, mention this.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-22 06:27:03 +00:00
Simon de Vlieger
77dd6ba7e7 doc: alma linux is built-in
We have Alma Linux built in for a while now, let's list it on the
built-in distributions.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-22 06:27:03 +00:00
schutzbot
3396a16336 Post release version bump
[skip ci]
2025-08-19 16:53:35 +00:00
Michael Vogt
333eb70d07 spec: update min_osbuild_version to 157
The images library now needs osbuild >= 157 (see commit
71efe43fcb in the images library). So we need to bump our
image-builder.spec file dependency.
2025-08-19 15:20:19 +00:00
Michael Vogt
5e24db6def image-builder: use manifest.{Build,Payload}Pipelines
With the new images library changes to move the pipeline
roles out of the image types into the manifest we need
to tweak osbuild-composer to use the new way of getting
the payload and build pipelines.

This commit implements that new method based on the
manifest instead of the image type. See images pr#1766
for the rational of the change.
2025-08-19 15:20:19 +00:00
Michael Vogt
361a69e415 go.mod: update to images v0.177.0 2025-08-19 15:20:19 +00:00
Michael Vogt
75f24bbd2a main: fix --extra-repos support when cross building
This commit fixes the issue that --extra-repo are not added
correctly to the repo registry when doing cross arch building.
The issue is that they get added early at the reporegistry
level and because we don't know yet what arch will be used
it was initially only added to the host arch. This was
fine before we supported cross-arch building.

But now that we do support cross-arch building this is
of course an issue and produces subtle bugs. This commit
is the "easy" fix, the extra repos are just added to for
all architectures. This may not be right but because they
are optional its the reponsibility of the user to provide
the right ones. Eventually we should probably be smarter
here and move extra repo support into manifestgen but
that requires changes in images and an images release so
this is good enough for now.

Thanks to Simon de Vlieger for reporting this.
2025-08-19 15:18:58 +00:00
dependabot[bot]
ecbf9f65c7 build(deps): bump actions/checkout from 3 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 21:41:32 +00:00
Brian C. Lane
153ec70652 setup: Fix a typo carried over from bib
Old issue: https://github.com/osbuild/bootc-image-builder/issues/605
2025-08-18 08:19:48 +00:00
dependabot[bot]
5645a0dcc7 build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.3.2+incompatible to 28.3.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.3.2...v28.3.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.3+incompatible
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 19:39:32 +00:00
schutzbot
433077538a Post release version bump
[skip ci]
2025-08-11 16:36:01 +00:00
Michael Vogt
5fb17b967e image-builder: use github.com/osbuild/blueprint
Drop using the "images" library blueprint types and use the ones
from github.com/osbuild/blueprint/pkg/blueprint instead.

This also moves to the images library to v0.172.0 and the blueprints
library to v1.12.0 as this is required for this to work.
2025-08-07 16:56:35 +00:00
Michael Vogt
6169260dcd image-builder: update upload API to match latest images
This commit updates the upload API to match the latest
version in the images library.
2025-08-07 10:29:39 +00:00
Michael Vogt
eef98870f4 go.mod: update to latest version of images 2025-08-07 10:29:39 +00:00
schutzbot
8c5b49502a Post release version bump
[skip ci]
2025-08-01 15:52:02 +00:00
Simon de Vlieger
5e476848de deps: fix images 0.168
A replacement directive was still present in the `go.mod`, leading to
not installing 0.168 but a variation on 0.167.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-08-01 14:48:31 +00:00
schutzbot
bec0e4d1b0 Post release version bump
[skip ci]
2025-07-31 11:24:48 +00:00
Simon de Vlieger
4583fd5960 deps: update images to 0.168
Updates the `images` dependency to 0.168.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-31 10:24:51 +00:00
Michael Vogt
a454b2e96c README.md: document --ignore-warnings
This commit adds some documentation to the `--ignore-warnings`
flag that was added in PR#250.
2025-07-30 10:01:36 +00:00
Simon de Vlieger
1d362f9f20 spec: fix up version number
This got out of sync, somehow?

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-28 10:46:30 +00:00
Simon de Vlieger
26f8059cb4 ci/packit: remove EPEL release automation
With `image-builder` having been released into CentOS/RHEL we should no
longer ship updates for EPEL.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-28 06:40:53 +00:00
Lukas Zapletal
2828ee63cf ci: upgrade golangci-lint to 2.3.0
Upgrades the configuration file from V1 to V2 format which was pretty
straightforward. The vendor/ directory no longer needs to be excluded as
it is a default now in 2.x.

Updates the pre-commit configuration to the latest and greatest version.
2025-07-25 09:10:11 +00:00
Simon de Vlieger
27ad7cb6f0 chore: set specfile version at build
In [1] I changed the name of the variable used to deduce the version
built. I forgot to update this in the specfile. Let's correct that.

[1]: https://github.com/osbuild/image-builder-cli/pull/230

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-22 15:03:30 +00:00
Simon de Vlieger
6022e76122 deps: bump images to 0.164
We have an issue where `%post` scripts are not being executed due to our
incorrect handling of Anaconda modules [1].

[1]: https://github.com/osbuild/bootc-image-builder/issues/968

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-21 09:24:06 +00:00
Michael Vogt
e8b52d7a31 main: add --ignore-warnings cmdline option
This commit adds a new `--ignore-warnings` that can be used to
make warnings not an error when `ibcli` runs.
2025-07-17 06:45:30 +00:00
Michael Vogt
ad20533d87 testutil: rename Calls() -> CallArgsList() for clarity
The current MockCmd.Calls() is a bit ambiguous so follow the example
of pytest here and rename to the cleaner CallArgsList() that
captures more closely what the helper is actually doing.
2025-07-17 06:44:29 +00:00
Michael Vogt
bb45b89d84 testutil: remove unnecessary testutil.MockCmd.Restore()
While looking over the code I noticed that the `Restore()` helper
is not needed (and arguably wrong as it does not reset PATH).
We already use `t.TempDir()` and `t.Setenv()` as part of the
command setup so manually cleanup is not neccessary (and is today
even incomplete). So YAGNI and we can remove Restore().
2025-07-17 06:44:29 +00:00
Simon de Vlieger
9717980d3f deps: bump minimum osbuild
images 0.162.0 requires >= 156 for osbuild.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-16 08:07:57 +00:00
Simon de Vlieger
ce4eae461f deps: update images to 0.162.0
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-16 08:07:57 +00:00
Simon de Vlieger
7b535fdff5 test: smoke test --version
Only verify it returns the correct structure with (some) values in it.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-15 08:50:19 +00:00
Simon de Vlieger
3021afb9f7 main: --version includes git commit
Include the commit of the build (if available in the build environment),
also include the version of `images` in the build; if available.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-07-15 08:50:19 +00:00
Ondřej Budai
f52041ab67 packit: enable RHEL 10 builds
COPR now supports them, so let's add them! 🚀
2025-07-14 15:28:03 +00:00
schutzbot
1fadf26d0d Post release version bump
[skip ci]
2025-07-09 08:22:39 +00:00
Tomáš Hozza
57e8468390 Test/main: don't rely on EOL RHEL 8.9 in tests
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-07-09 06:52:47 +00:00
Tomáš Hozza
8d0d7106c5 Always set rhsm.Facts when generating manifests
Make sure that images built by ibcli have correct rhsm.Facts set for
distributions that set it (this is handled by the distro definition, not
by the caller of the manifest generator).

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-07-09 06:52:47 +00:00
Tomáš Hozza
0bc6ce4db3 go.mod: update osbuild/images to v0.156.0
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-07-09 06:52:47 +00:00
Simon de Vlieger
3cabb30ff8 readme: mention mount for container
People often forget to mount, we're a bit clearer about this in
`bootc-image-builder`; let's make it clear here as well.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-06-27 19:50:15 +00:00
Florian Schüller
199f8f3788 doc/10-faq.md: add image types documentation 2025-06-26 13:10:36 +00:00
Florian Schüller
b84e7b8b03 doc/01-usage.md: avoid multiple h1 in one document
Due to https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements#avoid_using_multiple_h1_elements_on_one_page
metioned in #234 we'll just use a single h1 per document.
2025-06-26 13:06:49 +00:00
Lukas Zapletal
10dde06c33 docs: subscription basic info 2025-06-25 09:02:35 +00:00
schutzbot
b377421793 Post release version bump
[skip ci]
2025-06-25 08:23:15 +00:00
Tomáš Hozza
49c87afb33 cmd/describe: fix describing of '*-simplified-installer' images
The  '*-simplified-installer' images require the installation device
to be specified as a BP customization to serialize their Manifest.
The 'describe' command was not setting those, which resulted in errors
when describing such image types.

Set a dummy installation device BP customization for image types with
their name ending with '-simplified-installer', to enable describing
of such images.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-06-23 18:31:27 +00:00
Tomáš Hozza
44ef682ca1 cmd/describe: fix describing of OSTree images
OSTree images require additional arguments to serialize their Manifest.
The 'describe' command was not setting those, which resulted in errors
when describing such image types.

Set the required minimum OSTree arguments to dummy values to enable
describing of such images.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-06-23 18:31:27 +00:00
Tomáš Hozza
8040fee0d4 cmd/describe: test that all images can be described
Add an unit test to verify that the `describe` command can describe all
image types. I've recently ran into issue when describing ostree-based
and `*-simplified-installer` image types.

Add new dependecy for working with YAML - sigs.k8s.io/yaml.

This is what we will probably converge to, since our currently used YAML
library is unmaintained.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-06-23 18:31:27 +00:00
schutzbot
bb7cab6ac7 Post release version bump
[skip ci]
2025-06-22 07:55:56 +00:00
Simon de Vlieger
24d9b0f7cc chore: bump osbuild in spec
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-06-20 16:36:05 +00:00