• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ubuntu:22.04
2
3RUN apt-get update && \
4    apt-get install -y --no-install-recommends \
5  ca-certificates \
6  wget \
7  gcc \
8  libc-dev \
9  python3 \
10  python3-distutils \
11  unzip
12
13WORKDIR /android/
14ENV ANDROID_ARCH=x86_64
15COPY android-install-ndk.sh /android/
16RUN sh /android/android-install-ndk.sh $ANDROID_ARCH
17
18# We do not run x86_64-linux-android tests on an android emulator.
19# See ci/android-sysimage.sh for information about how tests are run.
20COPY android-sysimage.sh /android/
21RUN bash /android/android-sysimage.sh x86_64 x86_64-24_r07.zip
22
23ENV PATH=$PATH:/rust/bin:/android/ndk-$ANDROID_ARCH/bin \
24    CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android-gcc \
25    CC_x86_64_linux_android=x86_64-linux-android-gcc \
26    CXX_x86_64_linux_android=x86_64-linux-android-g++ \
27    HOME=/tmp
28