Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
status-react/docker/android/Dockerfile at develop · https-iglesiadedios-com/status-react · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
https-iglesiadedios-com
status-react
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
status-react
/
docker
/
android
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
72 lines (61 loc) · 3.14 KB
develop
Breadcrumbs
status-react
/
docker
/
android
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
72 lines (61 loc) · 3.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
This image is only for extracting and cleaning up NDK and SDK
ARG
BASE_IMAGE_TAG
FROM
statusteam/status-build-base:${BASE_IMAGE_TAG} AS sdk_and_ndk
ARG
ANDROID_NDK_VERSION
ARG
ANDROID_SDK_VERSION
ARG
SDK_PLATFORM_VERSION
ARG
SDK_BUILD_TOOLS_VERSION
#
names of packages to install with sdkmanager
ENV
SDK_PACKAGES emulator patcher;v4 \
platforms;android-26
\
platforms;${SDK_PLATFORM_VERSION} \
build-tools;${SDK_BUILD_TOOLS_VERSION} \
extras;android;m2repository extras;google;m2repository
#
install SDK
COPY
sdk-tools-linux-${ANDROID_SDK_VERSION}.zip /tmp/sdk-tools-linux.zip
RUN
unzip -q /tmp/sdk-tools-linux.zip -d /usr/lib/android-sdk \
&& mkdir ~/.android && touch ~/.android/repositories.cfg \
&& yes | /usr/lib/android-sdk/tools/bin/sdkmanager --licenses > /dev/null \
&& for PKG in ${SDK_PACKAGES}; do \
yes | /usr/lib/android-sdk/tools/bin/sdkmanager --install
"${PKG}"
> /dev/null; done \
&& chmod 777 -R /usr/lib/android-sdk
#
cleanup SDK
RUN
cd /usr/lib/android-sdk \
&& rm -fr extras emulator ndk-bundle/toolchains/{aarch64-linux-android-4.9,x86-4.9,x86_64-4.9,llvm}
#
install NDK
COPY
android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip /tmp/android-ndk-linux.zip
RUN
unzip -q /tmp/android-ndk-linux.zip -d /usr/lib \
&& ln -sf /usr/lib/android-ndk-${ANDROID_NDK_VERSION} /usr/lib/android-ndk \
&& chmod 777 -R /usr/lib/android-ndk
#
cleanup NDK
RUN
cd /usr/lib/android-ndk && rm -fr docs tests samples \
&& find toolchains -mindepth 1 -maxdepth 1 | grep -vE
'(arm|aarch|x86|mips).*4.(8|9)'
| xargs rm -fr \
&& find prebuilt -mindepth 1 -maxdepth 1 | grep -vE
'(android-arm|linux-x86)'
| xargs rm -fr \
&& find platforms -mindepth 1 -maxdepth 1 | grep -v android-21 | xargs rm -fr \
&& find sources -mindepth 2 -maxdepth 2 | grep -v
'gnu-libstdc'
| xargs rm -fr
#
###############################################################################
FROM
statusteam/status-build-base:${BASE_IMAGE_TAG}
ARG
ANDROID_NDK_VERSION
ARG
ANDROID_SDK_VERSION
#
We have to do this because Jenkins doesn't let us
#
https://issues.jenkins-ci.org/browse/JENKINS-49076
ENV
GRADLE_USER_HOME=/var/tmp/gradle \
BUNDLE_PATH=/var/tmp/bundle \
ANDROID_HOME=/usr/lib/android-sdk \
ANDROID_SDK_ROOT=/usr/lib/android-sdk \
ANDROID_NDK=/usr/lib/android-ndk \
ANDROID_NDK_HOME=/usr/lib/android-ndk
RUN
add-apt-repository -y ppa:cwchien/gradle \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get -q -y --no-install-recommends install \
gradle ruby ruby-dev ruby-bundler \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man \
&& gem install cocoapods bundler fastlane fastlane-plugin-diawi fastlane-plugin-clean_testflight_testers CFPropertyList
#
Install Android SDK & NDK
COPY
--from=sdk_and_ndk /usr/lib/android-sdk /usr/lib/android-sdk
COPY
--from=sdk_and_ndk /usr/lib/android-ndk /usr/lib/android-ndk
RUN
chmod o+w /usr/lib/android-sdk /usr/lib/android-ndk
LABEL
source=
"https://github.com/status-im/status-react/tree/develop/docker/android"
\
description=
"Image for building Android version of Status app."
\
maintainer=
"jakub@status.im"
You can’t perform that action at this time.