Last active
August 29, 2015 13:56
-
-
Save iakio/9121964 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
apt-get update | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
apt-get -y install libsqlite3-dev | |
apt-get -y install tmux | |
apt-get -y install vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo -H -u vagrant bash -x <<'EOS' | |
[ -d ~/.rbenv ] || git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
[ -d ~/.rbenv/plugins/ruby-build ] || git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
fgrep -q .rbenv ~/.bash_profile || echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
fgrep -q "rbenv init" ~/.bash_profile || echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
[ -f ~/.vimrc ] || cat <<VIMRC > ~/.vimrc | |
colorscheme desert | |
filetype plugin indent on | |
VIMRC | |
[ -f ~/.gemrc ] || cat <<GEMRC > ~/.gemrc | |
install: --no-rdoc --no-ri | |
update: --no-rdoc --no-ri | |
GEMRC | |
EOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.provision "shell", path: "provison_root.sh" | |
config.vm.provision "shell", path: "provison_vagrant.sh" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment