Created
July 10, 2017 01:32
Gitlab Shared Runner CI with Docker Tutorial - Complete Guide on Building Android Studio Project in Gitlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk | |
MAINTAINER S Shivasurya <s.shivasurya@gmail.com> | |
ENV ANDROID_TARGET_SDK="25" \ | |
ANDROID_BUILD_TOOLS="25.0.3" \ | |
ANDROID_SDK_TOOLS="24.4.1" | |
RUN apt-get --quiet update --yes | |
RUN apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 | |
RUN wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz && \ | |
tar --extract --gzip --file=android-sdk.tgz | |
RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_TARGET_SDK} && \ | |
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools && \ | |
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS} | |
RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository && \ | |
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services && \ | |
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository | |
ENV ANDROID_HOME $PWD/android-sdk-linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Outdated, tools/android is deprecated