Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adds Vagrant using a simple bash provisioner

  • Loading branch information...
commit d19f862fa48f4476e2e305e3b65955a1c486a5cc 1 parent e48e3d4
@bmabey bmabey authored
Showing with 25 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +5 −0 Vagrantfile
  3. +19 −0 setup_env.sh
View
1  .gitignore
@@ -7,3 +7,4 @@ bundled_gems/
vendor/
examples/db/*.db
examples/config/database.yml
+.vagrant
View
5 Vagrantfile
@@ -0,0 +1,5 @@
+Vagrant::Config.run do |config|
+ config.vm.box = "ubuntu-1104-server-amd64"
+ config.vm.box_url = "http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box"
+ config.vm.provision :shell, :path => "setup_env.sh"
+end
View
19 setup_env.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -x
+set -e
+
+
+# add the 10gen repo
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+sudo echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
+
+sudo apt-get update
+sudo apt-get install --yes couchdb mysql-server mongodb-10gen curl
+
+# setup rvm
+if [ ! -d "$HOME/.rvm"]
+ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
+ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
+ source ~/.bash_profile
+ rvm install ruby-1.8.7-p248
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.