an Android CI(Continuous Integration) docker image
356
An Android CI(Continuous Integration) docker that include :
sudo docker pull season/ci-android-gradle
# --hostname : some buildtools will append hostname to build informations
# -p 10022:22 mapping SSH port for Jenkins and other CI server useage
# RESET_ROOT_PASSWORD new root password, if u dont like this way, you can use docker exec command to change password
# when I run /usr/sbin/sshd -D directly, I got an error:
# Missing privilege separation direct: /var/run/sshd -D
# so, I use sleep 999d to instead to run sshd direct
sudo docker run -d --hostname build-android-gralde-node-1 --env RESET_ROOT_PASSWORD=your_root_pwd --name build-android-gralde-node-1 -p 10022:22 season/ci-android-gradle sleep 999d
# run bash
sudo docker exec -ti build-android-gralde-node-1 bash
# use chpasswd to change root passwd
echo "root:new_root_pwd" | chpasswd
# exit
exit
"Manage Jenkins"->"Manage Nodes"->"New Node"

Prefix Start Slave Command field must add: source /etc/profile && (notic, a blank at the end)
when the container running, you can update your android sdk by SSH or terminal
in ssh shell, run android update sdk command to install/update android sdk, lookup: Dockerfile
Content type
Image
Digest
Size
1.3 GB
Last updated
about 10 years ago
docker pull season/ci-android-gradle:1.0