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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is Vagrant Dead?

17 点作者 ingvul将近 4 年前
As a solo developer of a tiny Saas, I find Vagrant indispensable in my day-to-day tasks. I use it mainly as a tool to reproduce cloud infrastructure locally. As you can imagine, my cloud infrastructure is really tiny and so it&#x27;s feasible to reproduce it locally on my laptop. I also use Docker extensively, but I don&#x27;t think Docker replaces Vagrant at all (at least for my use cases).<p>While I could use a separate private cloud just for development purposes (and effectively use my laptop as a &quot;dumb&quot; terminal), I find it irritating because:<p>- It&#x27;s not free. I have to pay for it<p>- My laptop is powerful enough to emulate my production infra<p>- It just feels wrong to me. I like the idea of using my own machine to develop my application and my infrastructure, and spin up&#x2F;tear down VMs as many times as needed without having to worry about price<p>Do you still use Vagrant or similar tools to spin up VMs locally?

8 条评论

AkshitGarg将近 4 年前
I just checked their GitHub [0], and they seem to have a release on 27th July, 2021. Also it looks like they are re-writing vagrant 3.0 using go [1]<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;vagrant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;vagrant</a><p>[1]: <a href="https:&#x2F;&#x2F;www.hashicorp.com&#x2F;blog&#x2F;toward-vagrant-3-0" rel="nofollow">https:&#x2F;&#x2F;www.hashicorp.com&#x2F;blog&#x2F;toward-vagrant-3-0</a>
aranchelk将近 4 年前
For local development I used to use Vagrant, but now I use Docker almost exclusively, primarily because of how fast it starts and stops containers. Also I find the config format easier to work with.<p>I still use Vagrant in those rare instances when Docker is not viable. Sometimes I really do need full OS instance, or need to run something other than Linux, or I just want normal bridged network interfaces.
ocdtrekkie将近 4 年前
IMHO Vagrant is &quot;stable&quot;. Possibly boring. (A good thing for tools, generally.) But it works well.<p>Why would you ask if it&#x27;s dead?
评论 #28180522 未加载
sergiomattei将近 4 年前
About the point of using a dumb terminal: I tried it with a cheap DO VM, and came to the conclusion that they&#x27;re woefully underpowered for any serious work compared to the laptop&#x27;s processor.<p>The cost to performance wasn&#x27;t there: just using my laptop for development was cheaper and more performant than renting a VM monthly for cloud development.
stephenr将近 4 年前
Yes, I still use vagrant, on pretty much every project I work on - both my own&#x2F;my companies, and client projects.<p>I&#x27;ll give two examples of how I use it:<p>I (or technically, my company) produce a number of tools for managing various common aspects of a Linux web application stack.<p>For each tool, there&#x27;s a regular Vagrant VM setup from the root of the repo, which is used for basic testing, building, running tests etc - essentially this is just to achieve a known state, and to abstract the environment from whatever OS it&#x27;s running on. Some of the tools either specifically require, or support, &#x27;cluster&#x27; mode, where some kind of state or configuration is managed across multiple machines. For these tools, there&#x27;s an additional multi-machine Vagrantfile (generally just in a subdir) which sets up a mini cluster of 2 or 3 nodes, and allows testing of the sync&#x2F;replication&#x2F;what have you.<p>For a client I work with right now, we again, use it in two ways, achieving two separate goals:<p>The primary, day to day use, is providing a completely self-contained local dev environment for the webapp. This setup is used for anyone doing dev on the app - backend, frontend, whatever.<p>The less common, but still very necessary use, is similar to what you mentioned, multi-machine infra testing. The infra for this client is all provisioned using a shell script that works on a system of roles and environments. To test this, the repo with the setup has a vagrant config that matches the production environment.<p>Additionally, this repo also has a packer config, which builds a custom base box, for the aforementioned &quot;day to day dev&quot; Vagrant env, using the same setup script.<p>As mentioned by @ocdtrekkie, Vagrant is relatively stable. It&#x27;ll be interesting to see where 3.0 takes things, but right now it&#x27;s a pretty reliable tool, that just gets the job done.<p>Edit: typo (anything -&gt; anyone)
cpach超过 3 年前
I prefer Docker. I believe it’s a better and more convenient abstraction model.<p>But not all systems are a good fit for Docker. When I need an actual VM, then Vagrant is a godsend.
评论 #28188542 未加载
rthomas6将近 4 年前
Is this something people use Nix for?
aayala将近 4 年前
Docker
评论 #28180538 未加载