main: add new --store argument to image-builder build

This commit adds a new `--store` flag to the `image-builder build`
command. This is used to specify a osbuild store directory to
store the intermediate build tree for faster rebuilding. It is
also useful for the container version of `image-builder-cli` to
allow mapping the users store into the container.
This commit is contained in:
Michael Vogt 2024-12-18 10:55:21 +01:00
parent e5b3ccd6ed
commit b3f9fb88f1
3 changed files with 15 additions and 5 deletions

View file

@ -8,8 +8,7 @@ import (
"github.com/osbuild/images/pkg/osbuild"
)
func buildImage(res *imagefilter.Result, osbuildManifest []byte) error {
osbuildStoreDir := ".store"
func buildImage(res *imagefilter.Result, osbuildManifest []byte, osbuildStoreDir string) error {
// XXX: support output dir via commandline
// XXX2: support output filename via commandline (c.f.
// https://github.com/osbuild/images/pull/1039)