Skip to content

Commit 8460445

Browse files
committed
Update android ndk of arm-android image to r13b
Also update sscache to 2017-04-04 and reorganize Dockerfile so we can share some image layers
1 parent 452bf08 commit 8460445

File tree

2 files changed

+30
-51
lines changed

2 files changed

+30
-51
lines changed

src/ci/docker/arm-android/Dockerfile

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM ubuntu:16.04
22

3-
RUN dpkg --add-architecture i386 && \
4-
apt-get update && \
3+
RUN apt-get update && \
54
apt-get install -y --no-install-recommends \
65
g++ \
76
make \
@@ -12,35 +11,48 @@ RUN dpkg --add-architecture i386 && \
1211
git \
1312
cmake \
1413
unzip \
15-
expect \
16-
openjdk-9-jre-headless \
1714
sudo \
18-
libstdc++6:i386 \
1915
xz-utils \
2016
libssl-dev \
2117
pkg-config
2218

23-
WORKDIR /android/
24-
ENV PATH=$PATH:/android/ndk-arm-9/bin:/android/sdk/tools:/android/sdk/platform-tools
25-
26-
COPY install-ndk.sh install-sdk.sh accept-licenses.sh /android/
27-
RUN sh /android/install-ndk.sh
28-
RUN sh /android/install-sdk.sh
29-
3019
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
3120
dpkg -i dumb-init_*.deb && \
3221
rm dumb-init_*.deb
3322

34-
COPY start-emulator.sh /android/
35-
36-
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/android/start-emulator.sh"]
37-
3823
RUN curl -o /usr/local/bin/sccache \
39-
https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-24-sccache-x86_64-unknown-linux-gnu && \
24+
https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-04-04-sccache-x86_64-unknown-linux-musl && \
4025
chmod +x /usr/local/bin/sccache
4126

27+
RUN curl -O https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip && \
28+
unzip -q android-ndk-r13b-linux-x86_64.zip && \
29+
python2.7 android-ndk-r13b/build/tools/make_standalone_toolchain.py \
30+
--install-dir /android-ndk \
31+
--arch arm \
32+
--api 9 && \
33+
rm -rf android-ndk-*
34+
35+
RUN dpkg --add-architecture i386 && \
36+
apt-get update && \
37+
apt-get install -y --no-install-recommends \
38+
expect \
39+
openjdk-9-jre-headless \
40+
libstdc++6:i386
41+
42+
WORKDIR /android/
43+
ENV PATH=$PATH:/android-ndk/bin
44+
ENV PATH=$PATH:/android/sdk/tools
45+
ENV PATH=$PATH:/android/sdk/platform-tools
46+
47+
COPY accept-licenses.sh /android/
48+
COPY install-sdk.sh /android/
49+
RUN sh /android/install-sdk.sh
50+
51+
COPY start-emulator.sh /android/
52+
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/android/start-emulator.sh"]
53+
4254
ENV RUST_CONFIGURE_ARGS \
4355
--target=arm-linux-androideabi \
44-
--arm-linux-androideabi-ndk=/android/ndk-arm-9
56+
--arm-linux-androideabi-ndk=/android-ndk
4557

4658
ENV SCRIPT python2.7 ../x.py test --target arm-linux-androideabi

src/ci/docker/arm-android/install-ndk.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)