Forked from pranavavva/Android SDK Linux .gitpod.Dockerfile
Created
July 15, 2022 16:17
-
-
Save manniru/d15f3a1081d86f1602d394924b805c47 to your computer and use it in GitHub Desktop.
Gitpod Android Dockerfile
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 gitpod/workspace-full-vnc | |
| USER gitpod | |
| # Install custom tools, runtime, etc. using apt-get | |
| # For example, the command below would install "bastet" - a command line tetris clone: | |
| # | |
| # RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/* | |
| # | |
| # More information: https://www.gitpod.io/docs/42_config_docker/ | |
| ENV ANDROID_HOME /opt/android-sdk-linux | |
| USER root | |
| RUN apt update -qq && apt install zip unzip | |
| RUN cd /opt && \ | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && \ | |
| unzip -q *.zip -d ${ANDROID_HOME} && \ | |
| rm *.zip | |
| RUN chmod -R 777 ${ANDROID_HOME} | |
| RUN apt clean -qq | |
| USER gitpod | |
| ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools | |
| RUN bash -c "source ~/.sdkman/bin/sdkman-init.sh && \ | |
| sdk install java 8.0.232-open" | |
| #RUN yes | sdkmanager --licenses | |
| #RUN yes | sdkmanager --update --channel=3 | |
| # Please keep all sections in descending order! | |
| #RUN yes | sdkmanager \ | |
| # "platforms;android-29" \ | |
| # "platforms;android-28" \ | |
| # "platforms;android-27" \ | |
| # "platforms;android-26" \ | |
| # "platforms;android-25" \ | |
| # "platforms;android-24" \ | |
| # "platforms;android-23" \ | |
| # "platforms;android-22" \ | |
| # "platforms;android-21" \ | |
| # "platforms;android-19" \ | |
| # "platforms;android-17" \ | |
| # "platforms;android-15" \ | |
| # "build-tools;29.0.2" \ | |
| # "build-tools;29.0.1" \ | |
| # "build-tools;29.0.0" \ | |
| # "build-tools;28.0.3" \ | |
| # "build-tools;28.0.2" \ | |
| # "build-tools;28.0.1" \ | |
| # "build-tools;28.0.0" \ | |
| # "build-tools;27.0.3" \ | |
| # "build-tools;27.0.2" \ | |
| # "build-tools;27.0.1" \ | |
| # "build-tools;27.0.0" \ | |
| # "build-tools;26.0.2" \ | |
| # "build-tools;26.0.1" \ | |
| # "build-tools;25.0.3" \ | |
| # "build-tools;24.0.3" \ | |
| # "build-tools;23.0.3" \ | |
| # "build-tools;22.0.1" \ | |
| # "build-tools;21.1.2" \ | |
| # "build-tools;19.1.0" \ | |
| # "build-tools;17.0.0" \ | |
| # "system-images;android-29;google_apis;x86" \ | |
| # "system-images;android-28;google_apis;x86" \ | |
| # "system-images;android-26;google_apis;x86" \ | |
| # "system-images;android-25;google_apis;armeabi-v7a" \ | |
| # "system-images;android-24;default;armeabi-v7a" \ | |
| # "system-images;android-22;default;armeabi-v7a" \ | |
| # "system-images;android-19;default;armeabi-v7a" \ | |
| # "extras;android;m2repository" \ | |
| # "extras;google;m2repository" \ | |
| # "extras;google;google_play_services" \ | |
| # "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" \ | |
| # "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1" \ | |
| # "add-ons;addon-google_apis-google-23" \ | |
| # "add-ons;addon-google_apis-google-22" \ | |
| # "add-ons;addon-google_apis-google-21" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment