Skip to content

Instantly share code, notes, and snippets.

@senthilnayagam
Forked from indygreg/Dockerfile
Last active December 21, 2015 08:49
Show Gist options
  • Save senthilnayagam/6280463 to your computer and use it in GitHub Desktop.
Save senthilnayagam/6280463 to your computer and use it in GitHub Desktop.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Create a build and development environment for Firefox.
FROM ubuntu:12.10
MAINTAINER Gregory Szorc "gps@mozilla.com"
RUN apt-get update
# Upstart and DBus have issues inside docker. We work around that.
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
# Basic build dependencies.
RUN apt-get install -y autoconf2.13 build-essential unzip yasm zip
# Libraries required for building.
RUN apt-get install -y libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdbus-glib-1-dev libgtk2.0-dev libiw-dev libnotify-dev libxt-dev mesa-common-dev uuid-dev
# Gold linker is much faster than standard linker.
RUN apt-get install -y binutils-gold
# Developer tools.
RUN apt-get install -y bash-completion curl emacs git man-db python-dev vim
# python pip install
RUN apt-get install -y python-setuptools
RUN curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
RUN python get-pip.py
RUN pip install mercurial
# gstreamer
RUN add-apt-repository ppa:gstreamer-developers/ppa
RUN apt-get update
RUN apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
# Create a user for development.
RUN useradd -m firefox
@senthilnayagam
Copy link
Author

updated the dockerfile for first time install of firefox

build the dockerfile and run the command

su - firefox
hg clone https://hg.mozilla.org/mozilla-central
cd mozilla-central
./mach build

it took 62 minutes for full compile
./firefox -v
Mozilla Firefox 26.0a1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment