A docker image build with teamcity-minimal-agent + Android build environment.
It includes the following components:
- Ubuntu 18.04
- Android SDK 28
- Android build tools:
- 28.0.3
- Android NDK r20
- extra-android-m2repository
- extra-google-m2repository
- extra-google-google_play_services
The docker image is publicly automated build on Docker Hub based on the Dockerfile in this repo, so there is no hidden stuff in it. To pull the latest docker image:
docker pull frankyjquintero/teamcity-agent-android-build-box:latest
You can use this docker image to build your Android project with a single docker command:
cd <android project directory> # change working directory to your project root directory.
docker run --rm -v `pwd`:/project frankyjquintero/teamcity-agent-android-build-box bash -c 'cd /project; ./gradlew build'
Run docker image with interactive bash shell:
docker run -v `pwd`:/project -it frankyjquintero/teamcity-agent-android-build-box
If you want to build the docker image by yourself, you can use following command.
docker build -t frankyjquintero/teamcity-agent-android-build-box .
If you want to enhance this docker image or fix something, feel free to send pull request.