# ===----------------------------------------------------------------------===## # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ===----------------------------------------------------------------------===## # # This file defines the image we use to run Android testing on Buildkite. # From the root of the monorepo, this image can be built with: # # $ docker build --file libcxx/utils/ci/docker/android-builder.dockerfile \ # --build-arg BASE_IMAGE_VERSION= \ # --build-arg ANDROID_CLANG_VERSION= \ # --build-arg ANDROID_CLANG_PREBUILTS_COMMIT= \ # --build-arg ANDROID_SYSROOT_COMMIT= . # # This image also gets built on every push to `main` that modifies these Docker # files, and can be found at ghcr.io/llvm/libcxx-android-builder. # # To run the image and start a Buildkite Agent, run it as: # # $ docker run --env-file -it ghcr.io/llvm/libcxx-android-builder:latest # # The environment variables in `` should be the ones necessary # to run a BuildKite agent: # # BUILDKITE_AGENT_TOKEN= ARG BASE_IMAGE_VERSION FROM ghcr.io/llvm/libcxx-linux-builder-base:${BASE_IMAGE_VERSION} ARG ANDROID_CLANG_VERSION ARG ANDROID_CLANG_PREBUILTS_COMMIT ARG ANDROID_SYSROOT_COMMIT # Install the Android platform tools (e.g. adb) into /opt/android/sdk. RUN <