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

produce progress events polling ctrd's content.Store #12

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Jul 8, 2022

- What I did
render docker pull progress

- How I did it
poll content.Store for active pulls and pushProgress data according to moby's API

@ndeloof ndeloof requested review from rumpl and vvoland July 8, 2022 13:31
daemon/containerd/service.go Outdated Show resolved Hide resolved
daemon/containerd/service.go Outdated Show resolved Hide resolved
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@thaJeztah
Copy link
Collaborator

When upstreaming:

combine with one or more of;

Comment on lines +98 to +109
unpacked, err := img.IsUnpacked(ctx, containerd.DefaultSnapshotter)
if err != nil {
return err
}

if !unpacked {
if err := img.Unpack(ctx, containerd.DefaultSnapshotter); err != nil {
return err
}
}
stop <- struct{}{}
<-stop
Copy link
Collaborator

Choose a reason for hiding this comment

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

Heads up: this code is removed in a later PR, so (perhaps?) can be squashed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants