-
Notifications
You must be signed in to change notification settings - Fork 4
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
Defining the diffID Generation Order in the Model Spec #22
Comments
Generating diffIDs in alphabetical order by file name is a simple solution. |
I think the main issue is using the |
I'm not sure I'm following here -- could you perhaps share an example of the problem? DiffIDs in my understanding refer to something very specific (which only really applies to container images, not artifacts). Are we talking about the order of layers in the manifest? |
Agreed.... I haven’t watched the meeting recording yet. Did we conclude that we must use application/vnd.oci.image.config.v1+json? |
I think he might be referring to the |
If the media type is |
After thinking for several days, I think I now understand what @gaius-qi meant. The 'order' here seems to refer to the sequence of items in the rootfs.diff_ids array. The following quote from the
@gaius-qi wants the implementations (currently @gaius-qi please correct me if Im wrong. Holp this helps. |
Model Spec
uses files as layers and image layers have a sequential relationship, it should define a fixed order for generatingdiffIDs
of files within a directory.If use
application/vnd.oci.image.config.v1+json
as config media type now,Model Spec
should consider how to define the generation logic of diffIDs to preventcontainerd
from generating different snapshots.If use
application/vnd.cnai.model.config.v1+json
as config media type, the definition of diffIDs can be ignored, refer to #19 (comment).The text was updated successfully, but these errors were encountered: