-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (45 loc) · 2.28 KB
/
Dockerfile
File metadata and controls
56 lines (45 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:14.04
MAINTAINER David Keppler "dave@kepps.net"
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu trusty multiverse" >> /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list
ENV DEBIAN_FRONTEND noninteractive
# make multiarch work (only a 14.04 thing?)
RUN dpkg --add-architecture i386
RUN apt-get -qq update
RUN apt-get -qqy upgrade
RUN apt-get install -y git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib gcc-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
libswitch-perl qemu-utils virtualbox
# Install repo
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
RUN chmod a+x /usr/local/bin/repo
# Install JDK6
#ADD jdk-6u45-linux-x64.bin /opt/jdk-6u45-linux-x64.bin
#RUN chmod a+x /opt/jdk-6u45-linux-x64.bin
#WORKDIR /opt
#RUN /opt/jdk-6u45-linux-x64.bin
#RUN /bin/sh -c 'cd /usr/local/bin ; for i in /opt/jdk1.6.0_45/bin/* ; do ln -s $i ; done'
#RUN echo "export PATH=${PATH}:/opt/jdk1.6.0_45/bin" >> /etc/profile.d/java
#RUN echo "export JAVA_HOME=/opt/jdk1.6.0_45" >> /etc/profile.d/java
RUN apt-get install -y software-properties-common python-software-properties
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get -qq update
RUN echo oracle-java6-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get install -y oracle-java6-installer
RUN update-java-alternatives -s java-6-oracle
RUN apt-get install oracle-java6-set-default
# Extras that android-x86.org and android-ia need
RUN apt-get install -y gettext python-libxml2 yasm bc
RUN apt-get install -y squashfs-tools genisoimage dosfstools mtools
RUN useradd --create-home buildbot
RUN echo "export USE_CCACHE=1" >> /etc/profile.d/android
ENV USE_CCACHE 1
USER buildbot
ENV HOME /home/buildbot
WORKDIR /home/buildbot/android
VOLUME /home/buildbot/android