Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.16 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.16 KB

Android NDK Gradle

/android-ndk-gradle

Included

  • 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

Build image

docker build -t alexisduque/android-ndk-gradle-docker .

Push build version to repository

docker push alexisduque/android-ndk-gradle-docker

Usage

GitLab CI

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

Without GitLab

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"