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

Pushing an image manifest JSON [feature request] #238

Closed
sjackman opened this issue Mar 11, 2021 · 7 comments
Closed

Pushing an image manifest JSON [feature request] #238

sjackman opened this issue Mar 11, 2021 · 7 comments
Milestone

Comments

@sjackman
Copy link

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.

@Silvanoc
Copy link

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?

@sjackman
Copy link
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

@SteveLasker
Copy link
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.

@sjackman
Copy link
Author

sjackman commented Apr 7, 2021

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.

@shizhMSFT shizhMSFT added this to the future milestone May 7, 2022
@sajayantony
Copy link
Contributor

Manifest push discussed in #459 should cover this.

@yizha1 yizha1 modified the milestones: future, v0.15.0 Aug 31, 2022
@yizha1
Copy link

yizha1 commented Aug 31, 2022

Covered by #472

@shizhMSFT
Copy link
Contributor

shizhMSFT commented Sep 15, 2022

Addressed and closed by #494

@shizhMSFT shizhMSFT moved this to Done in ORAS-Planning Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants