Project

Profile

Help

Story #3401

Updated by amacdona@redhat.com about 6 years ago

Manifest    should contain the following fields: 

 * digest: CharField(255) 
 * schema_version: IntegerField() 
 * config_blob: ForeignKey to Blob 
 * blobs: ManyToManyField('Blob', through='ManifestBlob') 
 * mediaType: ChoiceField() (application/vnd.docker.distribution.manifest.v1+json, application/vnd.docker.distribution.manifest.v2+json) 


 ManifestBlob is used to model the relationship between Manifests and Blobs 

 * blob: ForeignKey to Blob 
 * manifest: ForeignKey to Manifest 
 * mediaType: ChoiceField()  
 * size: IntegerField() 


 

 This story will be complete when CRUD is possible for Manifests (for this story, the metadata is not expected to be extracted from the file, but provided by the user in the request body.) 
 MediaType Choice for the ManifestBlob: 

 * application/vnd.docker.container.image.v1+json Container config json represented as a blob 
 * application/vnd.docker.image.rootfs.diff.tar.gzip Regular blob 
 * application/vnd.docker.image.rootfs.foreign.diff.tar.gzip Foreign blob ( we do not intend to store foreign blobs. Docker client during pull will fetch it from the remote location) 


 This story will be complete when CRUD is possible for Manifests (for this story, the metadata is not expected to be extracted from the file, but provided by the user in the request body.) 

Back