Skip to content

Development with Vagrant

Aleksandr Kuzminsky edited this page Aug 19, 2016 · 3 revisions

What is Vagrant?

It's a way to create and manage virtual machine configuration so you can very quickly spin up a development environment and get working. Vagrant says: Create and configure lightweight, reproducible, and portable development environments.

How to use it

Download and install both VirtualBox and Vagrant

Clone Anemometer:

$ git clone [email protected]:box/Anemometer.git anemometer

Create the virtual machine:

$ cd vagrant && vagrant up

Open anemometer in a browser!

http://localhost:8844/anemometer
```

# What's next?

Now you have a virtual machine with:
* Percona-mysql-56, Percona Toolkit and PHP installed. 
* The Anemometer collection script running on root cron every 5 minutes
* A webserver running on localhost:8844

You can open the code in `vagrant/anemometer/anemometer` on your _local_ server with which ever GUI IDE you choose and make changes.  Since the `vagrant/anemometer` directory is shared between the newly created virtual machine and your local server you can easily work on those files.
Clone this wiki locally