BMO/DeveloperBox: Difference between revisions
< BMO
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
* Install Virtualbox on your workstation (http://www.virtualbox.org) | * Install Virtualbox on your workstation (http://www.virtualbox.org) | ||
* Install Vagrant on your workstation (http://www.vagrantup.com/) | * Install Vagrant on your workstation (http://www.vagrantup.com/) | ||
* | * Creating your VM from the BMO base vbox | ||
** Note: ~7G download (the base vbox has a recent sanitized copy of BMO) | |||
vagrant init | vagrant init | ||
vagrant box add bmo https://people.mozilla.com/~dkl/bugzilla.box | vagrant box add bmo https://people.mozilla.com/~dkl/bugzilla.box | ||
* Edit Vagrantfile to allow port forward to VM of port 80 | * Edit Vagrantfile to allow port forward to VM of port 80 | ||
** TODO: Figure out what needs to be done to have this in the base vbox instead | |||
of requiring user to do it. | |||
Uncomment the line that says: | Uncomment the line that says: | ||
# config.vm.forward_port 80, 8080 | # config.vm.forward_port 80, 8080 | ||
* | * Starting the VM | ||
vagrant up | vagrant up | ||
* | * Logging into the VM | ||
vagrant ssh | vagrant ssh | ||
* Access the | * Access the web UI at http://localhost:8080/bmo using your browser | ||
* | * Updating the BZR code to the latest revision | ||
vagrant ssh | vagrant ssh | ||
cd htdocs/bmo | cd htdocs/bmo | ||
bzr merge | bzr merge | ||
* | * Making a patch fore review of your latest changes | ||
** This will place the patch file in your home directory of the laptop and not on the VM | |||
so you can easily upload, etc. | |||
bzr diff > /vagrant/<some_patch_name>_1.patch | bzr diff > /vagrant/<some_patch_name>_1.patch | ||
Revision as of 13:53, 12 April 2013
Creating a BMO Development System using VirtualBox and Vagrant
- Install Virtualbox on your workstation (http://www.virtualbox.org)
- Install Vagrant on your workstation (http://www.vagrantup.com/)
- Creating your VM from the BMO base vbox
- Note: ~7G download (the base vbox has a recent sanitized copy of BMO)
vagrant init vagrant box add bmo https://people.mozilla.com/~dkl/bugzilla.box
- Edit Vagrantfile to allow port forward to VM of port 80
- TODO: Figure out what needs to be done to have this in the base vbox instead
of requiring user to do it.
Uncomment the line that says: # config.vm.forward_port 80, 8080
- Starting the VM
vagrant up
- Logging into the VM
vagrant ssh
- Access the web UI at http://localhost:8080/bmo using your browser
- Updating the BZR code to the latest revision
vagrant ssh cd htdocs/bmo bzr merge
- Making a patch fore review of your latest changes
- This will place the patch file in your home directory of the laptop and not on the VM
so you can easily upload, etc.
bzr diff > /vagrant/<some_patch_name>_1.patch