Commit graph

38 commits

Author SHA1 Message Date
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
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
eef98870f4 go.mod: update to latest version of images 2025-08-07 10:29:39 +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
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
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
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
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
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
Simon de Vlieger
42d41c7d07 chore: bump images
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-06-20 16:36:05 +00:00
Simon de Vlieger
92095eac06 deps: update
Update dependencies to get the latest images into `image-builder`; this
includes Alma Linux, a Vagrant image type for Fedora, and WSL
improvements for Fedora.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-05-28 08:19:05 +00:00
Simon de Vlieger
81162a0736 deps: bump images and osbuild
Some important PRs have landed there, I'd like to do an extra release to
push these out.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-04-16 19:58:29 +00:00
Michael Vogt
7fbae14142 go.mod: bump version of github.com/osbuild/blueprint 2025-04-09 05:32:45 +00:00
Michael Vogt
c5f0f62ed2 go.mod: bump image version
This gives us the improved error reporting from dnfjson from
PR#1393
2025-04-09 05:32:45 +00:00
Simon de Vlieger
bda86863ff deps: update images to main
Pull in the `main` branch from images to ensure we have the support
needed for eating warnings.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-04-08 07:27:35 +00:00
Michael Vogt
1d2095f09e go.mod: update to latest version of images to get PR#1376 2025-04-03 17:25:16 +00:00
Michael Vogt
0d668c112a go.mod: update to latest version of github.com/osbuild/blueprint
This commit pulls in the latest fixes from
https://github.com/osbuild/blueprint/pull/7
2025-03-28 10:53:46 +00:00
Michael Vogt
2895e71064 many: move to use the new github.com/osbuild/blueprint module
This commit moves ibcli over to use the new `osbuild/blueprint`
module for better compatibility with the composer and on-prem
blueprints.
2025-03-27 11:59:45 +00:00
Michael Vogt
bcdfda9b95 go.mod: update toml lib to v1.5.0
This release includes a fix for the issue that custom unmarshaled
toml was marked in the metadata as "Undecoded()" [0].

With that we can enable strict checking for blueprint configuration.

