diff --git a/README.md b/README.md deleted file mode 100644 index 6d37447..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# railsVagrant -Ubuntu 14.04 vagrant template for rails development. diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..a1db60c --- /dev/null +++ b/README.rdoc @@ -0,0 +1,8 @@ +# railsVagrant +Ubuntu 14.04 vagrant template for rails development. + +To use, do the following: +* Run vagrant up +* Run vagrant ssh +* Cd to /vagrant/setup +* Run ./build.sh diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..1cd2380 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,10 @@ +Vagrant.configure("2") do |config| + config.vm.box = "ubuntu/trusty64" + config.vm.network "public_network" + config.vm.network "private_network", ip: "192.168.254.2" + config.vm.provider "virtualbox" do |v| + v.memory = 2048 + v.cpus = 2 + v.name = "railsdev" + end +end \ No newline at end of file diff --git a/setup/Vagrant Windows Instructions.txt b/setup/Vagrant Windows Instructions.txt new file mode 100644 index 0000000..c1e3473 --- /dev/null +++ b/setup/Vagrant Windows Instructions.txt @@ -0,0 +1,10 @@ +For Windows: +1. Install GIT +2. Open CMD and run: setx PATH=%PATH%;C:\Program Files (x86)\Git\bin +3. Install Virtualbox +4. Instal Vagrant +5. Open CMD and navigate to railsVagrant folder +6. From CMD run vagrant up +7. Run vagrant ssh +8. Run build.sh inside vagrant + diff --git a/setup/build.sh b/setup/build.sh new file mode 100644 index 0000000..556731b --- /dev/null +++ b/setup/build.sh @@ -0,0 +1,14 @@ + +sudo apt-get update +sudo apt-get install curl -y +gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 +\curl -sSL https://get.rvm.io | bash -s stable --ruby +source /home/cody/.rvm/scripts/rvm +echo '[[ -s "/home/vagrant/.rvm/scripts/rvm" ]] && source "/home/vagrant/.rvm/scripts/rvm"' >> /home/vagrant/.bashrc +rvm install ruby +rvm rubygems current +sudo apt-get install git-core -y +wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh +cd /vagrant/setup +sudo dpkg -i elasticsearch-0.90.10.deb + diff --git a/setup/elasticsearch-0.90.10.deb b/setup/elasticsearch-0.90.10.deb new file mode 100644 index 0000000..c989c99 Binary files /dev/null and b/setup/elasticsearch-0.90.10.deb differ