r/sre • u/myoutlet101 • Apr 11 '21
How to create something like https://www.katacoda.com/
How to create some thing like https://www.katacoda.com/
What would it require at infrastructure level and application/front end level.
Any suggestions?
0
Apr 11 '21
[deleted]
-7
u/myoutlet101 Apr 11 '21
how to display the remote terminal in browser/web application?
7
u/o0lemon_pie0o Apr 11 '21
I don’t intend to be unkind, but I do not think anyone is going to be able to help answer a question that general.
I would encourage you to search up possible answers to this question, read the project documentation, try getting things running on you local machine, and post specific questions about specific issues into the relevant channels.
2
u/_samux_ Apr 12 '21 edited Apr 12 '21
javascript library that interface to a normal terminal inside the docker container. katakoda is an npm
4
u/[deleted] Apr 11 '21
You're looking for some mechanism for isolating workloads (i.e. terminals for your users). Docker will probably be the first thing that you will think of, but the default runtime is inherently unsafe. There are safe runtimes like gVisor, kata-containers, and if all fails then podman + rootless containers may be something to look at.
Ideally though, you will probably want to look at firecracker, kata-containers, Ignite. If you can narrow down your requirements in terms of languages and such, wasm through WASI is interesting. There's also the possibility of using automating the creation of tiny VM's with a very small surface (e.g. QEMU, KVM, Xen). FreeBSD has jails.
If you want to play around with isolating workloads, see https://www.nomadproject.io/docs/drivers
For the frontend, you probably want React or Vue communicating through gRPC or WebSockets with the backend.