-
Notifications
You must be signed in to change notification settings - Fork 40
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
spec is incompatible with some registries and standard CLI tools #208
Comments
While these images are OCI images, they're not quite docker images. The WASM images also have some unique challenges of their own, for example determining which runtimes are currently compatible with a given image. These and other problems are what we're trying to solve for with webassemblyhub.io - giving users a place dedicated to WASM images specifically. Happy to hop on a call to discuss further! |
I think we're talking about different things here. In my opinion, the biggest advantage to using an OCI format is the compatiblity with existing tooling like registries and CLI tools. Due to the usage of custom mediaTypes, this compatibility is not given. We cannot expect external vendors to support any arbitrary mediaType there could be in an OCI manifest. At the same time, I don't see a need for these custom mediaTypes, as the required data can be packaged in a standards-compliant mediaType as well (ie a tarball) |
wasme containers cannot be pulled/pushed by standard tooling such as
docker
orpodman
:Also, even if using the
wasme
CLI, images cannot be pushed to AWS ECR (see #129) or to quay.io:$ wasme push quay.io/dgrimm/test:latest INFO[0000] Pushing image quay.io/dgrimm/test:latest Error: All attempts fail: #1: oras push failed: failed commit on ref "manifest-sha256:abc3813ff7d5af3ff5dc06bbd12b0d4b9501d09cd06e106140678c212c714248": unexpected status: 415 UNSUPPORTED MEDIA TYPE
This seems to be caused by the custom mediaTypes used in the OCI manifest spec.
Do we really count on these vendors to implement support for the custom mediaTypes in the spec? Why not use existing mediaTypes and labels to package the information required for extensions? That would allow users to stick with their CLI tools (and standard Dockerfiles), and push to the registries they already use, with no interoperability issues.
The text was updated successfully, but these errors were encountered: