Add Standalone SOCI Image Convert mode for SOCI index creation using disk based OCI Layouts without containerd#1881
Merged
sondavidb merged 1 commit intoMar 5, 2026
Conversation
sondavidb
reviewed
Mar 4, 2026
Contributor
sondavidb
left a comment
There was a problem hiding this comment.
Generally LGTM, some small things I'd like looked at before approving.
Thanks!
Signed-off-by: Praful Gupta <prafulgupta6@gmail.com>
22f933e to
81f9f1b
Compare
Contributor
Author
|
Hey @sondavidb , |
Contributor
|
Sure. I'll take a look tomorrow. Will run CI in the meantime. |
sondavidb
approved these changes
Mar 5, 2026
Shubhranshu153
approved these changes
Mar 5, 2026
Contributor
|
LGTM. Thanks for working on it. |
Contributor
Author
|
Thanks for the review 🚀 I'll followup with the doc update PR once this is merged 😄 (also would appreciate a release for this feature so we can start consuming it internally) |
Contributor
Sure, I can bring this up and see when we can get a release out. |
This was referenced Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Closes #1057
Description of changes:
This PR adds standalone mode to the
soci convertcommand, enabling SOCI index creation without requiring a running containerd daemon. This is particularly useful for CI/CD pipelines and environments where running containerd is impractical without privileged mode.Key Features
--standalone): Reads an OCI image layout (tar or directory) from disk, creates SOCI indexes, and writes the converted image back to disk--format): Supportsoci-archive(tar, default) andoci-dir(directory) output formats--format oci-archive/oci-dir), Skopeo (copy oci-archive:/oci:), and crane using--format ocifor directory output.Usage Example
Tar output (oci-archive, default):
Directory output (oci-dir):
Testing performed:
- Basic conversion with validation (all permutation of input (tar/dir) and output (tar/dir)
- Specific platform selection (--platform)
- Error handling (nonexistent images, missing arguments, wrong output format)
- Idempotency verification
lima sudo GO_TEST_FLAGS="-run TestStandalone -count=1" make integrationlima sudo make testStandalone Convert with oci-archive output -
Standalone Convert with oci-dir output -
Integration tests -
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.