containerd / continuity

A transport-agnostic, filesystem metadata manifest system
https://containerd.io
Apache License 2.0
145 stars 67 forks source link

[Request] media type? #46

Open AkihiroSuda opened 7 years ago

AkihiroSuda commented 7 years ago

Please consider defining a media type? e.g. application/vnd.stevvooe.continuity.manifest.v1+pb (But I'm not sure what is the de facto standard of a suffix for protobuf. Seems undefined in RFC https://en.wikipedia.org/wiki/Media_type#Suffix )

stevvooe commented 7 years ago

@AkihiroSuda I am not sure if I want to see my name in a mediatype. :stuck_out_tongue:

application/vnd.continuity.manifest.v1+pb

That looks okay to me.

@dmcgowan Any opinions here?

dmcgowan commented 7 years ago

application/vnd.continuity.manifest.v1+pb is fine by me. Not sure we are in a point where we want to nail down a media type version though.

@AkihiroSuda where do you see this media type as being used?

stevvooe commented 7 years ago

Not sure we are in a point where we want to nail down a media type version though.

More like application/vnd.continuity.manifest.v0+pb or application/vnd.continuity.manifest.vthisisgoingtobreak+pb.

AkihiroSuda commented 7 years ago

+1 for application/vnd.continuity.manifest.v0+pb.

where do you see this media type as being used?

I'm trying to use continuity as an OCI image layer that can be content-addressable in the granularity of file. So I needed media type information.

My WIP idea is available at https://github.com/AkihiroSuda/filegrain/tree/v20170217 .

I think you have considered something similar to this previously. I'd appreciate if you can give me your feedback. 😃

stevvooe commented 7 years ago

@AkihiroSuda This was always an intended eventual application of continuity. The main benefit here is the ability to share data between root filesystems.

In general, filegrain looks interesting. I would recommend, as I said in response to your proposal, to move the continuity manifest further down towards the configuration and represent the file requirements in a new dependencies field on manifest to avoid having the distribution stack to understand continuity.