Skip to content

feat: pkg/ociplatform for OCI platform comparison#105

Merged
dtrudg merged 1 commit intosylabs:mainfrom
dtrudg:ociplatform
Jan 23, 2025
Merged

feat: pkg/ociplatform for OCI platform comparison#105
dtrudg merged 1 commit intosylabs:mainfrom
dtrudg:ociplatform

Conversation

@dtrudg
Copy link
Member

@dtrudg dtrudg commented Jan 23, 2025

OCI platform handling in ggcr is sometimes incomplete / naive. For example, handling of the variant is not consistent with the normalisation rules that are applied in e.g. Docker, containerd etc.

Add functions in a new pkg/ociplatform package that perform platform comparison using github.com/containerd/platforms, with translation through ggcr <-> spec-go types as necessary.

OCI platform handling in ggcr is sometimes incomplete / naive. For
example, handling of the variant is not consistent with the
normalisation rules that are applied in e.g. Docker, containerd etc.

Add functions in a new `pkg/ociplatform` package that perform platform
comparison using `github.com/containerd/platforms`, with translation
through ggcr <-> spec-go types as necessary.
@dtrudg dtrudg self-assigned this Jan 23, 2025
@dtrudg dtrudg requested review from tri-adam and wobito January 23, 2025 10:01
@dtrudg dtrudg merged commit 49d96fc into sylabs:main Jan 23, 2025
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.

2 participants