-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile.env
54 lines (38 loc) · 2.35 KB
/
Dockerfile.env
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
FROM ubuntu:19.10
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt upgrade -y
RUN apt install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev python libtinfo5 libncurses5
RUN git config --global user.email "[email protected]" && git config --global user.name Fake Name
RUN apt install -y wget curl
RUN wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip && unzip platform-tools-latest-linux.zip -d ~
RUN wget https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_linux-x64_bin.tar.gz
RUN tar -C /root/ -zxvf openjdk-9.0.4_linux-x64_bin.tar.gz
RUN mkdir -p /root/bin
RUN mkdir -p /root/android/lineage
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /root/bin/repo
RUN chmod a+x /root/bin/repo
ENV PATH="/root/platform-tools:/root/jdk-9.0.4/bin:/root/bin:${PATH}"
WORKDIR /root/android/lineage
RUN repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
RUN repo sync
WORKDIR /root/android/lineage/.repo
RUN git clone https://gitlab.com/switchroot/android/manifest.git local_manifests
RUN repo sync
WORKDIR /root/android/lineage/
RUN /root/android/lineage/vendor/lineage/build/tools/repopick.py -t nvidia-enhancements-p
RUN /root/android/lineage/vendor/lineage/build/tools/repopick.py -t joycon-p
RUN /root/android/lineage/vendor/lineage/build/tools/repopick.py -t icosa-bt
WORKDIR /root/android/lineage/vendor/lineage
RUN patch -p1 < ../../.repo/local_manifests/patches/vendor_lineage-kmod.patch
WORKDIR /root/android/lineage/frameworks/native
RUN patch -p1 < ../../.repo/local_manifests/patches/frameworks_native-hwc.patch
WORKDIR /root/android/lineage/frameworks/base
RUN patch -p1 < ../../.repo/local_manifests/patches/frameworks_base-rsmouse.patch
WORKDIR /root/android/lineage/vendor/nvidia
RUN patch -p1 < ../../.repo/local_manifests/patches/0001-HACK-use-platform-sig-for-shieldtech.patch
WORKDIR /root/android/lineage/
RUN cp .repo/local_manifests/patches/NvShieldTech-hack.apk vendor/nvidia/shield/shieldtech/app/NvShieldTech.apk
WORKDIR /root
ADD ./build.sh /root/build.sh
ADD ./update-sources.sh /root/update-sources.sh
RUN chmod a+x ./*.sh