Public Repository

Last pushed: 2 years ago
Short Description
Android NDK r10e build environment
Full Description

FROM ubuntu:14.04
MAINTAINER Jacky Yu jackyyu@smarttech.com

LABEL Description="Android NDK r11 Build Tools" Version="11.0"
#

Tools version

#
ENV ANDROID_NDK_VERSION=r10e \
ANDROID_SDK_VERSION=r24.4.1 \
ANDROID_STUDIO_VERSION=1.5.1.0 \
ANDROID_STUDIO_FILE_VERSION=141.2456560

RUN apt-get update && \
apt-get install -y \
build-essential zip unzip tar curl wget openjdk-7-jdk && \
apt-get clean

Download and install Android NDK

RUN cd /opt && \
wget http://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip && \
unzip android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip && \
rm android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip && \
cd /opt/android-ndk-${ANDROID_NDK_VERSION} && chmod a+x ndk-*
#

Download and install Android SDK

#
RUN cd /opt && \
wget http://dl.google.com/android/android-sdk_${ANDROID_SDK_VERSION}-linux.tgz && \
tar xvf android-sdk_${ANDROID_SDKVERSION}-linux.tgz && \
rm android-sdk
${ANDROID_SDK_VERSION}-linux.tgz
#

Download Android Studio

#
RUN cd /opt && \
wget https://dl.google.com/dl/android/studio/ide-zips/${ANDROID_STUDIO_VERSION}/android-studio-ide-${ANDROID_STUDIO_FILE_VERSION}-linux.zip && \
unzip android-studio-ide-${ANDROID_STUDIO_FILE_VERSION}-linux.zip && \
rm android-studio-ide-${ANDROID_STUDIO_FILE_VERSION}-linux.zip

RUN /opt/android-ndk-${ANDROID_NDK_VERSION}/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-19 --toolchain=arm-linux-androideabi-4.8 --install-dir=/opt/android-standalone-ndk/arm-androideabi-4.8 --system=linux-x86_64
RUN /opt/android-ndk-${ANDROID_NDK_VERSION}/build/tools/make-standalone-toolchain.sh --arch=x86 --platform=android-19 --toolchain=x86-4.8 --install-dir=/opt/android-standalone-ndk/x86-4.8 --system=linux-x86_64

RUN echo "y" | /opt/android-sdk-linux/tools/android -s update sdk -u -t platform-tools,build-tools,android-19,android-16

ENV JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \
ANDROID_HOME=/opt/android-sdk-linux \
ANDROID_NDK=/opt/android-ndk-${ANDROID_NDK_VERSION}
ENV ANDROID_SDK=$ANDROID_HOME \
PATH=$ANDROID_NDK:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:/opt/android-studio/bin:$PATH

Docker Pull Command
Owner
jackyyu