/devops-packer

My devops environment with Packer and Vagrant

Primary LanguageShell

Instructions for Installing

Part 0 - Local Installation

  1. Install VirtualBox
  2. Install Vagrant
  3. Install Packer
  4. Install git

Part I - Build Boxes with Packer

To make an image for local development

  1. run packer build -only=virtualbox-iso application-server.json
  2. run cd virtualbox
  3. run vagrant box add ubuntu-14.04.2-server-amd64-appserver_virtualbox.box --name devops-appserver
  4. run vagrant up
  5. run vagrant ssh to connect to the server

To make application server image for cloud

See full directions at: https://github.com/RyanCCollins/devops-packer/wiki/Install-and-build-instructions

To make control (CI and monitoring) server image for cloud

Part II - Cloning, Developing and Running the web application

  1. On your local machine go to the root directory of this repository

    run git clone https://github.com/chef/devops-kungfu.git devops-kungfu

  2. Open http://localhost:8080 from your local machine to see the app running.

  3. 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