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