Container set up with build tools in order to run Android builds in a Docker setup.
- Base: phusion/baseimage
- Ruby: 2.2.8
- RubyGems: 2.6.6
- Bundler: 1.12.5
- Java8 JDK: latest as-of 27.12.2017
- Fastlane: 2.64.0
- Node.js: 9.3.0
- Yarn: 1.3.2
- android-packages.txt
- dependencies.txt
image: anthonymonori/android-ci-image:latest
Note: Currently supporting Travis CI and GitLab CI.
docker login
docker pull anthonymonori/android-ci-image:latest
docker run -it -d -p <port>:<port-internal> --name <container-name> anthonymonori/android-ci-image:latest
Note: of course, you need to change <port>,<port-internal>,<container-name> to run the above command lines. You also might want to enable the variable on whatever cloud solutions you are running.
Because the Fastlane gradle action is used, bundling Gradle into this Docker image would always take priority over the gradlew
coming with your project. This de-coupling is helpful so we don't need to update and depend on this image, but rather let the incoming project to have its gradle wrapper execute the tasks. It is necessary to use gradle 2.2.0 and above in order to auto-download missing SDK packages and tools during build-time. You can specify this in your top-level build.gradle file, under dependencies:
dependencies {
classpath 'com.android.tools.build:gradle:2.2+'
}
docker build .
docker push anthonymonori/android-ci-image
Use the Issues
tab above.