Skip to content

Oras cache saves the blob, updated the index.json, but fails to retrieve from cache in a second pull attempt #1504

Closed Answered by flavioschuindt
flavioschuindt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Wwwsylvia and @qweeah, apologies for the delay here, but would like to give a quick update. Thanks for mentioning the -debug flag, I was able to enable it inside my TypeScript oras module and I found the root cause: This is not related to oras download at all. Instead, what I learned is that oras does two things: download and extract into the file system. The download part is ok, but what actually takes time is the extraction and this makes sense because my OCI package is a TS application with bunch of node modules backed by NFS. This means that oras is extracting into NFS file by file and this is an expensive operation. There are more than 12k files in the node_modules folder:

We ca…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by flavioschuindt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants