This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
90 lines (88 loc) · 5.15 KB
/
Dockerfile
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
FROM ubuntu:20.04
ENV ANDROID_HOME /opt/android-sdk-linux
ENV PATH ${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
ENV GRADLE_VERSION=6.7.1
ENV PATH=$PATH:"/opt/gradle/gradle-6.7.1/bin/"
ENV GCLOUD_SDK_CONFIG /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json
ENV QT_QPA_PLATFORM offscreen
ENV LD_LIBRARY_PATH ${ANDROID_HOME}/tools/lib64:${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib
ENV APKINFO_TOOLS /opt/apktools
RUN dpkg --add-architecture i386 && \
apt-get update -qq && \
apt-get -y install wget apt-transport-https software-properties-common curl gnupg gpg-agent snapd --no-install-recommends && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/adoptopenjdk.list && \
mkdir -p /usr/share/man/man1 && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get purge docker-ce containerd.io ruby* && \
DEBIAN_FRONTEND=noninteractive apt-cache policy docker-ce && \
DEBIAN_FRONTEND=noninteractive apt-get -y install git mercurial rsync expect python build-essential \
unzip zip tree build-essential zlib1g-dev \
libssl-dev libreadline6-dev libyaml-dev ruby-full \
docker-ce docker-ce-cli containerd.io adoptopenjdk-8-hotspot libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses-dev lib32z1 \
libqt5widgets5 \
nodejs yarn git-core libgdbm-dev libncurses5-dev automake libtool bison libffi-dev \
nodejs --no-install-recommends \
google-cloud-sdk && \
docker --version && \
ruby --version && \
gem install rubygems-update && \
gem install psych && \
gem update psych && \
gem install bundler -v '~>1' && \
export LC_ALL=en_US.UTF-8 && \
export LANG=en_US.UTF-8 && \
gem install fastlane && \
curl -fL https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
docker-compose --version && \
cd /opt && \
wget -q https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -O android-sdk-tools.zip && \
unzip -q android-sdk-tools.zip -d ${ANDROID_HOME} && \
rm android-sdk-tools.zip && \
cd - && \
yes | sdkmanager --licenses && \
touch /root/.android/repositories.cfg && \
sdkmanager "emulator" "tools" "platform-tools" && \
yes | sdkmanager --update --channel=3 && \
yes | sdkmanager \
"platforms;android-30" \
"platforms;android-29" \
"platforms;android-28" \
"build-tools;30.0.2" \
"build-tools;30.0.0" \
"build-tools;29.0.3" \
"build-tools;28.0.3" \
"extras;android;m2repository" \
"extras;google;m2repository" \
"extras;google;google_play_services" \
"extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" \
"extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1" \
"add-ons;addon-google_apis-google-23" \
"add-ons;addon-google_apis-google-22" \
"add-ons;addon-google_apis-google-21" && \
fastlane --version && \
/usr/bin/gcloud config set --installation component_manager/disable_update_check true && \
sed -i -- 's/\"disable_updater\": false/\"disable_updater\": true/g' $GCLOUD_SDK_CONFIG && \
/usr/bin/gcloud config set --installation core/disable_usage_reporting true && \
sed -i -- 's/\"disable_usage_reporting\": false/\"disable_usage_reporting\": true/g' $GCLOUD_SDK_CONFIG && \
npm config set strict-ssl false && \
npm update npm@latest && \
npm install -g firebase-tools && \
mkdir ${APKINFO_TOOLS} && \
wget -q https://github.com/google/bundletool/releases/download/0.10.3/bundletool-all-0.10.3.jar -O ${APKINFO_TOOLS}/bundletool.jar && \
cd /opt && \
wget -q https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.5.0-5435860/aapt2-3.5.0-5435860-linux.jar -O aapt2.jar && \
unzip -q aapt2.jar aapt2 -d ${APKINFO_TOOLS} && \
rm aapt2.jar && \
cd - && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*