Skip to content

Define generic directory heirarchy for content addressable objects #140

Closed

Description

@stevvooe

#38, #23 and #94 outlined support for transporting content addressable OCI image objects in a tar layer. Tar may not be a desirable transport in all cases. We need to ensure that we have a generic layout that can work in several situations:

  1. Directory layout works in zipfile.
  2. Directory layout works on most filesystems.
  3. Works over ssh or other path oriented platforms.

A CAS image layout has the following properties:

  1. Only objects are files and directories.
  2. Metadata is not preserved.
  3. Atomic assembly may be undefined (writes).

This issue can be closed when we are confident that the image layout specification is sufficiently generic:

  • Confirm that current image layout doesn't require backwards compatible changes to support this. (pre-1.0)
  • Confirm shipping of content over the following:
    • Plain old directory on windows and unix platform
    • Translating between zip and tar is lossless.
  • Consider directory layout as a possible caching target

My guess is that we already meet much of this criteria. Footwork will be in cross-platform confirmation.

Activity

  1. vbatts commented on Jun 15, 2016

    @vbatts
    Member

    What issues with the image-layout are you thinking regarding zip files Or
    ar or etc?

    On Wed, Jun 15, 2016, 18:59 Stephen Day [email protected] wrote:

    #38 #38, #23
    #23 and #94
    #94 outlined support
    for transporting content addressable OCI image objects in a tar layer. Tar
    may not be a desirable transport in all cases. We need to ensure that we
    have a generic layout that can work in several situations:

    1. Directory layout works in zipfile.
    2. Directory layout works on most filesystems.
    3. Works over ssh or other path oriented platforms.

    A CAS image layout has the following properties:

    1. Only objects are files and directories.
    2. Metadata is not preserved.
    3. Atomic assembly may be undefined (writes).

    This issue can be closed when we are confident that the image layout
    specification is sufficiently generic:

    • Confirm that current image layout doesn't require backwards
      compatible changes to support this.
    • Confirm shipping of content over the following:
      • Plain old directory on windows and unix platform
      • Translating between zip and tar is lossless.
    • Consider directory layout as a possible caching target

    My guess is that we already meet much of this criteria. Footwork will be
    in cross-platform confirmation.

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    #140, or mute the
    thread
    https://github.com/notifications/unsubscribe/AAEF6QQHUn7xfBbt_jMl9OC49A01tv1Wks5qMIO_gaJpZM4I24FU
    .

  2. stevvooe commented on Jun 15, 2016

    @stevvooe
    ContributorAuthor

    What issues with the image-layout are you thinking regarding zip files Or
    ar or etc?

    My guess is that there are none. We don't require metadata, links or any other special features.

    I hadn't consider ar.

  3. wking commented on Jun 15, 2016

    @wking
    Contributor

    On Wed, Jun 15, 2016 at 03:59:11PM -0700, Stephen Day wrote:

    #38, #23 and #94 outlined support for transporting content
    addressable OCI image objects in a tar layer. Tar may not be a
    desirable transport in all cases. We need to ensure that we have a
    generic layout that can work in several situations:

    1. Directory layout works in zipfile.
    2. Directory layout works on most filesystems.
    3. Works over ssh or other path oriented platforms.

    #94 does not single out tar and explicily mentions zip, NFS, HTTP,
    FTP, and rsync 1. I don't see any problems to be solved by this
    issue, but it would be nice to replace image/walker with a generic CAS
    API so we could more cleanly plug in backends for these various
    transport mechanisms and file formats.

  4. philips commented on Aug 24, 2016

    @philips
    Contributor

    In the OCI f2f we discussed that if you want to share blobs/ between multiple layouts that is totally reasonable. I will close this out for now.

    🎤 💧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions