GithubHelp home page GithubHelp logo

lotosbin / android-jenkins-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from futurice/android-jenkins-docker

0.0 3.0 1.0 11 KB

Docker image with Jenkins that can build Android apps.

License: Apache License 2.0

android jenkins docker

android-jenkins-docker's Introduction

android-jenkins-docker

Docker image with Jenkins that can build Android apps.

Building the image

Run the command

docker build -t android-jenkins .

Run the image

Run the command

docker run --name android-jenkins -p 8080:8080 -p 50000:50000 -v SOME_HOST_PATH:/var/jenkins_home android-jenkins

Replace SOME_HOST_PATH with the path to a folder on your host system where you want Jenkins to store its builds and configurations, for example /var/android_jenkins_home on Linux systems. If port 8080 is already used by another process on your host, you can modify which port redirects to Jenkins. If you want Jenkins to be accessible on port 8090 on your host, then replace the port argument with 8090:8080 in the run command.

Windows tips

Setting the host path for jenkins_home is a bit tricky on Windows hosts. First of all, you probably need to share the drive where the folder lives and this resource explains how. Then, you need to provide the path with forward slashes, for example c:/Users/myuser/android_jenkins_home:/var/jenkins_home

Accessing Jenkins

Point your browser to http://localhost:8080 (or whichever port you bound) and configure your build.

Gradle tips

If you are using gradle to build your project, you will want to configure the build to use the gradle wrapper. If you just want to create apks, then set the task to assembleDebug or assembleRelease. Finally, add -x lint to the switches section to avoid lint from creating errors and disrupting the build.

Modifying the image

Just modify the Dockerfile in case you want to modify the environment, for example

  • Android SDK version
  • Buildtools version
  • Jenkins plugins

PRs are welcome for example for simplifying the mechanism for installing multiple buildtools versions.

android-jenkins-docker's People

Contributors

futuolli avatar lotosbin avatar oasalonen avatar

Watchers

 avatar  avatar  avatar

Forkers

oxydedefer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.