Skip to content

OCI-archive multi-manifest support POC#1677

Closed
mtrmac wants to merge 17 commits intocontainers:mainfrom
mtrmac:multi-manifest-poc
Closed

OCI-archive multi-manifest support POC#1677
mtrmac wants to merge 17 commits intocontainers:mainfrom
mtrmac:multi-manifest-poc

Conversation

@mtrmac
Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac commented Oct 6, 2022

This is #1381 updated to merge on top of current main, + an attempt to resolve review comments, only to have something to try in c/common.

⚠️ Absolutely untested in practice.

QiWang19 and others added 17 commits July 12, 2022 13:13
Add reader/writer with helpers to allow podman save/load multi oci-archive images.
Allow read oci-archive using source_index to point to the index from oci-archive manifest.
Also reimplement ociArchiveImage{Source,Destination} to support this.

Signed-off-by: Qi Wang <qiwan@redhat.com>
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
…nto multi-manifest-poc

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
It's unclear what it was intended for, and right now it results in
awkwardly worded error messages. Assuming this exists just to minimize
duplication in error text, just duplicate (the fixed version) of that error text.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Don't get a layout reference we are not going to use.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Eliminate an unnecessary "d" variable.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
to be more similar to docker/internal/tarfile.Reader.ChooseManifestItem:
- Move non-error paths to the non-indented main flow
- Prefer situations with image specified to the no-data default

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... and explicitly handle an impossible situation

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
We are going to use it in LoadManifestDescriptorWithContext.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
…rchive.Reader

... and drop the now redundant untar code.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
mtrmac added a commit to mtrmac/common that referenced this pull request Oct 6, 2022
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac marked this pull request as draft October 6, 2022 21:41
@mtrmac
Copy link
Copy Markdown
Collaborator Author

mtrmac commented Oct 6, 2022

See #1381 (comment) .

@mtrmac mtrmac added the kind/feature A request for, or a PR adding, new functionality label Dec 7, 2022
@mtrmac mtrmac mentioned this pull request Jul 21, 2023
mtrmac added a commit to mtrmac/image that referenced this pull request Sep 10, 2024
Port all tests from containers#1677 ,
and see what else!

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
mtrmac added a commit to mtrmac/image that referenced this pull request Sep 24, 2024
Port all tests from containers#1677 ,
and see what else!

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
mtrmac added a commit to mtrmac/image that referenced this pull request Oct 2, 2024
Port all tests from containers#1677 ,
and see what else!

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac mentioned this pull request Dec 3, 2024
@jankaluza
Copy link
Copy Markdown
Member

Hi, and thank you for your contribution!

We’ve recently migrated this repository into a new monorepo: containers/container-libs along with other repositories

As part of this migration, this repository is no longer accepting new Pull-Requests and therefore this Pull-Request is being closed.

Thank you very much for your contribution. We would appreciate your continued help in migrating this PR to the new container-libs repository. Please let us know if you are facing any issues.

You can read more about the migration and the reasoning behind it in our blog post: Upcoming migration of three containers repositories to monorepo.

Thanks again for your work and for supporting the containers ecosystem!

@jankaluza jankaluza closed this Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature A request for, or a PR adding, new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants