Friday, May 31, 2019

Emulator CI: Docker Scripts for Linux Emulator

We're interested in giving better support to our users who run the emulator in CI. One possible effort included in this goal is to make the emulator easier to use with tools that we see are being used widely, such as Docker.

To this end, we've set up a few helper scripts in the AOSP platform/external/adt-infra repo to make it easier to get started running the Linux emulator in Docker with KVM acceleration and adb / gRPC ports exposed. The scripts are based on what we're already using internally for various CI needs.

The revision of the scripts for this release is here:

https://android.googlesource.com/platform/external/adt-infra/+/958180293308f4be67f6369acb075503f84a08b1/emu-image/external/

Readme

Overall place where the scripts live:

https://android.googlesource.com/platform/external/adt-infra/+/refs/heads/emu-master-dev/emu-image/external/

We very much welcome feedback on any difficulties using the emulator in CI generally, not just in Docker; what are common issues? What tools other than Docker should be better supported? To do so, please file feedback to https://issuetracker.google.com/issues?q=componentid:192727%20 with "CI" or "Continuous Integration" in the title.