Public | Automated Build

Last pushed: 2 years ago
Short Description
ubuntu-jenkins-android-extra
Full Description

Android Jenkins on Docker








Usage

jenkins master:

docker run -d -p 8080:8080 -p 50000:50000 -v /home/jenkins:/var/jenkins_home yongjhih/ubuntu-openjdk-8-android-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/ubuntu-openjdk-8-android-all-1001 bash

android dev with other uid:

FROM yongjhih/ubuntu-openjdk-8-android-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 by 8tory

Docker Pull Command
Owner
yongjhih

Comments (0)