forked from ayufan-pine64/android-7.1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (39 loc) · 2.15 KB
/
Dockerfile
File metadata and controls
55 lines (39 loc) · 2.15 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
FROM ubuntu:18.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-8-jdk python software-properties-common git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip mtools u-boot-tools \
htop iotop sysstat iftop pigz bc device-tree-compiler lunzip \
dosfstools rsync
RUN add-apt-repository universe -y && \
DEBIAN_FRONTEND=noninteractive apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3.8
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo && \
chmod +x /usr/local/bin/repo
RUN curl -L https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2 | tar -C /tmp -jx && \
mv /tmp/bin/linux/amd64/github-release /usr/local/bin/
RUN which repo && \
which github-release
COPY build.sh /root/
RUN chmod +x /root/build.sh
COPY init-repo-android7.sh /root/
RUN chmod +x /root/init-repo-android7.sh
COPY fixedDefaultManifestsAndroid7.xml /root/
COPY fixedLibcedarcConfig.mk /root/
COPY fixGitConfigAndroid7OpengapsSourceArm64 /root/
COPY fixGitConfigAndroid7OpengapsSourceArm /root/
COPY fixGitConfigAndroid7OpengapsSourceAll /root/
COPY Jenkinsfile /root/
RUN git config --global user.email "docker_build@inx-systems.com" && \
git config --global user.name "INX Limited"
RUN build_deps="curl" && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${build_deps} ca-certificates && \
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs && \
git lfs install && \
rm -r /var/lib/apt/lists/* && \
sed -i 's/TLSv1, TLSv1.1, //g' /etc/java-8-openjdk/security/java.security