forked from gmacario/easy-build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
69 lines (52 loc) · 2.09 KB
/
Dockerfile
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
57
58
59
60
61
62
63
64
65
66
67
68
69
# ===========================================================================================
# Dockerfile for building Android Open Source Project
#
# References:
# http://source.android.com/source/index.html
# ===========================================================================================
FROM gmacario/easy-build
#FROM ubuntu
MAINTAINER Gianpaolo Macario, [email protected]
# Make sure the package repository is up to date
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# Install essential packages
RUN apt-get install -y git tig
RUN apt-get install -y mc
RUN apt-get install -y screen
# Install required packages
# See https://source.android.com/source/building.html
RUN apt-get install -y curl
RUN apt-get install -y python
RUN apt-get install -y make
#RUN apt-get install -y openjdk-7-jdk
# Create non-root user that will perform the build of the images
#RUN useradd --shell /bin/bash build
#RUN mkdir -p /home/build
#RUN chown -R build /home/build
# See https://source.android.com/source/initializing.html
#RUN update-alternatives --config java
#RUN update-alternatives --config javac
#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 mingw32 tofrodos \
# python-markdown libxml2-utils xsltproc zlib1g-dev:i386
#RUN ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 \
# /usr/lib/i386-linux-gnu/libGL.so
# Downloading the Source
# See https://source.android.com/source/downloading.html
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
RUN chmod a+x /usr/local/bin/repo
# Initializing a Repo client
RUN su -c "cd && repo init -u https://android.googlesource.com/platform/manifest \
-b android-4.0.1_r1" build
RUN su -c "cd && repo sync" build
RUN cd /home/build
# Run as the following user
#USER build
# Say hello when the container is launched
ENTRYPOINT ["/bin/bash"]
# Expose memcached port
#EXPOSE 11211
# EOF