3 ms·
I'd love to learn more about the concept of JavaScript containers, but all I've got so far is several paragraphs about language supremacy (ick) and a veiled hir
by languagehacker 4y ago
I'd love to learn more about the concept of JavaScript containers, but all I've got so far is several paragraphs about language supremacy (ick) and a veiled hiring advertisement.
- bovermyer 4y agoThey don't exist yet, not fully. But what you _really_ want to look at right now is WASM as a replacement for Docker. For example: https://developer.okta.com/blog/2022/01/28/webassembly-on-kubernetes-with-rust https://developer.okta.com/blog/2022/01/28/webassembly-on-ku... https://training.linuxfoundation.org/blog/how-wasi-makes-containerization-more-efficient/ https://training.linuxfoundation.org/blog/how-wasi-makes-con...
- x3haloed 4y agoOK, after I read this, I can't stop thinking about how much I love this idea. I've been searching and searching thinking that there must be a toolset in alpha out there somewhere that I can play with. The only think I can find right now is Krustlet, which is not really what I'm looking for. I want something that I can run on my own hardware. Have you (or anyone else 'round these parts) hears of a WASM replacement for Docker in development? We're looking for a WASM runtime that can handle orchestration of multiple assemblies on the same machine, I suppose: https://www.docker.com/wp-content/uploads/2021/10/Docker-Website-2018-Diagrams-071918-V5_a-Docker-Engine-page-first-panel.png.webp https://www.docker.com/wp-content/uploads/2021/10/Docker-Web... EDIT: I found what we're looking for! Docker Engine is a container runtime. What we need is an alternate container runtime that will work with WASM. K8s-compatible options are described in the following article: https://kubernetes.io/docs/setup/production-environment/container-runtimes/ https://kubernetes.io/docs/setup/production-environment/cont... It turns out that both CRI-O and containerd can run WASM assemblies via the WasmEdge runtime in crun: CRI-O: https://wasmedge.org/book/en/kubernetes/cri/crio.html https://wasmedge.org/book/en/kubernetes/cri/crio.html containerd: https://wasmedge.org/book/en/kubernetes/cri/containerd.html https://wasmedge.org/book/en/kubernetes/cri/containerd.html And you can create WASM containers without docker hub images by controlling crun directly: https://wasmedge.org/book/en/kubernetes/container/crun.html https://wasmedge.org/book/en/kubernetes/container/crun.html