2014-02-02 05:52:53 -05:00
|
|
|
# Build environment for CyanogenMod
|
|
|
|
#
|
|
|
|
# VERSION 0.1
|
|
|
|
|
|
|
|
FROM ubuntu:12.04
|
|
|
|
MAINTAINER Michael Stucki <mundaun@gmx.ch>
|
|
|
|
|
2014-02-20 05:05:21 -05:00
|
|
|
# Newer images of ubuntu:12.04 already contain this entry, and if the line appears twice in the file, apt would throw a warning.
|
|
|
|
RUN grep -q "universe" /etc/apt/sources.list || echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list
|
2014-02-02 05:52:53 -05:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get -qq update
|
2014-02-15 03:58:40 -05:00
|
|
|
RUN apt-get install -y python-software-properties bsdmainutils curl screen
|
2014-02-02 05:52:53 -05:00
|
|
|
|
|
|
|
RUN add-apt-repository ppa:nilarimogard/webupd8
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y android-tools-adb android-tools-fastboot
|
|
|
|
|
|
|
|
RUN apt-get install -y bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev
|
|
|
|
RUN apt-get install -y g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
|
2014-02-18 08:02:50 -05:00
|
|
|
RUN apt-get install -y tig
|
2014-02-02 05:52:53 -05:00
|
|
|
|
|
|
|
RUN useradd --create-home cmbuild
|
|
|
|
|
|
|
|
RUN mkdir /home/cmbuild/bin
|
|
|
|
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/cmbuild/bin/repo
|
|
|
|
RUN chmod a+x /home/cmbuild/bin/repo
|
|
|
|
|
|
|
|
RUN echo "export PATH=${PATH}:/home/cmbuild/bin" >> /etc/bash.bashrc
|
2014-02-04 16:40:25 -05:00
|
|
|
RUN echo "export USE_CCACHE=1" >> /etc/bash.bashrc
|
2014-02-02 05:52:53 -05:00
|
|
|
|
|
|
|
WORKDIR /home/cmbuild/android
|
|
|
|
VOLUME /home/cmbuild/android
|