Ask HN: Docker, Vagrant? What's your dev environment setup look like?

https://news.ycombinator.com/item?id=13804459
by andreygrehov • 9 years ago
2 2 9 years ago

I know this has been discussed a lot, but things change rapidly.

I currently use a combination of Vagrant + local services, that I manually run when required. Some other people in the team use Docker, that I personally haven't touched for quite a while. I'm looking to standardize the dev setup in our organization and curious what are the best practices in 2017. There are a few goals I pursue:

- an easy way to spin up the entire infrastructure locally (say for new hires);

- an easy way to share new services with the team;

- the environment should mimic staging/production as much as possible.

I'm leaning towards a Vagrant VM + Docker containers inside of it. In this case we can share a single Vagrantfile across the team, which to me solves the first two goals. Running multiple containers in the VM solves the third goal.

I sometimes hear that Vagrant is a useless layer in this setup. But I'm not sure.

Are there some best practices today? What's your setup looks like?

P.S. We use Chef to manage non-local environments. Could be nice to have a single tool for all environments (local, staging, prod, etc.), but I'm not a dev-ops, not sure if that's a handy practice.

Edit: formatting.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com