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

ipfs: move to net/http-based implementation instead of binary-based one #1917

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

ktock
Copy link
Member

@ktock ktock commented Jan 24, 2023

By this commit, nerdctl works without relying on executing the ipfs binary (ipfs daemon still needs to be running).

@AkihiroSuda AkihiroSuda added this to the v1.2.0 milestone Jan 24, 2023
@AkihiroSuda AkihiroSuda added the area/ipfs IPFS label Jan 24, 2023
go.mod Outdated
@@ -16,7 +16,7 @@ require (
github.com/containerd/nydus-snapshotter v0.5.0
github.com/containerd/stargz-snapshotter v0.13.0
github.com/containerd/stargz-snapshotter/estargz v0.13.0
github.com/containerd/stargz-snapshotter/ipfs v0.13.1-0.20230106161838-6844dbb4c428
github.com/containerd/stargz-snapshotter/ipfs v0.13.1-0.20230123103003-7aade82f8b66
Copy link
Member

Choose a reason for hiding this comment

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

Can we have a new release

@ktock ktock force-pushed the ipfsclient branch 2 times, most recently from 6bf2d91 to cb79149 Compare January 25, 2023 11:08
go.mod Outdated
github.com/containerd/stargz-snapshotter/ipfs v0.13.1-0.20230106161838-6844dbb4c428
github.com/containerd/stargz-snapshotter v0.14.0
github.com/containerd/stargz-snapshotter/estargz v0.14.0
github.com/containerd/stargz-snapshotter/ipfs v0.14.0
Copy link
Member

Choose a reason for hiding this comment

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

The snapshotter daemon binary has to be updated too

@AkihiroSuda
Copy link
Member

Still draft?

@ktock
Copy link
Member Author

ktock commented Jan 26, 2023

Still draft?

Yes. Fixing the bug through containerd/stargz-snapshotter#1082 .

@ktock ktock force-pushed the ipfsclient branch 2 times, most recently from 404502c to 42a06ce Compare January 27, 2023 01:33
… one

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
@ktock ktock marked this pull request as ready for review January 27, 2023 02:15
}
}
imageIDs = base.Cmd("images", "--no-trunc", "-a", "-q").OutLines()
base.Cmd(append([]string{"rmi", "-f"}, imageIDs...)...).AssertOK()
}
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like that the recent nerdctl rmi strictlly requires each container's image exists in the image service and it has a logic to avoid removing images of existing containers.
This part of code didn't seem to meet this requirement and it seems to result in CI failures that report a container's corresponding image doesn't exist in the image store.
So this part tries to fix it by using nerdctl rmi.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

LGTM but a single question

@AkihiroSuda AkihiroSuda merged commit b0701ba into containerd:main Jan 27, 2023
@ktock ktock deleted the ipfsclient branch January 27, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants