From 3fc444792ebff667aa3771b83d1b2107966c5b4c Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 12 May 2013 16:04:06 -0600 Subject: add script to provision vagrant vm --- script/bootstrap-vagrant.sh | 18 ++++++++++++++++++ script/bootstrap.sh | 10 ++++++++++ script/vm_bootstrap.sh | 6 ------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 script/bootstrap-vagrant.sh create mode 100644 script/bootstrap.sh delete mode 100644 script/vm_bootstrap.sh (limited to 'script') 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 -- cgit v1.2.3