1
1
FROM ubuntu:16.04
2
2
3
- RUN dpkg --add-architecture i386 && \
4
- apt-get update && \
3
+ RUN apt-get update && \
5
4
apt-get install -y --no-install-recommends \
6
5
g++ \
7
6
make \
@@ -12,35 +11,48 @@ RUN dpkg --add-architecture i386 && \
12
11
git \
13
12
cmake \
14
13
unzip \
15
- expect \
16
- openjdk-9-jre-headless \
17
14
sudo \
18
- libstdc++6:i386 \
19
15
xz-utils \
20
16
libssl-dev \
21
17
pkg-config
22
18
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
-
30
19
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
31
20
dpkg -i dumb-init_*.deb && \
32
21
rm dumb-init_*.deb
33
22
34
- COPY start-emulator.sh /android/
35
-
36
- ENTRYPOINT ["/usr/bin/dumb-init" , "--" , "/android/start-emulator.sh" ]
37
-
38
23
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 && \
40
25
chmod +x /usr/local/bin/sccache
41
26
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
+
42
54
ENV RUST_CONFIGURE_ARGS \
43
55
--target=arm-linux-androideabi \
44
- --arm-linux-androideabi-ndk=/android/ndk-arm-9
56
+ --arm-linux-androideabi-ndk=/android-ndk
45
57
46
58
ENV SCRIPT python2.7 ../x.py test --target arm-linux-androideabi
0 commit comments