Part 0 - Local Installation ###########################
- Install VirtualBox
- Install Vagrant
- Install Packer
- Install git
Part I - Build Boxes with Packer ################################
- run 'packer build -only=virtualbox-iso application-server.json'
- run 'cd virtualbox'
- run 'vagrant box add ubuntu-14.04.2-server-amd64-appserver_virtualbox.box --name devops-appserver'
- run 'vagrant up'
- run 'vagrant ssh' to connect to the server
-
Set up your cloud provider credentials.
See additional information in the appropriate directories: aws/ - for Amazon Web Services. Builder type 'amazon-ebs' google/ - for Google Cloud Platform. Builder type 'googlecompute' azure/ - for Microsoft Azure. Builder type 'azure'. It will require additional installation.
-
pick the builder for the cloud provider you set up in step 1 and run 'packer build -only="your builder type" application-server.json' for example 'packer build -only=amazon-ebs application-server.json'
-
cd to your cloud providers directory
-
run 'vagrant up'
-
run 'vagrant ssh' to connect to the server
- Set up your cloud provider credentials.
- pick the builder for the cloud provider you set up in step 1 and run 'packer build -only="your builder type" control-server.json'
Part II - Cloning, Developing and Running the web application
-
On your local machine go to the root directory of this repository run 'git clone https://github.com/chef/devops-kungfu.git devops-kungfu'
-
In the VM run: 'cd devops-kungfu' Install app specific node packages: 'sudo npm install' Now you can run tests - 'grunt -v'
-
Open localhost:8080 from your local machine.