Create README.md

This commit is contained in:
Anton Malinskiy
2018-02-13 00:03:27 +07:00
committed by GitHub
parent 5040111d22
commit 3958431f70

33
README.md Normal file
View File

@@ -0,0 +1,33 @@
[![Build Status](https://travis-ci.org/agoda-com/docker-emulator-android.svg?branch=master)](https://travis-ci.org/agoda-com/docker-emulator-android)
[![Docker Stars](https://img.shields.io/docker/stars/agoda-com/docker-emulator-android.svg)]()
[![Docker Pulls](https://img.shields.io/docker/pulls/agoda-com/docker-emulator-android.svg)]()
# docker-emulator-android
docker-emulator-android is one of the components of [android-farm](https://github.com/agoda-com/android-farm). It runs android emulator with hardware acceleration in a container.
# Features
- Compatible with [OpenSTF](https://openstf.io)
- Optimized for performance
- hardware acceleration using KVM
- QEMU 2
- Changing emulator spec is supported by
- overriding config.ini variables using `ANDROID_CONFIG`
- overriding emulator cmd args using `EMULATOR_OPTS` and `QEMU_OPTS`
- overriding adb ports using `CONSOLE_PORT (default 5554)`, `ADB_PORT (default 5555)`
- VNC server (port 5900)
- Google API's enabled
# Usage
For example to run default emulator options with Marshmallow (API 23):
```console
$ docker run --privileged -v /dev/kvm:/dev/kvm agoda-com/docker-emulator-android-23:latest
$ adb connect VIP:5555
```
If you want to start different configuration of device, for example a 7 inch tablet, you need to override `config.ini` variables:
```console
$ docker run --privileged -e ANDROID_CONFIG="skin.name=600x1024;hw.lcd.density=160;hw.lcd.height=600;hw.lcd.width=1024;hw.device.name=7in WSVGA (Tablet);avd.ini.displayname=7 WSVGA (Tablet) API 23;" -v /dev/kvm:/dev/kvm agoda-com/docker-emulator-android-23:latest
```
For all the options available please check the [official documentation](https://developer.android.com/studio/run/emulator-commandline.html)