- OpenJDK 8
- Git
- Gradle 3.3
- Android NDK r13b
- Android SDK (android-24,android-25)
- Android Build-tools (24.0.0,24.0.1,24.0.2,24.0.3,25.0.2)
- Android System Images(sys-img-armeabi-v7a-android-24,sys-img-armeabi-v7a-android-25)
- Android Support Libraries
- Google Play Services
docker build -t alexisduque/android-ndk-gradle-docker .
docker push alexisduque/android-ndk-gradle-docker
This is what my .gitlab-ci.yml looks like:
image: alexisduque/android-ndk-gradle-docker
stages:
- build
build:
stage: build
script:
- gradle build
only:
- master
docker pull alexisduque/android-ndk-gradle-docker
Change directory to your project directory, then run:
docker run --tty --interactive --volume=$(pwd):/opt/workspace --user `id -u` --workdir=/opt/workspace --rm alexisduque/android-ndk-gradle-docker /bin/sh -c "gradle build"