Firefox OS/Performance/Using Docker to Ease Debugging Firefox OS: Difference between revisions

m
Lakrits moved page FirefoxOS/Performance/Using Docker to Ease Debugging Firefox OS to Firefox OS/Performance/Using Docker to Ease Debugging Firefox OS: The official spelling of "Firefox OS" leaves a space between the two parts of the name. It's...
m (Lakrits moved page FirefoxOS/Performance/Using Docker to Ease Debugging Firefox OS to Firefox OS/Performance/Using Docker to Ease Debugging Firefox OS: The official spelling of "Firefox OS" leaves a space between the two parts of the name. It's...)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Proposal ==
== Proposal ==
# Set up private Docker Registry.
# Set up private Docker Registry. (Or better yet, put them on the global, public docker registry?)
# Configure a Docker image for building B2G from source.
# Configure a Docker image for building B2G from source.
## Create a Jenkin's task to drive the docker daemon to update code, do the build, and snapshot the docker image into the registry.
## Will contain the android SDK, the correct toolchain, and environment variables for building B2G from source.
# Create a VirtualBox image with the [http://docs.vagrantup.com/v2/provisioning/docker.html vagrant docker provisioner] installed and configured to provision the latest docker image and start it on boot.
# Create a VirtualBox image with the [http://docs.vagrantup.com/v2/provisioning/docker.html vagrant docker provisioner] installed and configured to provision the latest docker image and start it on boot.
# Documentation
# Documentation
Line 8: Line 8:
## Write docs for Linux users on running docker images.
## Write docs for Linux users on running docker images.
## Update bisection doc on how to grab the right docker image and flash a phone with the results.
## Update bisection doc on how to grab the right docker image and flash a phone with the results.
# Automation
## Create a Jenkin's task to drive the docker daemon to update code, do the build, and snapshot the docker image into the registry?
## Investigate using amazon elastic beanstalk to scale docker image creation to one snapshot per commit?


== Setting up a Private Docker Registry ==
== Identify Registry to Store Docker Images ==


The first step is to set up a private docker registry for Firefox OS related docker images.  This process is already documented in several places: [http://www.activestate.com/blog/2014/01/deploying-your-own-private-docker-registry] [https://blog.codecentric.de/en/2014/02/docker-registry-run-private-docker-image-repository/]
=== Private Registry ===
 
If we go with a private registry, this process is already documented in several places: [http://www.activestate.com/blog/2014/01/deploying-your-own-private-docker-registry] [https://blog.codecentric.de/en/2014/02/docker-registry-run-private-docker-image-repository/]
 
The only upside of a private registry is branding and the possibility of access control for private, security/prototype related debugging/patching of Firefox OS.
 
=== Public Registry ===
 
If we store docker images in the public docker.io registry then everybody in the Firefox OS community will have access to them.  This would be really helpful for getting developers up to speed in a minimum amount of time.
 
I think for doing a docker image per commit, we should just use the public registry.


== Dockerfile for a B2G Build Image ==
== Dockerfile for a B2G Build Image ==
Line 19: Line 32:
<pre>
<pre>
from ubuntu
from ubuntu
 
# get 4.6 gnu toolchain
# get android sdk
# get git, ctags, cscope, vim, emacs, and everything needed to run cleopatra web app locally.
# get B2G repo
</pre>
</pre>


3,860

edits