first commit
This commit is contained in:
commit
1d154df3ef
|
@ -0,0 +1,4 @@
|
|||
# add Android SDK platform tools to path
|
||||
if [ -d "$HOME/platform-tools" ] ; then
|
||||
PATH="$HOME/platform-tools:$HOME/bin:$PATH"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
FROM debian:latest
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update && apt -y install wget 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 python3 python procps netcat nano emacs
|
||||
WORKDIR /root
|
||||
RUN wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
|
||||
RUN unzip platform-tools-latest-linux.zip -d /root/
|
||||
ADD .bashrc /root/.bashrc
|
||||
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 ~/bin/repo
|
||||
WORKDIR /root/android/lineage
|
|
@ -0,0 +1,7 @@
|
|||
- `docker build -t andbuild -t andbuild:latest .`
|
||||
- `cd ~ && docker run -it --rm -v $PWD/android:/root/android --dns 8.8.8.8 andbuild /bin/bash`
|
||||
- in container: `repo init -u git://github.com/LineageOS/android.git -b lineage-18.1`
|
||||
- in container: `repo sync`
|
||||
- in container: `source build/envsetup.sh`
|
||||
- in container: `breakfast x86_64`
|
||||
- in container: `brunch x86_64`
|
Loading…
Reference in New Issue