Last active
October 21, 2015 11:49
-
-
Save juanmacuevas/4f712951c8a327862d86 to your computer and use it in GitHub Desktop.
Ubuntu container with java, gradle and android SDK
This file contains 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
# Version 0.1 21/OCT/2015 | |
FROM ubuntu | |
MAINTAINER juanmacuevas <[email protected]> | |
# Install some basic tools | |
RUN apt-get update && apt-get install -y wget git curl zip | |
# Install JDK and dev tools and gradle | |
RUN apt-get install -y default-jdk gradle libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 | |
# Clean apt-get list | |
RUN rm -rf /var/lib/apt/lists/* | |
# Install Android SDK 24.4.1 | |
RUN cd /usr/local/ && curl -L -O http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && tar xf android-sdk_r24.4.1-linux.tgz | |
# Install Android tools | |
RUN echo y | /usr/local/android-sdk-linux/tools/android update sdk --filter tools --no-ui --force -a | |
RUN echo y | /usr/local/android-sdk-linux/tools/android update sdk --filter platform-tools --no-ui --force -a | |
# Install Android NDK | |
#RUN cd /usr/local && curl -L -O http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2 && tar xf android-ndk-r9b-linux-x86_64.tar.bz2 | |
# Environment variables | |
ENV ANDROID_HOME /usr/local/android-sdk-linux | |
ENV GRADLE_HOME /usr/share/gradle | |
# ENV ANDROID_NDK_HOME /usr/local/android-ndk-r9b | |
ENV PATH $PATH:$ANDROID_HOME/tools | |
ENV PATH $PATH:$ANDROID_HOME/platform-tools | |
ENV PATH $PATH:$GRADLE_HOME/bin | |
# ENV PATH $PATH:$ANDROID_NDK_HOME | |
# Clean up | |
RUN rm -f /usr/local/*.tgz | |
RUN apt-get clean | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment