Show HN: 在 Node.js 内部运行 Linux

1作者: ridruejo10 个月前
我们刚刚发布了 Endor 的 v0.2 版本,这是一款用于创建在 Node 运行时内运行 Linux 的开发沙盒的工具。只需一个简单的命令,例如:<p>&#x27;npx -y u&#x2F;endorhq&#x2F;cli@latest run alpine --shell --allow-net&#x27;<p>你就可以在 4-5 秒内获得一个具有网络功能的、功能齐全的 32 位 Alpine Linux 实例。它是短暂的且沙盒化的,因此一旦你按下 Ctrl-C,一切都将消失。非常适合快速测试东西。它基于 Node 内部的 Wasm 引擎,因此运行速度比原生慢得多,但可以使用。<p>更多信息请参阅我们的公告博客文章:<a href="https:&#x2F;&#x2F;endor.dev&#x2F;blog&#x2F;endor-0-2" rel="nofollow">https:&#x2F;&#x2F;endor.dev&#x2F;blog&#x2F;endor-0-2</a>
查看原文
We just released v0.2 of Endor, our tool for creating dev sandboxes that run Linux inside the Node runtime. With a simple command like<p>&#x27;npx -y u&#x2F;endorhq&#x2F;cli@latest run alpine --shell --allow-net&#x27;<p>you can have a fully functional 32bit Alpine Linux instance with networking, within 4-5s. It is ephemeral and sandboxed, so as soon as you press Ctrl-C, everything is gone. Great for quickly testing stuff. It is based on the Wasm engine inside Node, so it runs way slower than native, but usable<p>More info in our announcement blog post: <a href="https:&#x2F;&#x2F;endor.dev&#x2F;blog&#x2F;endor-0-2" rel="nofollow">https:&#x2F;&#x2F;endor.dev&#x2F;blog&#x2F;endor-0-2</a>