[0] BurntSushi/toml#425
2025-03-25 19:13:33 +00:00
Michael Vogt
dd4547034b go.mod: update to latest version of image to get PR#1342
This will allow us to get boostrap buildroot support.
2025-03-25 11:58:24 +00:00
dependabot[bot]
1087fd7187 build(deps): bump github.com/cheggaaa/pb/v3 in the go-deps group
Bumps the go-deps group with 1 update: [github.com/cheggaaa/pb/v3](https://github.com/cheggaaa/pb).


Updates `github.com/cheggaaa/pb/v3` from 3.1.6 to 3.1.7
- [Commits](https://github.com/cheggaaa/pb/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: github.com/cheggaaa/pb/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 08:28:39 +00:00
Simon de Vlieger
dfa58fd6b5 chore: bump deps
Bump to latest `images` to make Fedora Minimal work with all the new
bits and bobs. Manual PR because the other one was being weird.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-03-04 21:15:50 +00:00
Michael Vogt
55d3b4916a go.mod: update to latest "bib" version 2025-02-25 12:08:51 +00:00
Michael Vogt
5f6d59013f go.mod: update to latest images release to get images PR#1211 2025-02-12 12:57:27 +01:00
Michael Vogt
e41377b82a main: add new upload command
This commit adds a new `upload` command that can be used to
upload a raw image to the cloud. Currently only AWS is
supported but as images adds more clouds to the uploader interfac
we can easily expand more.

The cloud is currently detected via the file extension, that
mapping probably should also go into the `images` library.
2025-02-11 13:38:04 +01:00
Michael Vogt
1a14f5bae3 go.mod: update images to v0.116.0 2025-02-10 20:40:53 +01:00
Michael Vogt
0a3c642772 go.mod: update to get the latest progress fixes from bib
This commit updates the `progress` package to get the latest
fixes, most notably
https://github.com/osbuild/bootc-image-builder/pull/820
2025-02-10 11:46:55 +01:00
Michael Vogt
f46ca14f85 image-builder: update TestBuildIntegrationErrors tests
This commit updates the tests for the error reporting. Since
we are now using the new "progress" module we can no longer
directly mock osStderr. So this now uses the new testutil
helper `CaptureStdio`.

Note also that the behavior of `verbose` and `term` is slightly
different - for backward compatibility in `verbose` mode the
stderr from osbuild is directly connected to the caller stderr.

For term mode this is not done to prevent spurious message from
leaking into the terminal progress and the full error is available
from the actual go error as captured output.
2025-01-29 15:21:33 +00:00
Michael Vogt
1198c73102 main: add progress support via bibs code
This commit add progress reporting similar to what `bib` is doing.
It imports the progress from `bootc-image-builder` for now. There
is an open PR for moving this to images but there are some
concerns about moving it there so for now we just use bib.
This is not too bad because eventually bib and ibcli will merge.
2025-01-29 15:21:33 +00:00
dependabot[bot]
cf890c7297 build(deps): bump github.com/osbuild/images in the go-deps group
Bumps the go-deps group with 1 update: [github.com/osbuild/images](https://github.com/osbuild/images).


Updates `github.com/osbuild/images` from 0.111.1-0.20250124075826-58bc61d3c5d9 to 0.112.0
- [Release notes](https://github.com/osbuild/images/releases)
- [Commits](https://github.com/osbuild/images/commits/v0.112.0)

---
updated-dependencies:
- dependency-name: github.com/osbuild/images
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 08:51:34 +00:00
Simon de Vlieger
c1572905fe deps: update images
Update images to understand the `main` of `osbuild` that we integration
test against.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-01-24 10:00:07 +00:00
Michael Vogt
78f62e21e2 go.mod: move to latest snapshot 2025-01-17 13:29:01 +00:00
Michael Vogt
6d9e91eb3c go.sum: update to latest images lib to get embeded repos 2025-01-09 16:17:50 +00:00
Michael Vogt
59e6ce298a go.mod: update to images@v0.108.0 2025-01-08 06:53:12 +00:00
dependabot[bot]
c45b5e978f build(deps): bump the go-deps group with 2 updates
Bumps the go-deps group with 2 updates: [github.com/osbuild/images](https://github.com/osbuild/images) and [github.com/stretchr/testify](https://github.com/stretchr/testify).


Updates `github.com/osbuild/images` from 0.98.0 to 0.106.0
- [Release notes](https://github.com/osbuild/images/releases)
- [Commits](https://github.com/osbuild/images/compare/v0.98.0...v0.106.0)

Updates `github.com/stretchr/testify` from 1.9.0 to 1.10.0
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/osbuild/images
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-20 05:21:56 +00:00
Michael Vogt
ea61ef593f pkg: add new manifestgen package
This commit adds a new generic `manifestgen` package that can be
used to generate osbuild manifests. It works on a higher level
then the low-level `manifest` package from `images` and provides
plugable resolvers and a streamlined API.

This package is meant to be moved to the `images` library eventually.
2024-12-16 07:54:45 +00:00
Florian Schüller
7f9936acc9 go.mod: upgrade golang.org/x/crypto
Upgrade golang.org/x/crypto due to
https://github.com/osbuild/image-builder-cli/security/dependabot/1
2024-12-12 18:48:50 +00:00
Michael Vogt
7a838332c8 main: initial version of image-builder with basic --list-images
This commit adds the new `image-builder` binary. This binary is
meant to build images from the CLI without the need to setup a
daemon. The main use-case is CI/CD and admins running this in
scripts or ad-hoc. The CLI should be pleasant to use.

This first commit adds the `list-images` command which is a thin
wrapper around functionality from the `osbuild/images` library.

It will list all buildable images by default and can be trimmed
down further via `--filter` which supports the filtering from
the `images` library, see https://github.com/osbuild/images/pull/1015

It also supports `--output` which will output the result in the
given format. Currently "text" and "json" are supported.

Note that this will not work on it's own yet, it will need an
installed image-builder to get the repositories. This will need
to get fixed via either:
1. a dependency package for `ibuilder` that carries all the repos
2. a shared repo that contains the repos
3. using go:embed to get them (see images#1038)
2024-11-28 09:53:08 +00:00