Instructions for Intro to DevOps Project
Part 0 - Local Installation
- Install VirtualBox
- Install Vagrant
- Install Packer
- Install git
Part I - Build Boxes with Packer
To make an image for local development
- 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
To make application server image for cloud
See full directions at: https://www.udacity.com/wiki/ud611
To make control (CI and monitoring) server image for cloud
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
-
Open http://localhost:8080 from your local machine to see the app running.
-
If you want to run tests on the app - In the VM run:
cd devops-kungfu
To install app specific node packages:sudo npm install
Now you can run tests -grunt -v