You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support manifest/blob/repository/tag commands in ORAS #459
changed the title [-]feat: support manifest/blob/repository/tag commands in ORAS[/-][+]Support manifest/blob/repository commands in ORAS[/+]on Aug 3, 2022
Below is the UX design for ORAS manifest commands and ORAS blob commands from our discussion @shizhMSFT@qweeah @yuehaoliang-microsoft @lizMSFT
# Push
oras manifest push <name> - # read from stdin, return error if --password-stdin flag is used at the same time
oras manifest push <name> <path> # stdout human readable messages
oras manifest push <name> <path> --media-type <mediaType>
oras manifest push <name> <path> --descriptor # stdout json descriptor
oras blob push <name> - # read from stdin, return error if --password-stdin flag is used at the same time
oras blob push <name> <path> # stdout human readable messages
oras blob push <name> <path> --descriptor # stdout json descriptor
# Delete
oras manifest delete <name>
# warn users that other tags might also get deleted
# need add delete confirmation --yes or -y, ref: https://docs.microsoft.com/en-us/cli/azure/acr/manifest?view=azure-cli-latest#az-acr-manifest-delete
oras manifest delete <name> --yes --descriptor # stdout json descriptor
oras blob delete <name@digest>
# need add delete confirmation --yes or -y, ref: https://docs.microsoft.com/en-us/cli/azure/acr/manifest?view=azure-cli-latest#az-acr-manifest-delete
oras blob delete <name@digest> --yes --descriptor # stdout json descriptor
# Fetch
# need pretty flag
oras manifest fetch <name> # default: stdout manifest content (output to stdout)
oras manifest fetch <name> --output <path>
# special case: oras manifest fetch <name> --output -
# fetch manifest to stdout
# --output - cannot be used with --descriptor at the same time
oras manifest fetch <name> --descriptor
oras manifest fetch <name> --output <path> --descriptor # stdout descriptor, save manifest content into file path
oras blob fetch <name@digest> # return error, either output or descriptor need to be provided, or provide both
oras blob fetch <name@digest> --output <path> # stdout progess status, save blob content into file path. should support pv to view progress of commands
# special case: oras blob fetch <name> --output -
# fetch blob to stdout, stdout NOT display progess status
# --output - cannot be used with --descriptor at the same time
oras blob fetch <name@digest> --descriptor # stdout descriptor (need pretty)
oras blob fetch <name@digest> --output <path> --descriptor # stdout descriptor, save blob content into file path
If user can redirect the pretty output to a file using >, then we don't need a --output flag, right?
Yes, but the --output is designed for the scenario that 1) a user wants to save fetched manifest to a file somwhere and 2) gets the descriptor in stdout.
The top-level ORAS manifest and ORAS blob commands look good. But the description copywriting of some commands needs to be polished and more straightforward. For example, @nima expressed his confusion about the meaning of the flag --descriptor.
We can use this doc to summarize the final CLI UX for all commands in v0.15.0.
@FeynmanZhou prettifying a manifest will change the content(by adding space and newlines), thus changing the digest of the fetched manifest, so returning raw content is a must and should be set to default.
Activity
junczhu commentedon Jul 25, 2022
I am highly interested in following tasks and want to start working on them. Please assign them to me.
sajayantony commentedon Jul 26, 2022
These are awesome additions to ORAS and will make interacting with an OCI registry so much easier.
[-]feat: support manifest/blob/repository/tag commands in ORAS[/-][+]Support manifest/blob/repository commands in ORAS[/+][-]Support manifest/blob/repository commands in ORAS[/-][+]Support manifest/blob/repository/tag commands in ORAS[/+]lizMSFT commentedon Aug 25, 2022
Below is the UX design for ORAS manifest commands and ORAS blob commands from our discussion @shizhMSFT @qweeah @yuehaoliang-microsoft @lizMSFT
please let us know if you have any suggestions, thanks
cc @sajayantony @FeynmanZhou @yizha1
qweeah commentedon Aug 26, 2022
For
manifest fetch, what is the scope of--pretty? Should below commands store prettified manifest to file?Storing prettified manifest to file makes more sense to me, e.g. below commands should saves indentical file content to
<path>@shizhMSFT @FeynmanZhou @yizha1 Can you help confirm. /cc @yuehaoliang-microsoft @lizMSFT
yizha1 commentedon Aug 26, 2022
If user can redirect the pretty output to a file using
>, then we don't need a--outputflag, right?qweeah commentedon Aug 26, 2022
Yes, but the
--outputis designed for the scenario that 1) a user wants to save fetched manifest to a file somwhere and 2) gets the descriptor in stdout.shizhMSFT commentedon Aug 26, 2022
Good point. I'd suggest that
--prettyonly applies to data output tostdout.In other words,
or we drop the
--prettyoption for all commands.FeynmanZhou commentedon Aug 31, 2022
The top-level
ORAS manifestandORAS blobcommands look good. But the description copywriting of some commands needs to be polished and more straightforward. For example, @nima expressed his confusion about the meaning of the flag--descriptor.We can use this doc to summarize the final CLI UX for all commands in v0.15.0.
FeynmanZhou commentedon Aug 31, 2022
If we want to show prettified manifest for every
oras manifest fetchcommand, why not set it as default and drop this flag?qweeah commentedon Sep 2, 2022
@FeynmanZhou prettifying a manifest will change the content(by adding space and newlines), thus changing the digest of the fetched manifest, so returning raw content is a must and should be set to default.
shizhMSFT commentedon Sep 15, 2022
Closing as all sub tasks are finished.