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-build/Dockerfile at develop · brokenjava/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 }}
brokenjava
status-react
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
status-react
/
docker-build
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
99 lines (70 loc) · 3.39 KB
develop
Breadcrumbs
status-react
/
docker-build
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
99 lines (70 loc) · 3.39 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
FROM
openjdk:8-jdk
ENV
DEBIAN_FRONTEND noninteractive
ENV
ANDROID_HOME /opt/android-sdk-linux
ENV
PATH ${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}:${ANDROID_HOME}/tools
ENV
ANDROID_NDK /opt/android-ndk-linux
ENV
ANDROID_NDK_HOME /opt/android-ndk-linux
WORKDIR
/opt
RUN
mkdir -p /opt/android-sdk-linux && mkdir -p ~/.android && touch ~/.android/repositories.cfg
#
Install dependencies
RUN
apt-get update && \
apt-get install -yq supervisor curl unzip wget sudo maven libc6 libstdc++6 zlib1g libncurses5 make file --no-install-recommends && \
apt-get clean
RUN
cd /opt/android-sdk-linux && \
wget -q --output-document=sdk-tools.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip && \
unzip sdk-tools.zip && \
rm -f sdk-tools.zip && \
sdkmanager
"cmake;3.6.4111459"
RUN
cd /opt/android-sdk-linux && \
wget -q --output-document=sdk-platform-tools.zip
'https://dl.google.com/android/repository/platform-tools-latest-linux.zip'
&& \
unzip sdk-platform-tools.zip && \
rm -f sdk-platform-tools.zip
RUN
wget -q --output-document=android-ndk.zip https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip && \
unzip android-ndk.zip && \
rm -f android-ndk.zip && \
mv android-ndk-r15c android-ndk-linux
RUN
yes | sdkmanager --licenses
#
install Node JS (https://github.com/nodejs/docker-node/blob/90d5e3df903b830d039d3fe8f30e3a62395db37e/7.5/Dockerfile)
RUN
groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
ENV
NPM_CONFIG_LOGLEVEL info
#
that's the only version that doesn't hang on installing react-native-http inside docker
ENV
NODE_VERSION 8.9.1
ENV
NODE_ENV development
RUN
curl -SLO
"https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz"
\
&& tar -xJf
"node-v$NODE_VERSION-linux-x64.tar.xz"
-C /usr/local --strip-components=1 \
&& rm
"node-v$NODE_VERSION-linux-x64.tar.xz"
\
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
#
END install Node JS
#
Support Gradle
ENV
TERM dumb
#
Install Lein
#
Check out latest releases from https://github.com/technomancy/leiningen/releases
ENV
LEIN_VERSION=2.8.1
ENV
LEIN_INSTALL=/usr/local/bin/
RUN
mkdir -p $LEIN_INSTALL \
&& wget -q https://raw.githubusercontent.com/technomancy/leiningen/$LEIN_VERSION/bin/lein-pkg \
&& mv lein-pkg $LEIN_INSTALL/lein \
&& chmod 0755 $LEIN_INSTALL/lein \
&& wget -q https://github.com/technomancy/leiningen/releases/download/$LEIN_VERSION/leiningen-$LEIN_VERSION-standalone.zip \
&& mkdir -p /usr/share/java \
&& mv leiningen-$LEIN_VERSION-standalone.zip /usr/share/java/leiningen-$LEIN_VERSION-standalone.jar
#
Install React-Native
RUN
npm install -g react-native-cli
#
Add files needed for installing dependencies
#
Use directory /build for that purpose
WORKDIR
/build
ADD
.env.jenkins .env
ADD
./project.clj ./
RUN
lein deps
ADD
./package.json package-lock.json ./
RUN
npm install
ADD
. ./
RUN
make setup
RUN
make prepare
COPY
supervisord.conf /etc/supervisord.conf
RUN
keytool -genkey -v -keystore status-im.keystore -storepass password -alias status -keyalg RSA -keysize 2048 -validity 10000 -dname
"CN=mqttserver.ibm.com, OU=ID, O=IBM, L=Hursley, S=Hants, C=GB"
-keypass password
RUN
mkdir -p /root/.gradle
RUN
mv status-im.keystore /root/.gradle/
RUN
./android/gradlew --parallel -q -b android/build.gradle assembleRelease
CMD
[
"/usr/bin/supervisord"
,
"-c"
,
"/etc/supervisord.conf"
]
You can’t perform that action at this time.