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
Summary:
Test Plan
Rebuilt Docker images locally, confirmed successful image build.
Can later be reproed with
```
npm run test-android-setup
npm run test-android-build
npm run test-android-run-unit-tests
```
Note that unit tests are failing in master, but in this PR we can repro the same failure.
Closes#17313
Differential Revision: D6624899
Pulled By: hramos
fbshipit-source-id: 42b8cd708ec2a02399bb6ef30fd73faba2646f79
RUN git clone https://github.com/facebook/buck.git /opt/buck
31
+
RUN git clone https://github.com/facebook/buck.git /opt/buck --branch $BUCK_VERSION --depth=1
32
32
WORKDIR /opt/buck
33
-
RUN git checkout $BUCK_VERSION
34
33
35
34
# build buck
36
35
RUN ant
@@ -46,10 +45,11 @@ RUN ./configure
46
45
RUN make
47
46
RUN make install
48
47
48
+
# Full reference at https://dl.google.com/android/repository/repository2-1.xml
49
49
# download and unpack android
50
50
RUN mkdir /opt/android
51
51
WORKDIR /opt/android
52
-
RUN curl --silent https://dl.google.com/android/repository/tools_r$ANDROID_VERSION-linux.zip > android.zip
52
+
RUN curl --silent https://dl.google.com/android/repository/tools_r$ANDROID_TOOLS_VERSION-linux.zip > android.zip
53
53
RUN unzip android.zip
54
54
RUN rm android.zip
55
55
@@ -63,39 +63,15 @@ RUN unzip ndk.zip
63
63
RUN rm ndk.zip
64
64
65
65
# Add android SDK tools
66
-
67
-
# Android SDK Platform-tools, revision 25.0.4
68
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android SDK Platform-tools, revision 25.0.4" | awk '{ print $1 }' | sed 's/.$//')
69
-
70
-
# Android SDK Build-tools, revision 23.0.1
71
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android SDK Build-tools, revision 23.0.1" | awk '{ print $1 }' | sed 's/.$//')
72
-
73
-
# SDK Platform Android 6.0, API 23, revision 3
74
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "SDK Platform Android 6.0, API 23" | awk '{ print $1 }' | sed 's/.$//')
75
-
76
-
# SDK Platform Android 4.4.2, API 19, revision 4
77
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "SDK Platform Android 4.4.2, API 19, revision 4" | awk '{ print $1 }' | sed 's/.$//')
78
-
79
-
# ARM EABI v7a System Image, Android API 19, revision 5
80
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "ARM EABI v7a System Image, Android API 19, revision 5" | awk '{ print $1 }' | sed 's/.$//')
81
-
82
-
# Intel x86 Atom System Image, Android API 19, revision 5
83
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Intel x86 Atom System Image, Android API 19, revision 5" | awk '{ print $1 }' | sed 's/.$//')
84
-
85
-
# Google APIs, Android API 23, revision 1
86
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Google APIs, Android API 23, revision 1" | awk '{ print $1 }' | sed 's/.$//')
87
-
88
-
# Android Support Repository, revision 45
89
-
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android Support Repository" | awk '{ print $1 }' | sed 's/.$//')
66
+
RUN echo "y" | sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
67
+
RUN echo "y" | sdkmanager "platforms;android-23"
68
+
RUN echo "y" | sdkmanager "platforms;android-19"
69
+
RUN echo "y" | sdkmanager "build-tools;23.0.1"
70
+
RUN echo "y" | sdkmanager "add-ons;addon-google_apis-google-23"
71
+
RUN echo "y" | sdkmanager "extras;android;m2repository"
90
72
91
73
# Link adb executable
92
74
RUN ln -s /opt/android/platform-tools/adb /usr/bin/adb
93
75
94
-
# Install google-chrome
95
-
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
0 commit comments