Skip to content
🐳 Docker image for Jenkins with Android
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
VERSION
buildImage.sh
runImage.sh

README.md

Jenkins-Android-Docker

Docker image for Jenkins with Android, View on DockerHub

Fork base code at futurice/android-jenkins-docker, Revised to the latest development environment.

Pre-installed packages

  • Jenkins Version: 2.164.1
  • Docker-CE 18.09.3

Android SDK

  • Android API 28 - build tools 28.0.3
  • Android API 27 - build tools 27.0.3
  • Android API 26 - build tools 26.0.3
  • Android API 25 - build tools 25.0.3 (1.0.2)
  • Android API 23 - build tools 23.0.3 (1.0.2)
  • extra-android-m2repository

Jenkins Plugin

  • 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)

Build image

docker build -t jenkins-android-docker .

Instead, you can use buildImage.sh

Using image

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.

docker-compose (v 2.4)

  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

With nginx

If you want use nginx for reverse-proxy, you can add this statement in conf file. proxy_pass http://jenkins:8080;

Modification

From Line 33 ~ 41, you can modify version info using sdkmanager. Feel free to change these value.

License

Do we really need license?

You can’t perform that action at this time.