-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support for buildkit, for building to containerd #9640
Comments
The "normal" way to invoke this would be The above goes for when not having a dockerd running, but only using stand-alone containerd. The idea would be to use the containerd worker for buildkitd, and to use the containerd output...
The daemon itself could be socket-activated, the same that is planned for docker and podman. |
Ubuntu focal amd64 package available here: https://bintray.com/afbjorklund/buildkit Includes |
It seems like the support for ssh hosts is not fully implemented in buildctl yet. (It would have used something like: But it is also possible to tunnel the unix socket over ssh explicitly, meanwhile.
|
See moby/buildkit#1025 for remote building HOWTO Also KubeCon + CloudNativeCon China 2019, about There is some info about buildah here: buildah_multi_stage.sh |
So far I have only done basic packaging of the binaries. It needs to have for instance a systemd service as well |
The binaries (buildctl and buildkitd) are now included with minikube. However, user will have to do all the ssh commands themselves. |
Example session:
(ssh and flags)
With a local Dockerfile, also needs: For more information, see: https://github.com/moby/buildkit No, this is not very user friendly (i.e. But the suggestion is to have other commands, such as These are low-level commands, and as such they have low-level interfaces. Like There is some ongoing work, in order to "fix" this: https://github.com/AkihiroSuda/nerdctl |
Currently we support either "docker" or "podman" for building, either locally on the VM or remotely through the "env" commands.
https://minikube.sigs.k8s.io/docs/handbook/pushing/
When using the containerd container runtime, we currently don't have any support for building images - only for loading them...
We could include
buildkitd
, in order to provide that ?It is used in the same way as docker or podman (through ssh), but with the
buildctl
client.Similar to when using containerd, the syntax is somewhat more low-level than the other tools:
https://github.com/moby/buildkit
The text was updated successfully, but these errors were encountered: