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

replace complex manifest-tool with straight go-containerregistry #3935

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Jun 15, 2023

- What I did

We have a PushManifest() function, which finds all appropriate arch-specific images in the registry and ensures they are in the multi-arch index. This function was a wrapper around manifest-tool, which itself uses containerd/remote. It was having authentication issues and was complex to debug, not to mention that it depended on pulling in containerd dependencies.

Replaced it with straight go-containerregistry, which we use anyways.

The final binary is a bit smaller, maybe 600K, but the key is that it works better, and if it has issues, it is far easier to debug.

- How I did it

Rewrote PushManifest().

- How to verify it

CI. And of course I ran tests.

- Description for the changelog

Simpler index to registry implementation

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch merged commit 7164b2c into linuxkit:master Jun 16, 2023
22 checks passed
@deitch deitch deleted the ggcr-for-manifest branch June 16, 2023 10:21
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.

None yet

2 participants