Skip to content

Conversation

@vinceaperri
Copy link
Contributor

Adds a new create subcommand to the imagecustomizer CLI that enables creating Azure Linux images from scratch using the imagecreator library.


Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • Code conforms to style guidelines

@vinceaperri vinceaperri requested a review from a team as a code owner December 30, 2025 20:53
}

func createImage(ctx context.Context, cmd CreateCmd) error {
err := imagecreatorlib.CreateImageWithConfigFile(ctx, cmd.BuildDir, cmd.ConfigFile, cmd.RpmSources,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a preview features flag for the create command,

BuildDir string `name:"build-dir" help:"Directory to run build out of." required:""`
ConfigFile string `name:"config-file" help:"Path of the image creator config file." required:""`
RpmSources []string `name:"rpm-source" help:"Path to a RPM repo config file or a directory containing RPMs." required:""`
ToolsTar string `name:"tools-file" help:"Path to tdnf/dnf worker tarball" required:""`
Copy link
Contributor

Choose a reason for hiding this comment

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

Long term, it would be good to automatically create the tools tarball by using the appropriate container for the provided distro.

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.

3 participants