Skip to content

Commit 8c776e7

Browse files
committed
Initial commit
0 parents  commit 8c776e7

File tree

5 files changed

+175
-0
lines changed

5 files changed

+175
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
charset = utf-8

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## Project-specific
2+
sdk-packages.cache
3+
4+
## Origin: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
5+
# Windows thumbnail cache files
6+
Thumbs.db
7+
ehthumbs.db
8+
ehthumbs_vista.db
9+
10+
# Dump file
11+
*.stackdump
12+
13+
# Folder config file
14+
Desktop.ini
15+
16+
# Recycle Bin used on file shares
17+
$RECYCLE.BIN/
18+
19+
# Windows Installer files
20+
*.cab
21+
*.msi
22+
*.msm
23+
*.msp
24+
25+
# Windows shortcuts
26+
*.lnk
27+
28+
## Origin: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
29+
# General
30+
.DS_Store
31+
.AppleDouble
32+
.LSOverride
33+
34+
# Icon must end with two \r
35+
Icon
36+
37+
38+
# Thumbnails
39+
._*
40+
41+
# Files that might appear in the root of a volume
42+
.DocumentRevisions-V100
43+
.fseventsd
44+
.Spotlight-V100
45+
.TemporaryItems
46+
.Trashes
47+
.VolumeIcon.icns
48+
.com.apple.timemachine.donotpresent
49+
50+
# Directories potentially created on remote AFP share
51+
.AppleDB
52+
.AppleDesktop
53+
Network Trash Folder
54+
Temporary Items
55+
.apdisk

Dockerfile

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
FROM brainbeanapps/base-linux-build-environment:v3.0.0
2+
3+
LABEL maintainer="[email protected]"
4+
5+
# Switch to root
6+
USER root
7+
8+
# Set shell as non-interactive during build
9+
# NOTE: This is discouraged in general, yet we're using it only during image build
10+
ARG DEBIAN_FRONTEND=noninteractive
11+
12+
# Install OpenJDK
13+
# Ref: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
14+
RUN apt-get update \
15+
&& apt-get install -y --no-install-recommends openjdk-8-jdk \
16+
&& apt-get clean \
17+
&& rm -rf /var/lib/apt/lists/* \
18+
&& rm -rf /var/cache/oracle-jdk8-installer;
19+
20+
# Setup JAVA_HOME
21+
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
22+
23+
# Install Android Source dependencies
24+
RUN apt-get update \
25+
&& apt-get install -y --no-install-recommends \
26+
git-core \
27+
gnupg \
28+
flex \
29+
bison \
30+
gperf \
31+
build-essential \
32+
zip \
33+
curl \
34+
zlib1g-dev \
35+
gcc-multilib \
36+
g++-multilib \
37+
libc6-dev-i386 \
38+
lib32ncurses5-dev \
39+
x11proto-core-dev \
40+
libx11-dev \
41+
lib32z-dev \
42+
ccache \
43+
libgl1-mesa-dev \
44+
libxml2-utils \
45+
xsltproc \
46+
unzip \
47+
&& apt-get clean \
48+
&& rm -rf /var/lib/apt/lists/*
49+
50+
# Install Node.js & npm
51+
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
52+
&& apt-get update \
53+
&& apt-get install -y --no-install-recommends nodejs \
54+
&& apt-get clean \
55+
&& rm -rf /var/lib/apt/lists/* \
56+
&& npm install -g npm@latest
57+
58+
# Install Yarn
59+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
60+
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
61+
&& apt-get update \
62+
&& apt-get install -y --no-install-recommends yarn \
63+
&& apt-get clean \
64+
&& rm -rf /var/lib/apt/lists/*
65+
66+
# Install Ruby
67+
RUN apt-get update \
68+
&& apt-get install -y --no-install-recommends ruby \
69+
&& apt-get clean \
70+
&& rm -rf /var/lib/apt/lists/*
71+
72+
# Install Ruby
73+
RUN apt-get update \
74+
&& apt-get install -y --no-install-recommends maven \
75+
&& apt-get clean \
76+
&& rm -rf /var/lib/apt/lists/*
77+
78+
# Switch to user
79+
USER user
80+
WORKDIR /home/user

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017-2018 Brainbean Apps
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Android System Build Environment by [Brainbean Apps](https://brainbeanapps.com)
2+
3+
[![Build Status](https://img.shields.io/docker/build/brainbeanapps/android-system-build-environment.svg)](https://hub.docker.com/r/brainbeanapps/android-system-build-environment)
4+
[![Docker Pulls](https://img.shields.io/docker/pulls/brainbeanapps/android-system-build-environment.svg)](https://hub.docker.com/r/brainbeanapps/android-system-build-environment)
5+
[![Docker Stars](https://img.shields.io/docker/stars/brainbeanapps/android-system-build-environment.svg)](https://hub.docker.com/r/brainbeanapps/android-system-build-environment)
6+
[![Docker Layers](https://images.microbadger.com/badges/image/brainbeanapps/android-system-build-environment.svg)](https://microbadger.com/images/brainbeanapps/android-system-build-environment)
7+
8+
Android System Build Environment is based on Ubuntu LTS and is suitable for building:
9+
10+
* Android System images

0 commit comments

Comments
 (0)