mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-27 01:57:00 +00:00
42 lines
1.1 KiB
Docker
42 lines
1.1 KiB
Docker
FROM ubuntu:16.04
|
|
|
|
COPY scripts/android-base-apt-get.sh /scripts/
|
|
RUN sh /scripts/android-base-apt-get.sh
|
|
|
|
COPY scripts/dumb-init.sh /scripts/
|
|
RUN sh /scripts/dumb-init.sh
|
|
|
|
COPY scripts/android-ndk.sh /scripts/
|
|
RUN . /scripts/android-ndk.sh && \
|
|
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm 9
|
|
|
|
RUN dpkg --add-architecture i386 && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
libgl1-mesa-glx \
|
|
libpulse0 \
|
|
libstdc++6:i386 \
|
|
openjdk-9-jre-headless \
|
|
tzdata
|
|
|
|
COPY scripts/android-sdk.sh /scripts/
|
|
RUN . /scripts/android-sdk.sh && \
|
|
download_and_create_avd tools_r25.2.5-linux.zip armeabi-v7a 18
|
|
|
|
ENV PATH=$PATH:/android/sdk/tools
|
|
ENV PATH=$PATH:/android/sdk/platform-tools
|
|
|
|
ENV TARGETS=arm-linux-androideabi
|
|
|
|
ENV RUST_CONFIGURE_ARGS \
|
|
--target=$TARGETS \
|
|
--arm-linux-androideabi-ndk=/android/ndk/arm-9
|
|
|
|
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
|
|
|
|
COPY scripts/sccache.sh /scripts/
|
|
RUN sh /scripts/sccache.sh
|
|
|
|
COPY scripts/android-start-emulator.sh /scripts/
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/scripts/android-start-emulator.sh"]
|