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

set up containerd to run slight #97

Closed
danbugs opened this issue Jul 20, 2022 · 11 comments
Closed

set up containerd to run slight #97

danbugs opened this issue Jul 20, 2022 · 11 comments
Assignees
Labels
📐 proposal A concept/proposition, no design work has been done yet
Milestone

Comments

@danbugs
Copy link
Collaborator

danbugs commented Jul 20, 2022

No description provided.

@danbugs danbugs added the 📐 proposal A concept/proposition, no design work has been done yet label Jul 20, 2022
@danbugs danbugs added this to the July Milestone milestone Jul 20, 2022
@Mossaka Mossaka removed this from the July Milestone milestone Jul 21, 2022
@danbugs danbugs added this to the Aug Milestone milestone Jul 21, 2022
@KaiWalter
Copy link
Contributor

@danbugs what exactly would you like to achieve with this issue? Is it just containerizing one slight workload like in https://github.com/KaiWalter/spiderlightning/blob/hosting-service-fabric/cluster/cluster-test/Dockerfile)?

@danbugs
Copy link
Collaborator Author

danbugs commented Aug 23, 2022

Hey, @KaiWalter ~ Thank you for your question. I definitely should gone back and included descriptions to issues like this once we open sourced.

That said, this issue will most likely be a contribution to:

Are you familiar with Fermyon's Spin? If you check the containerd-wasm-shims repo, you'll see we've got a shim for it that helps serve a containerized Spin app. We hope to do something similar for Slight. I hope this clarifies the scope of the issue — let me know if it doesn't!

@KaiWalter
Copy link
Contributor

Hi @danbugs, I see. That was actually, what I was talking about with @squillace 2 weeks ago: "get WASM/WASI workloads running in cluster or other environments without using OCI containers". For the moment I have to admit, that the repos you listed above are technically somewhat out of my league. So don't wait for me, please.
Anyway as I want to use my vacation time for building up some Rust muscle I will definitely munch into those.

@KaiWalter
Copy link
Contributor

KaiWalter commented Aug 24, 2022

@danbugs - After I figured out how runwasi is working, I can imagine to get slight and a module WebAssembly packaged up with a containerd-shim approach. But still using docker buildx to build the image.
@squillace - But then why? Why go to all the length to patch WebAssembly execution into containerd ecosystem? Just to then make it easier to hook it up with K8S based hosting? Wouldn't just aiming for a clustered process orchestrator like Service Fabric be the simpler approach here?
I did some preliminary tests and the only shortfall I currently see is, that SF up till now only supports Ubuntu up to 20.04 which makes patching some of the slight dependencies into the nodes somewhat hard. If we could get support for 22.04 nodes, that should be far more easier.

@squillace
Copy link
Contributor

Hi @KaiWalter was out for a few days to repower. I have only partially repowered. :-| But YES, the objective will be to have a containerd-based integration into k8s. There are several reasons.

  1. customers who need a scale-out, non-proprietary control plane have by and large standardized on k8s. As a result, to reach both hyperscale and periphery compute environments k8s will be the primary early control plane that all can use in either proprietary services or connected oss.
  2. You should expect that early services, then, use the k8s host. But as understanding increases, other "schedulers" will be not only welcomed but sought out. Fermyon is touting Hashicorp's Nomad; in Azure, you can imagine several other orchestrators or schedulers; in oss, we know of several customers researching running real time oses that schedule wasm functions because they do not have container infra.
  3. containerd seems like it's for k8s but it really isn't: it's a generic process-starting system that can be integrated easily elsewhere. As example one, docker supports docker run --runtime=io.containerd.wasmtime.v1 now and more direct work will arrive.

@squillace
Copy link
Contributor

Nonetheless, I also expect that standalone hosts like slight or spin or wasmcloud (which is its own orchestrator I note) will be popular in all areas in which k3s makes no sense as a control plane. As they should be.

@KaiWalter
Copy link
Contributor

KaiWalter commented Aug 24, 2022

@squillace thanks for the explanation - got it. This is fascinating stuff. You know I've not been doing kind of "systems programming" since early 90ies. This really strikes a chord. I will be off the grid for a few days - also unwinding a bit. I'd really like to contribute. Do you perhaps run a more tactical forum like Discord, Gitter, ...? Also Teams/microsoft.com tenant would work for me.

@squillace
Copy link
Contributor

Wait, @KaiWalter, you're on vacation but you want "tactical"? :-P

For work with slight, just post issues! everyone can see and learn, which is an advantage. For more focused issues, mail me at ralph.squillace@ .com and we'll set something up to make the vacation fun.

@KaiWalter
Copy link
Contributor

@squillace I need this to unwind - https://twitter.com/ancientitguy/status/1560892996991782913 - with all those heavy duty enterprise projects I usually do, where technological challenges are easily trivialized by the complexities on organization, process or social level.

@danbugs
Copy link
Collaborator Author

danbugs commented Aug 24, 2022

~check out slight (previously, wasi-cloud) running on a PinePhone:

video link: https://user-images.githubusercontent.com/39843321/186492047-68cf490b-1629-4113-a6dc-bb8f01bc8304.mp4

P.S. might have to click on it to zoom in or view video

@Mossaka
Copy link
Member

Mossaka commented Sep 29, 2022

Closed this issue as we move containerd related issues to https://github.com/deislabs/containerd-wasm-shims

@Mossaka Mossaka closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📐 proposal A concept/proposition, no design work has been done yet
Projects
None yet
Development

No branches or pull requests

4 participants