Skip to content

Development Environment On Windows With Vagrant

Christian Rafael edited this page Sep 17, 2015 · 3 revisions

Buendia Vagrant Box

A tutorial for using Vagrant in your Buendia development environment on Windows.


Install Virtual Box

Download Virtual Box and install it in your machine following the instructions.


Install Vagrant

Download Vagrant and install. The installer will automatically add vagrant to your system path so that it is available in terminals.


Initialize and Start the Vagrant Box

After installing the Vagrant choose a dir for init the Box and execute following commands in terminal.

  • vagrant init ubuntu/trusty64
  • vagrant up --provider virtualbox

After the download and up, connect to your Vagrant Box using PuTTY.

Data for the SSH connection will appear at terminal.


Build Buendia Server on Ubuntu

After connecting to your Vagrant Box execute following commands in PuTTY.

  • sudo apt-get install openjdk-7-jdk
  • sudo apt-get install maven
  • sudo apt-get install mysql-server
  • sudo apt-get install zip
  • sudo apt-get install git
  • git clone https://github.com/projectbuendia/buendia
  • buendia/tools/openmrs_setup dev
  • buendia/tools/openmrs_build
  • buendia/tools/openmrs_run

Then go to your Vagrant Box folder and add the following line to your Vagrantfile.

In section config add

  • config.vm.network "forwarded_port", guest: 9000, host: 9000

This line allow access to Buendia Server from host computer (http://127.0.0.1:9000/openmrs/).

Then go to terminal and execute the following command.

  • vagrant reload

For Shutdown the Vagrant Box execute the following command in terminal.

  • vagrant halt

For Up

  • vagrant up

Remember that this should be done in the folder that contains the Vagrantfile


How to export your Vagrant Box

For export your Vagrant Box go to terminal and execute the following command.

  • vagrant package --output mybox.box

Buendia Box ready for use

Download the file extract it and execute the following commands in terminal.

Go to the folder where you extracted the files

  • vagrant box add buendia buendia.box
  • vagrant up
Clone this wiki locally