Github Actions Runner Docker Container with Android SDK

#actions #android #docker #github #sdk

 

A couple weeks ago, I was setting up a CI system with instrumented tests to run on Android devices. I have a spare computer at home that I use for these types of things, and wanted to run the github runner in a docker container.

There is a great existing container which handles this quite well: https://github.com/myoung34/docker-github-actions-runner, however this container is only focused on the github runner and nothing more. So when your start your workflow for android, you need to use actions to install java and the android sdk.

There is also a great github action to do this: https://github.com/android-actions/setup-android. The problem is you have a repo, or org which does not allow third party github actions. One way to get around this is to simply fork the existing action into the organization, but this may entail some maintenance overhead. Additionally, it would be nice to not have to install java and android every time to run an action.

file

So I decided to create a container based on the github actions runner container, and then add java and android to that directly:


Comments (0)


Leave a Comment

Log in to leave a comment.

Most Recent Post

Building a Better GitHub Stats Card

I've had a GitHub profile stats card for a while now, but I was never fully happy with it. The existing tools each had trade-offs that bugged me, so I ended up building my own by combining the best parts of three different projects. Here's how it went. The Problem There are a few popular projects fo...