Skip to content
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

Support a shared cache for the OCI blobs, used in the LXC OCI template #134

Merged

Conversation

ariel-miculas
Copy link
Collaborator

This PR addresses two main issues:

and simplifies the code by using the recent additions from the ocidir-rs repo.

…I repos

Use open_with_external_blobs which adds support for external blobs,
added in ocidir-rs [1].
We'll use the latest version of ocidir-rs from github and we'll switch
to version 0.4.0 when it gets released.

Closes project-machine#131

[1] containers/ocidir-rs#22

Signed-off-by: Ariel Miculas-Trif <[email protected]>
Now that [1] was merged, we can use find_manifest_descriptor_with_tag
and remove copy-pasted code from ocidir-rs.

[1] containers/ocidir-rs#28

Signed-off-by: Ariel Miculas-Trif <[email protected]>
Now that [1] was merged into ocidir-rs, we can use the
new_empty_manifest function and we'll get a valid OCI image with an
empty config descriptor.

[1] containers/ocidir-rs#31

Signed-off-by: Ariel Miculas-Trif <[email protected]>
The final size of the blobs should be stored in the descriptors instead
of the uncompressed size. Make sure we have a valid oci image by calling
the fsck function from ocidir-rs.

Closes project-machine#55

Signed-off-by: Ariel Miculas-Trif <[email protected]>
@ariel-miculas
Copy link
Collaborator Author

@hallyn I see that Tycho approved this PR, but it shows I still need reviews. Is that because he's not a member of project-machine?

@hallyn hallyn merged commit 40d0371 into project-machine:master Oct 15, 2024
1 check passed
@hallyn
Copy link
Contributor

hallyn commented Oct 15, 2024

not sure. Can't apparently tell or modify that from the app. Will check from personal laptop later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants