Skip to content

WindSekirun/Jenkins-Android-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.266
  • Docker-CE

Android SDK

  • 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

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 52, you can modify version info using sdkmanager. Feel free to change these value.

License

Do we really need license?