reinteractive-open / installfest_guides

The installfest guides
24 stars 29 forks source link

Vagrant based development environment guide #4

Open lengarvey opened 10 years ago

lengarvey commented 10 years ago

I want to have a vagrant-based development environment guide so that people who attend installfest can potentially choose a more professional development environment.

This may eventually become the default unless https://github.com/railsinstaller/railsinstaller-nix/issues/20 can be resolved.

ralovely commented 10 years ago

I follow up on our last conversation. I built a vagrant box with the last stable debian It's just shy of 310 Mo.

If you want to play with it, you can find it here: https://s3-ap-southeast-1.amazonaws.com/ralovely.com-downloads/railsinstallfest/rails-dev.box I also described the config here: https://gist.github.com/ralovely/a098ae0adf9310f0d6a3#file-config-runlist-sh I started with a Chef recipe, so we could exchange and play with it, but Chef cookbooks usually don't care about size: I ended up with 600+Mo boxes. It was faster to do it by hand than to write all the cookbooks, but a bash provisionning would be better.

A few notes:

A few questions raised:

Tell me if you see something else to add. I was thinking about ImageMagick, but it is probably heavy.

cheers.

lengarvey commented 10 years ago

I would avoid RVM but instead go with chruby and ruby-install instead.

I want to get the time to keep working on this myself, as well as test the vagrant installation process on a variety of machines.

ralovely commented 10 years ago

I recreated the box with chruby and ruby-install (I re-uploaded it: https://s3-ap-southeast-1.amazonaws.com/ralovely.com-downloads/railsinstallfest/rails-dev.box)

326 Mo with ruby 2.0, nodeJS, the gems for a new rails app, and a nice ZSH config.

I also converted the config-run into a script: https://github.com/ralovely/vagrant-provisioning/ it might save you some time.

I won't be able to help for the test on a variety of machines, though, I only have 2 with the same config…