Public | Automated Build

Last pushed: 8 months ago
Short Description
ubuntu-openjdk-8
Full Description

Docker Android







Usage

$ curl -L https://github.com/yongjhih/docker-android/raw/master/docker-android > ~/bin/docker-android
$ chmod a+x ~/bin/docker-android

$ docker-android ./gradlew assembleDebug

Bonus

yongjhih/ubuntu-openjdk-8

yongjhih/android:jdk8

yongjhih/android:jdk8-extra

yongjhih/android:jdk8-all

yongjhih/android:jdk8-all-jenkins

Usage of ubuntu images

jenkins master:

docker run -d -p 8080:8080 -p 50000:50000 -v /home/jenkins:/var/jenkins_home yongjhih/android:jdk8-all-jenkins

android dev with 1001 uid:

docker run -it -v /home/yongjhih/.gradle:/home/yongjhih/.gradle -v /home/yongjhih/works/android:/home/yongjhih/works/android yongjhih/android:jdk8-all-1001 bash

android dev with other uid:

FROM yongjhih/android:jdk8-all

ENV UID=${UID:-1001}
RUN useradd -m -s /bin/bash -u $UID yongjhih # UID
RUN echo "yongjhih ALL=(ALL)   NOPASSWD: ALL" >> /etc/sudoers

RUN find ${ANDROID_HOME} -type d -exec chmod a+rwx {} \; # Fix **/package.xml (Permission Denied)

USER yongjhih
docker build --fr -t $UID .
docker run -it -v /home/yongjhih/.gradle:/home/yongjhih/.gradle -v /home/yongjhih/works/android:/home/yongjhih/works/android $UID bash

ref.

LICENSE

Apache 2.0, 2015 8tory Inc.

Docker Pull Command
Owner
yongjhih
Source Repository

Comments (0)