first commit

This commit is contained in:
sq 2021-04-28 15:28:32 -04:00
commit 1d154df3ef
No known key found for this signature in database
GPG Key ID: 7AF3499CBA8E6251
3 changed files with 23 additions and 0 deletions

4
.bashrc Normal file
View File

@ -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

12
Dockerfile Normal file
View File

@ -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

7
README.md Normal file
View File

@ -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`