TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Layerfiles, Dockerfiles that build VMs

10 点作者 colinchartier超过 2 年前
Hey HN,<p>I’m excited to show you Layerfiles, an OSS project which gives you a single binary to build microvms using a syntax that looks like a Dockerfile.<p>The project is currently in alpha, but it’s already able to build a VM on Linux hosts.<p>MicroVMs are like containers, but have several upsides:<p>- They can run on any OS, so you don’t need to run a wrapper VM like Docker Desktop does.<p>- They also let you keep processes running during a build (RUN BACKGROUND), so you can run a webserver or build server in the background.<p>- You can generally run them rootless without any extra configuration.<p>Here’s an example Layerfile you can try:<p>FROM vm&#x2F;ubuntu:22.04<p>RUN BACKGROUND python3 -m http.server 8000<p>RUN curl localhost:8000<p>COPY . .<p>RUN ls<p>I&#x27;d love any comments or feedback! I’d also appreciate if someone could try building it for Mac or Windows.

4 条评论

danielmogilny超过 2 年前
Interesting stuff. We used singularity containers at Stratum in the past. What&#x27;s the similarities&#x2F;differences and advantages between them?
colinchartier超过 2 年前
GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;layerfiles" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;layerfiles</a><p>Single binary download (linux x64 only for now): <a href="https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;assets&#x2F;raw&#x2F;main&#x2F;lf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;assets&#x2F;raw&#x2F;main&#x2F;lf</a>
allen20008超过 2 年前
What are the main use cases for these? Like local development?
评论 #33058615 未加载
lucypyli超过 2 年前
How is this different from Kata containers or the other microvm-based Docker frameworks?
评论 #33058914 未加载