You want to build Android apps on your CI server or just play around with certain Android SDKs? Then these Docker images could come in very handy!
They are all built and automatically published on Dockerhub - check out the list of tags available.
To play around with an image locally, install Docker and run one of these commands:
# run the minimal image (just Java + sdkmanager)
docker run --rm -it mreichelt/android:minimal
# or run an image with specific SDK installed
docker run --rm -it mreichelt/android:31
# this one also contains the emulator + system image:
docker run --rm -it mreichelt/android:31-system
# or, if you want the newest 3 SDKs (currently 31, 30, and 29):
docker run --rm -it mreichelt/android:latest
Check out the list of tags and choose the Docker image you need.
If you use GitLab, you can set up builds for your Android app in a jiffy. Just add the following .gitlab-ci.yml
file to your project:
image: mreichelt/android:31
build:
stage: build
script:
- ./gradlew check assemble
That's it! Happy hacking! 😊
To set up CircleCi builds for your android project based on these images copy the CircleCI recipe into .circleci/config.yml
of your project - happy building 🎉.
Pull requests are welcome! 🎉
Also, check out the issues to create bugreports, feature requests, etc.
Check out if your issue is already resolved, or create a new support request. Or just ping me on Twitter!
Also, I'd love to know what you are using it for and how you like it!
- Marc Reichelt
- Yes, I'm actively looking for maintainers 🔭! Drop me a mail if you're interested!