1%YAML 1.2 2--- | 3 # Copyright 2021 The gRPC Authors 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 FROM debian:11 18 19 <%include file="../../apt_get_basic.include"/> 20 <%include file="../../run_tests_python_deps.include"/> 21 <%include file="../../cmake.include"/> 22 <%include file="../../run_tests_addons.include"/> 23 RUN apt update && apt upgrade -y 24 25 # Java 26 RUN apt-get install -y openjdk-11-jdk 27 28 # Install Android SDK 29 ENV ANDROID_HOME /opt/android-sdk 30 RUN mkdir -p $ANDROID_HOME && ${'\\'} 31 wget -O cmd.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip && ${'\\'} 32 unzip cmd.zip && rm cmd.zip && ${'\\'} 33 yes | ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME --licenses && ${'\\'} 34 ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME 'tools' && ${'\\'} 35 ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME 'build-tools;30.0.2' && ${'\\'} 36 ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME 'platforms;android-26' && ${'\\'} 37 ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME 'ndk;25.1.8937393' && ${'\\'} 38 ./cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME 'cmake;3.22.1' 39 40 # Install gcloud 41 RUN wget -O google-cloud-cli.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-467.0.0-linux-x86_64.tar.gz && ${'\\'} 42 tar -xf google-cloud-cli.tar.gz && ${'\\'} 43 ./google-cloud-sdk/install.sh --bash-completion=false --path-update=true && ${'\\'} 44 rm -rf google-cloud-cli.tar.gz 45 RUN ln -s /google-cloud-sdk/bin/gcloud /usr/local/bin/gcloud 46 47 # Define the default command. 48 CMD ["bash"] 49