Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow --empty-oci-base with crane mutate #2050

Open
nheimlich opened this issue Jan 31, 2025 · 1 comment
Open

Feature Request: Allow --empty-oci-base with crane mutate #2050

nheimlich opened this issue Jan 31, 2025 · 1 comment

Comments

@nheimlich
Copy link

nheimlich commented Jan 31, 2025

Description
Currently creating an image with an empty OCI base and setting labels requires two separate commands: crane append --oci-empty-base followed by crane mutate. This can be streamlined by allowing the --oci-empty-base flag to be used directly with crane mutate.

Current Workflow

  1. crane append --oci-empty-base --new_layer image.tar --new_tag registry.example.com/<example>/<name>:<tag>
  2. crane mutate registry.example.com/<example>/<name>:<tag> --label <key>=<value>....

Purposed Workflow

  1. crane mutate --oci-empty-base --append image.tar registry.example.com/<example>/<name>:<tag> --label <key>=<value>....

I'm would like to contribute to this effort and have a working sample of crane mutate with the --oci-empty-base flag added.

Benefits

  • reduced number of registry interactions
  • reduced number of commands to produce an oci artifact
@nheimlich
Copy link
Author

Pull Request: #2051

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

No branches or pull requests

1 participant