BMO/DeveloperBox: Difference between revisions

From MozillaWiki
< BMO
Jump to navigation Jump to search
mNo edit summary
Line 6: Line 6:
** Note: ~7G download (the base vbox has a recent sanitized copy of BMO)
** 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/latest.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  
** TODO: Figure out what needs to be done to have this in the base vbox instead  

Revision as of 21:50, 20 September 2013

Creating a BMO Development System using VirtualBox and Vagrant

 vagrant init
 vagrant box add bmo https://people.mozilla.com/~dkl/latest.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 (according to version):
 Version 1.0.x:
 # config.vm.forward_port 80, 8080
 Version 1.1.x:
 # config.vm.network :forwarded_port, guest: 80, host: 8080
 In the line
 config.vm.box = "base"
 Change "base" to "bmo"
  • Starting the VM
 vagrant up
  • Logging into the VM
 vagrant ssh
  • Make yourself an admin and set your password (substitute your bmo address below)
 vagrant ssh
 cd htdocs/bmo
 ./checksetup.pl --make-admin=<email> --reset-password=<email>
  • Access the web UI at http://localhost:8080/bmo using your browser
    • You may need to update the values for urlbase and sslbase in /home/vagrant/htdocs/bmo/data/params to match the port number you chose for redirection earlier. If the port is different than 8080.
 vagrant ssh
 cd htdocs/bmo
 bzr merge
 bzr commit  (commit the merged files to your branch?)
  • Run tests.
    • perl runtests.pl will run all the tests in the /bmo/t directory
    • you can run just one of the tests in /t, for example, perl t/004template.t will go through all the template tests.

so you can easily upload, etc.

 bzr diff > /vagrant/<some_patch_name>_1.patch