node.js - RunKit 如何制作虚拟服务器?

标签 node.js docker cloud cloud9 virtual-server

有很多网站提供云编码,例如Cloud9repl.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 another

The 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/

相关文章:

javascript - javascript 上的注释结构是什么?

node.js - 无法更新nodejs ubuntu 15.01版本

amazon-web-services - 如何在 EC2 上的 docker 内使用 AWS 凭证运行命令?

Javascript Promises - 在 for 循环之前保存项目

java - 分配下一个可用 VM 的有效方法

android - Google Cloud Messaging 是否可以从 Android 通知中心删除消息?

javascript - Expressjs/AngularJS : Error after implementing req-flash

使用knex传输MYSQL数据库

docker - dockerd关闭时,docker日志记录驱动程序能否继续工作? (启用实时还原)

docker - 撤消 sudo usermod -a -G docker $USER