Public Repository

Last pushed: 2 years ago
Short Description
Android NDK r11b development environment
Full Description

Dockerfile

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=r11b \
ANDROID_SDK_VERSION=r24.4.1

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
#

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

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

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

RUN cd /opt/android-ndk-${ANDROID_NDK_VERSION} && chmod a+x ndk-*

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:$PATH

Docker Pull Command
Owner
jackyyu