Docker image for Jenkins with Android, View on DockerHub
Fork base code at futurice/android-jenkins-docker, Revised to the latest development environment.
- Jenkins Version: 2.266
- Docker-CE
- Android API 30 - build tools 30.0.02 (1.1.3)
- Android API 29 - build tools 29.0.2 (1.0.8)
- Android API 28 - build tools 28.0.3
- Android API 27 - build tools 27.0.3
- Android API 26 - build tools 26.0.3
- git
- gradle
- android-emulator
- ws-cleanup
- slack
- embeddable-build-status
- blueocean (1.0.4)
- github-coverage-reporter (1.0.4)
- jacoco (1.0.4)
- github-pr-coverage-status (1.0.4)
- locale (1.0.6)
docker build -t jenkins-android-docker .
Instead, you can use buildImage.sh
docker run -d -p 8080:8080 -p 50000:50000 -v /data/jenkins-android-docker:/var/jenkins_home windsekirun/jenkins-android-docker:<latest-version>
- Latest version need to replace real version. You can find tag in Release Page
- Before run image, you should provide permission to access /data/jenkins-android-docker with
sudo chown -R 1000:1000 /data/jenkins-android-docker
statement.
jenkins:
image: windsekirun/jenkins-android-docker:<latest-version>
container_name: jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
- "/data/jenkins-android-docker:/var/jenkins_home"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always
If you want use nginx for reverse-proxy, you can add this statement in conf file.
proxy_pass http://jenkins:8080;
From Line 52, you can modify version info using sdkmanager
. Feel free to change these value.
Do we really need license?