geekhack

geekhack Community => Other Geeky Stuff => Topic started by: Arexxk on Tue, 24 January 2012, 18:13:27

Title: Some sort of Virtual Programming Environment
Post by: Arexxk on Tue, 24 January 2012, 18:13:27
I work with ruby and rails and hate constantly setting up rails on a local machine and having to go through the trouble of configuring it. I've literally spent more time setting up Rails, Rails revision tracking software, Git, and Heroku than I ever had actually coding with ruby on rails. Has anyone heard of some sort of virtual environment that has everything already set up, so all I have to do is access the virtual environment and start coding?
Title: Some sort of Virtual Programming Environment
Post by: metafour on Tue, 24 January 2012, 18:17:19
Vagrant might be what you're looking for. Vagrantup.com. It's essentially a scripting front-end to VirtualBox. You could also do a base install and then snapshot with either VMware or VirtualBox I believe.

What I normally do is use a cloud instance on Rackspace. Setup a base install and take a backup of it. I can then create new server instances from that backup.
Title: Some sort of Virtual Programming Environment
Post by: Arexxk on Tue, 24 January 2012, 18:36:16
It seem like I still have to set up a development environment within the VM. What makes this any different than installing a barebones Linux OS in VMware, setting up a dev environment within that, and backing up that image? I was sort of looking for a Virtual Environment that was already set up to handle rails, java, etc. with all those testing modules pre-installed. For some reason I always have issues configuring modules like RubyGems.
Title: Some sort of Virtual Programming Environment
Post by: metafour on Tue, 24 January 2012, 18:51:07
Some of the vagrant stuff might already have a dev environment setup. There's two ways to script it one uses cookbooks and there may be cookbooks setup that have what you need. But yeah these are all virtual machine solutions which is what I prefer because you can exactly mirror your production environment.
Title: Some sort of Virtual Programming Environment
Post by: keyboardlover on Tue, 24 January 2012, 20:26:43
If you can afford it, easiest thing might be to just find a good/cheap ruby on rails host. I don't have experience with one, but is it possible that they have rails setup software (something through cpanel) that installs your modules for you? Years ago I had a Java EE host that had that kind of setup.

That way you could easily set it up however you want and access it anywhere.
Title: Some sort of Virtual Programming Environment
Post by: hashbaz on Tue, 24 January 2012, 22:00:28
I don't know much of anything about this, but it looks interesting and along the lines of what you're describing:

http://kodingen.com
Title: Some sort of Virtual Programming Environment
Post by: metafour on Tue, 24 January 2012, 22:08:40
Quote from: hashbaz;498170
I don't know much of anything about this, but it looks interesting and along the lines of what you're describing:

http://kodingen.com

Their site doesn't respond well to the iPad. Doesn't scroll at all.
Title: Some sort of Virtual Programming Environment
Post by: Wildcard on Tue, 24 January 2012, 23:31:13
You could download a free pre built image from VMware. I can almost guarantee someone already has an image of some OS created for this purpose. Once you have a good base image you can export it and use it on different computers. Plus you can use shared online storage from within the guest OS, and retain snapshots in VMware.
Title: Some sort of Virtual Programming Environment
Post by: Wildcard on Tue, 24 January 2012, 23:33:10
http://www.vmware.com/appliances/
Title: Some sort of Virtual Programming Environment
Post by: flyball on Wed, 25 January 2012, 00:10:08
there's rvm but it just sounds like you need to learn how to use whatever package manager/installers your os has. you have to constantly install ruby on one machine? i dont get it.
Title: Some sort of Virtual Programming Environment
Post by: Wildcard on Wed, 25 January 2012, 00:21:19
Quote from: flyball;498350
there's rvm but it just sounds like you need to learn how to use whatever package manager/installers your os has. you have to constantly install ruby on one machine? i dont get it.

Sounded like they wanted a vm they could move around between several local machines.
Title: Some sort of Virtual Programming Environment
Post by: Wildcard on Wed, 25 January 2012, 00:26:59
Quote from: metafour;498018
Some of the vagrant stuff might already have a dev environment setup. There's two ways to script it one uses cookbooks and there may be cookbooks setup that have what you need. But yeah these are all virtual machine solutions which is what I prefer because you can exactly mirror your production environment.

Check this for example http://www.vmware.com/appliances/directory/cat/0?k=Ruby+on+rails&c=0 (http://www.vmware.com/appliances/directory/cat/0?k=Ruby+on+rails&c=0)

Part way down there is a "rails appliance" for development, based in ubuntu, free to download
Title: Some sort of Virtual Programming Environment
Post by: cheebs on Wed, 25 January 2012, 10:03:08
Quote from: flyball;498350
there's rvm but it just sounds like you need to learn how to use whatever package manager/installers your os has. you have to constantly install ruby on one machine? i dont get it.

Yes, I'm sure he's constantly installing ruby on the same machine, repeatedly, then posting his frustrations about doing so.  That sounds plausible.

OP : I would just do what others have said and build an image of some sort
Title: Some sort of Virtual Programming Environment
Post by: daerid on Wed, 25 January 2012, 21:54:52
Quote from: cheebs;498633
OP : I would just do what others have said and build an image of some sort

Why not just configure a live usb, and carry it around with you?
Title: Some sort of Virtual Programming Environment
Post by: Arexxk on Fri, 27 January 2012, 03:29:09
Quote from: daerid;499231
Why not just configure a live usb, and carry it around with you?

This is a really cool idea. Im not sure if my school locks down their workstation BIOS, if not then this could work. I ve tried rvm, but it's a  hassle to work with as a beginning rails developer and gems doesnt really play well with OSX (rvm is a gem right?). I  just found railsinstaller, which actually prepackages everything you need to build a rails app and is going to work cross-platform. So, maybe a VM server + railsinstaller + dropbox? Imma try this out :P
Title: Some sort of Virtual Programming Environment
Post by: Arexxk on Fri, 27 January 2012, 03:35:55
Quote from: hashbaz;498170
I don't know much of anything about this, but it looks interesting and along the lines of what you're describing:

http://kodingen.com

This is wayy cool.
Title: Some sort of Virtual Programming Environment
Post by: kidchunks on Tue, 07 February 2012, 19:24:26
I heard http://railsplayground.com/ is a good host.