-
Notifications
You must be signed in to change notification settings - Fork 36
Development Environment On Windows With Vagrant
A tutorial for using Vagrant in your Buendia development environment on Windows.
Download Virtual Box and install it in your machine following the instructions.
Download Vagrant and install. The installer will automatically add vagrant to your system path so that it is available in terminals.
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.
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
For export your Vagrant Box go to terminal and execute the following command.
vagrant package --output mybox.box
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
About the software
System Overview
Client Application
Server Application
Server Platform
Development practices
GitHub Usage
Java Style
Testing
Releases
For field users and testers
Software Install and Configuration
Upon Receiving Your Gear
Setting Up a Tablet
Setting Up a Server
Setting Up an Access Point
Reference Configuration