# See https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/ FROM openjdk:8-jdk MAINTAINER LEAP Encryption Access Project LABEL Description="Android baseimage based on openjdk:8-jdk" Vendor="LEAP" Version="1.x" ENV ANDROID_COMPILE_SDK "25" ENV ANDROID_BUILD_TOOLS "25.0.1" ENV ANDROID_SDK_TOOLS "25.2.3" ENV LANG en_US.utf8 RUN apt-get --quiet update --yes \ && apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 RUN wget --output-document=android-sdk.zip "https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip" \ && unzip android-sdk.zip && rm android-sdk.zip RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter "android-${ANDROID_COMPILE_SDK}" RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter "build-tools-${ANDROID_BUILD_TOOLS}" RUN export ANDROID_HOME="$PWD/android-sdk-linux" RUN export PATH="$PATH:$PWD/android-sdk-linux/platform-tools/" RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8