This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Tutorial: CIF development using vagrant
giovino edited this page Nov 30, 2014
·
11 revisions
This tutorial will show you how to use OS X + Vagrant + Virtualbox + Git to easily spin up and tear down CIFv2 virtual machines for development.
-
Ensure you have all the Vagrant prerequisites installed and configured.
-
Clone the CIFv2 report to your OS X machine
-
Open the Terminal
-
(optional) Create a folder named Development
mkdir Development && cd Development
-
Clone CIFv2 (a fork??) using Git and
cd
into it's directorygit clone https://github.com/csirtgadgets/massive-octo-spice.git && cd massive-octo-spice/
-
Start a Vagrant virtual machine
vagrant up
-
SSH into the Vagrant virtual machine
vagrant ssh
-
Within the virtual machine
cd
into /vagrant. This is a shared folder to your host machine (e.g.~/Development/massive-octo-spice
)cd /vagrant
-
Install CIFv2
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y htop build-essential automake autoconf git bash autogen.sh sudo bash ./hacking/platforms/easybutton.sh sudo chown `whoami`:`whoami` ~/.cif.yml
Once you are finished with your development, you can stop, delete etc using the these common Vagrant commands.