Minimal Ubuntu based Docker image with the Android SDK
248
Minimal Ubuntu based Docker image with the Android SDK for building Android apps in a CI tool like GitLab CI. Make sure your CI environment's caching works as expected, this greatly improves the build time, especially if you use multiple build jobs.
A .gitlab-ci.yml with caching of your project's dependencies would look something like this:
image: vadyochik/android-sdk
stages:
- build
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/app-debug.apk
Many thanks to the following nice guys:
Content type
Image
Digest
Size
540 MB
Last updated
over 8 years ago
docker pull vadyochik/android-sdk