有很多网站提供云编码,例如Cloud9
、repl.it
。他们必须使用服务器虚拟化技术。例如,Cloud9 的工作区由 Docker Ubuntu 容器提供支持。每个工作区都是一个完全独立的虚拟机 ( see details )。
我想知道是否还有其他技术可以制作沙盒环境。例如,RunKit似乎有一个简单的解决方案:
It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm's 300,000+ packages are pre-installed, so try it out
有人知道 RunKit 是如何实现这一目标的吗?
最佳答案
您可以在“Tonic is now RunKit - A Part of Stripe! ”中查看更多内容(请参阅 discussion )
we attacked the problem of time traveling debugging not at the application level, but directly on the OS by using the bleeding edge virtualization tools of CRIU on top of Docker.
详细信息在“Time Traveling in Node.js Notebooks”
we were able to take a different approach thanks to an ambitious open source project called CRIU (which stands for checkpoint and restore in user space).
The name says it all. CRIU aims to give you the same checkpointing capability for a process tree that virtual machines give you for an entire computer.
This is no small task: CRIU incorporates a lot of lessons learned from earlier attempts at similar functionality, and years of discussion and work with the Linux kernel team. The most common use case of CRIU is to allow migrating containers from one computer to anotherThe next step was to get CRIU working well with Docker
该设置的一部分是 being opened-source ,如本HackerNews feed中所述.
关于node.js - RunKit 如何制作虚拟服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46019572/