Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. # This Dockerfile creates a static build image for CI
  2.  
  3. FROM openjdk:8-jdk
  4.  
  5. # Just matched `app/build.gradle`
  6. ENV ANDROID_COMPILE_SDK "28"
  7. # Just matched `app/build.gradle`
  8. ENV ANDROID_BUILD_TOOLS "28.0.3"
  9. # Version from https://developer.android.com/studio/releases/sdk-tools
  10. ENV ANDROID_SDK_TOOLS "24.4.1"
  11.  
  12. ENV ANDROID_HOME /android-sdk-linux
  13. ENV PATH="${PATH}:/android-sdk-linux/platform-tools/"
  14.  
  15. # install OS packages
  16. RUN apt-get --quiet update --yes
  17. RUN apt-get --quiet install --yes wget apt-utils tar unzip lib32stdc++6 lib32z1 build-essential ruby ruby-dev
  18. # We use this for xxd hex->binary
  19. RUN apt-get --quiet install --yes vim-common
  20. # install Android SDK
  21. RUN wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz
  22. RUN tar --extract --gzip --file=android-sdk.tgz
  23. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
  24. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
  25. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
  26. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
  27. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
  28. RUN echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement