commit b13a629954ca4edba15ce6d173a20639ca91f779 Author: Michael Stucki Date: Sun Feb 2 11:52:53 2014 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..671efae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/android diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93691a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# Build environment for CyanogenMod +# +# VERSION 0.1 + +FROM ubuntu:12.04 +MAINTAINER Michael Stucki + +RUN echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get -qq update +RUN apt-get install -y python-software-properties curl screen + +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 + +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 + +WORKDIR /home/cmbuild/android +VOLUME /home/cmbuild/android diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..acf3517 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cd $(dirname $0) + +SOURCE=$(pwd)/android + +test -d $SOURCE || mkdir $SOURCE + +docker build -t stucki/cyanogenmod . + +exit $? diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..a3a3f0c --- /dev/null +++ b/run.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cd $(dirname $0) + +SOURCE=$(pwd)/android + +test -d $SOURCE || mkdir $SOURCE + +docker run -v $SOURCE:/home/cmbuild/android -i -t stucki/cyanogenmod sh -c "exec >/dev/tty 2>/dev/tty