Git Product home page Git Product logo

Comments (8)

imeoer avatar imeoer commented on June 29, 2024 1

An alternative is to use the static inspect tool, for example:

$ nydus-image inspect --bootstrap ~/bootstrap -R blobs                                                                                                                     
[{"blob_id":"x","compressed_size":0,"decompressed_size":0,"readahead_offset":0,"readahead_size":0}]

from nydus.

imeoer avatar imeoer commented on June 29, 2024 1

@luodw Ok, I see your point, but I don't think it's necessary to have the blob list as a layer entity, if we do that, the snapshotter needs to handle it additionally, which would be a more complicated change for nydus format.

from nydus.

bergwolf avatar bergwolf commented on June 29, 2024

Can we have a replacement that still enables us to get the blob list statically? It is a bit heavy to run nydusd just to get the blob list. I understand that nydus-snapshotter can do it via nydusd, I'm more thinking about static analysis of nydus images.

from nydus.

luodw avatar luodw commented on June 29, 2024

Maybe we can add another blob layer xxx, it contains blob id list and has annotation "containerd.io/snapshot/nydus-blob-ids=true". When create container, snapshot find nydus meta layer and blob_ids layer in the meantime
in func findNydusMetaLayer so as to reduse find overhead. So, we can read blob id list in the right snapshot.

from nydus.

imeoer avatar imeoer commented on June 29, 2024

@luodw The blob layer should exist on manifest if using the registry as blob storage backend, so the blobs annotation is mainly used on referencing the blobs stored on another storage backend (for example oss).

from nydus.

luodw avatar luodw commented on June 29, 2024

@imeoer I known, I mean we can add blob ids_list layer to manifest just like meta layer. So it can also download from storage backend and unpack.

from nydus.

changweige avatar changweige commented on June 29, 2024

@imeoer Shall we close this now since the label has been dropped from nydus image and related PR has been merged

from nydus.

imeoer avatar imeoer commented on June 29, 2024

@changweige Ok, thanks for solving the issue.

from nydus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.