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

Searching the Parts of the Internet Google Doesn't: Five Years of darksearch.xyz

There's a whole slice of the internet that's public but almost impossible to search. Content on IPFS is addressed by what it is (a content hash, the CID) rather than where it is, so there's no domain to crawl, no robots.txt, and no single server to point a search engine at. If you don't already have...