- Install VirtualBox
- Install Vagrant
- Install Packer
- Install git
From the packer-templates directory:
- run
packer build -only=virtualbox-iso application-server.json - run
cd virtualbox - run
vagrant box add ubuntu-14.04.4-server-amd64-appserver_virtualbox.box --name devops-appserver - run
vagrant up - run
vagrant sshto connect to the server
See full directions at: https://www.udacity.com/wiki/ud611
-
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-kungfuTo install app specific node packages:sudo npm installNow you can run tests -grunt -v
-
If you encounter errors with Ubuntu version numbers not being available or checksum errors on Ubuntu and this repository is not yet updated, you can fix this by editing the contents of the
application-server.jsonandcontrol-server.jsontemplate files inside thepacker-templatesfolder. -
Find the newest version number and checksum from http://releases.ubuntu.com/trusty/ and edit
PACKER_BOX_NAMEandiso_checksumin the template files to match.