Create a local self contained environment for app developerment/deployment.
Includes Java, Maven, rvm, mongodb
##Installation reqs
- VirtualBox (tested w/ 5.0.16)
- Vagrant (tested w/ 1.8.1)
- Ruby (tested w/ 2.0.0)
- ChefDK (tested w/ 0.12.0)
##Install the following if not already on your local machine:
- Download and install VirtualBox: https://www.virtualbox.org/
- Download and install Ruby (tested with 2.0.0)
- Download and install Vagrant: https://www.vagrantup.com/
- Download and install Chef: https://downloads.chef.io/chef-dk
- Install the Vagrant Berkshelf plugin:
vagrant plugin install vagrant-berkshelf
- Install the Vagrant omnibus plugin:
vagrant plugin install vagrant-omnibus
- Generate 'Vagrantfile' by executing the following by providing the path to your project directory:
ruby config_vagrant.rb -l /path-to-your-project-to-be-mounted-on-vagrant-box
** Your project directory will be mounted at /vagrant_data
8. Create a folder "cookbooks" where Berkself can download the cookbooks
9. (Optional - if downloading box takes too long in #9) Download and install ubuntu/trusty64 box:
1. Download box from http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
2. Add the box to vagrant
vagrant box add ubuntu/trusty64 /path-to-downloaded-box/trusty-server-cloudimg-amd64-vagrant-disk1.box
-
From terminal enter the command "vagrant up" to create the vagrant box and run the install script
-
After the vagrant box is created, enter 'vagrant ssh' to access the vagrant box from the terminal
-
Your Vagrant box will be available at 192.168.33.10 on your host machine