Firefox OS/Performance/Automating Firefox OS Developer Setup
Currently, getting a developer machine set up to build Firefox OS from source is not an easy task. There are are a bunch of prerequisites and then you have clone the code and set up your build configuration. All of this makes it difficult for developers to bisect and/or debug bugs in Firefox OS. One way we could greatly ease the setup process is to build a Vagrant provisioning script that targets Docker. On Linux machines, the Vagrant script will initialize a Docker instance with the necessary prerequisites, clone the code, and set up the build configuration correctly. On Mac OS X and Windows, Vagrant will first set up a VirtualBox VM image running Linux before provisioning the Docker image.
We have already gone through the process of setting up Vagrant to provision a development environment for our TreeHerder web app. The documentation on how to install TreeHerder using Vagrant is here. The TreeHerder Vagrant file is here.
To be successful in this project, the following has to be accomplished:
- Build a base Vagrant file to provision a Docker instance running Ubuntu 13.04. This will be used as the base for a number of other similar projects.
- Build upon the base Vangrant file to provision the Docker instance with the necessary prerequisites for building Firefox OS.
- Add automation to the provisioning process to clone the Firefox OS repo
- Write an MDN article documenting how to use Vagrant to provision a Firefox OS development environment.