Skip to content

Pushing an image manifest JSON [feature request] #238

Closed

Description

@sjackman

I'd like to prepare an image manifest JSON myself, and push it to a specified name:tag. For example:

oras push sjackman/hello-world:latest --manifest=image.manifest.json

All of the individual layers have already been pushed.

Activity

  1. Silvanoc commented on Mar 17, 2021

    @Silvanoc

    It looks to me as if you are trying to use ORAS to build container images, without any other artifacts involved. Please, correct me if I'm wrong.

    I don't think ORAS is supposed to be used for this purpose... Have you considered using umoci?

    BTW, which version of ORAS are you using? I've used v0.10.0 and v0.11.0 and no option --manifest exists. Could it be that you mean --manifest-config?

  2. sjackman commented on Mar 17, 2021

    @sjackman
    Author

    It looks to me as if you are trying to use ORAS to build container images, without any other artifacts involved. Please, correct me if I'm wrong.

    I'm pushing artifacts that happen to be tarballs, and I've added OCI container image metadata to make them look like a container image, even though they're not really..

    I don't think ORAS is supposed to be used for this purpose... Have you considered using umoci?

    I didn't know about umoci. Thanks for the link! I'll check it out.

    BTW, which version of ORAS are you using? I've used v0.10.0 and v0.11.0 and no option --manifest exists. Could it be that you mean --manifest-config?

    Sorry, I wasn't clear. The --manifest option doesn't currently exist. That's my feature request. 😁

    I have constructed a application/vnd.oci.image.manifest.v1+json JSON file, which is also used by ORAS. I'd like to push and tag that JSON file to an OCI registry.

    https://github.com/opencontainers/image-spec/blob/master/manifest.md#image-manifest

  3. SteveLasker commented on Apr 7, 2021

    @SteveLasker
    Contributor

    Hi @sjackman,
    The oras cli is focused on pushing/pulling file[s]. If you're looking to push a manifest, that references existing digests, that is a more generic registry tool that we haven't currently focused on.
    We are pursing #181, which would split up the oras cli and oras libraries into separate repos. This would allow you to add use the manifest put library (once it's factored out) and build a cli with it.
    However, if umoci or scope solve your needs, that's also great as we're not trying to replace those tools. We see oras focsed on the non-container image artifacts as there are many tools that focus on the complex details of images.

  4. sjackman commented on Apr 7, 2021

    @sjackman
    Author

    https://github.com/containers/skopeo worked for me! Thanks, Steve. You can close this issue. I now use skopeo to upload the artifacts and either skopeo or oras or curl to download the artifacts.

  5. added this to the future milestone on May 7, 2022
  6. sajayantony commented on Jul 27, 2022

    @sajayantony
    Contributor

    Manifest push discussed in #459 should cover this.

  7. modified the milestones: future, v0.15.0 on Aug 31, 2022
  8. yizha1 commented on Aug 31, 2022

    @yizha1

    Covered by #472

  9. shizhMSFT commented on Sep 15, 2022

    @shizhMSFT
    Contributor

    Addressed and closed by #494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions