4 ms·
Terrific concept. What tools (if any) exist to do this kind of thing on Linux VM? Do they work equally well for non Ruby environments (I'm thinking specifically
by FilterJoe 14y ago
Terrific concept. What tools (if any) exist to do this kind of thing on Linux VM? Do they work equally well for non Ruby environments (I'm thinking specifically Python/Django)?
I've spent the last week mucking around with VMware/bitnami to try to get a nice clean Python/Django/Pycharm VM for myself (with a template Django project that gracefully does both development and deployment). I'm almost done but what a long hard slog it's been.
- roderikvdv 14y agoOn linux it is even more easy, since most of the packages are in apt etc. Several recipes have a switch for use on our own servers and vm's: https://github.com/pivotal/pivotal_workstation/blob/master/recipes/wget.rb https://github.com/pivotal/pivotal_workstation/blob/master/r... And there is nothing in the result that has anything to do with ruby, just chef and the recipes are in ruby. We use it for setting up our dev environments and servers for PHP websites. Although we use Capistrano for the actual site deployment and not Chef.
- FilterJoe 14y agoroderikvdv's answer was helpful. I also found a long post discussing Django VMs specifically using vagrant: http://stevelosh.com/blog/2011/06/django-advice/ http://stevelosh.com/blog/2011/06/django-advice/
- jlarocco 14y agoIn theory this should be super easy on most Linux systems because of the software repos. On Debian based systems, on your existing development machine, you can do: dpkg --get-selections > installed_stuff.txt Then copy the file "installed_stuff.txt" to the new machine/VM and do: dpkg --set-selections < installed_stuff.txt It becomes a little more difficult when there are dependencies that aren't in the package system. Another thing I've found useful is to have a git repo with my config files. Then on a new machine I can clone the repo and have access to all of them. I've been meaning to write a script that copies everything to the right location, but haven't got around to it yet.
- roderikvdv 14y agoCheck out http://dotfiles.github.com http://dotfiles.github.com Most scripts have these bootstrap files, my dotfiles and more are based on this repo https://github.com/mathiasbynens/dotfiles https://github.com/mathiasbynens/dotfiles with a very good setup script.
- FilterJoe 14y agoThanks for that - looks like a huge time saver! Unfortunately, it won't fully automate setup. Things like entering passwords for a service you want to set up, tinkering with desktop, firefox or other app settings, etc. But still - this gets you a big head start.