summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Vagrantfile2
-rw-r--r--script/bootstrap-vagrant.sh18
-rw-r--r--script/bootstrap.sh10
-rw-r--r--script/vm_bootstrap.sh6
4 files changed, 29 insertions, 7 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 744d09e9..b321c7f5 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -18,7 +18,7 @@ Vagrant.configure("2") do |config|
# accessing "localhost:8080" will access port 80 on the guest machine.
#config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 3000, host: 3000
- config.vm.provision :shell, :path => 'script/vm_bootstrap.sh'
+ config.vm.provision :shell, :path => 'script/bootstrap.sh'
# Create a private network, which allows host-only access to the machine
# using a specific IP.
diff --git a/script/bootstrap-vagrant.sh b/script/bootstrap-vagrant.sh
new file mode 100644
index 00000000..aaac3238
--- /dev/null
+++ b/script/bootstrap-vagrant.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+cd /home/vagrant
+\curl -L https://get.rvm.io | bash -s stable
+
+source /home/vagrant/.profile
+source /home/vagrant/.rvm/scripts/rvm
+
+rvm install 2.0.0
+rvm install 1.9.3
+rvm use 2.0.0 --default
+
+#gem source -r http://rubygems.org/
+#gem install bundler
+
+source /home/vagrant/.bashrc
+source /home/vagrant/.bash_profile
+source /home/vagrant/.profile
diff --git a/script/bootstrap.sh b/script/bootstrap.sh
new file mode 100644
index 00000000..7847c458
--- /dev/null
+++ b/script/bootstrap.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+apt-get update
+apt-get install -y nginx
+apt-get install -y imagemagick
+apt-get install -y postgresql-9.1
+apt-get install -y bash curl git patch bzip2 build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev libcurl3-dev imagemagick libmagickwand-dev libpcre3-dev
+
+su -c 'bash /vagrant/script/bootstrap-vagrant.sh' vagrant
+\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
diff --git a/script/vm_bootstrap.sh b/script/vm_bootstrap.sh
deleted file mode 100644
index 2979ecaf..00000000
--- a/script/vm_bootstrap.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-
-apt-get update
-apt-get install -y nginx
-apt-get install -y imagemagick
-apt-get install -y postgresql-9.1