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

export converter as a usable package #84

Merged
merged 3 commits into from
Dec 26, 2022
Merged

Conversation

imeoer
Copy link
Collaborator

@imeoer imeoer commented Dec 20, 2022

So that we can import the `pkg/converter` package into other
projects to integrate the image conversion ability.

This patch is no logic changes.

@imeoer imeoer force-pushed the export-converter branch 6 times, most recently from 2bd88f2 to d406d89 Compare December 22, 2022 06:05
So that we can import the `pkg/converter` package into other
projects to integrate the image conversion ability.

This patch is no logic changes.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
Simplify the content.Provider interface, so that it can
be implemented by other implementations.

This patch is no logic changes.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
So that we can convert `localhost:5000/busybox` reference (with no tag) to
`localhost:5000/busybox:latest` (tagged) automatically.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
imeoer added a commit to imeoer/image-service that referenced this pull request Dec 23, 2022
Refactor converter workflow using the converter package in
acceld project:

goharbor/acceleration-service#84

This allows nydusify to reuse acceld/snapshotter codes and
to convert layers concurrently, as well as to support the
zran conversion later.

This patch causes nydusify to rely on the containerd daemon
service, we will remove this restriction in the next commit.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
@imeoer imeoer changed the title [WIP] export converter as a usable package export converter as a usable package Dec 23, 2022
if err != nil {
return errors.Wrap(err, "convert image")
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to migrate to the new artifact reference spec, the annotations defined here are unnecessary anymore.

@imeoer imeoer merged commit 8f02a5f into goharbor:main Dec 26, 2022
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