Giter VIP home page Giter VIP logo

docker-emulator-android's Introduction

docker-emulator-android

docker-emulator-android is one of the components of android-farm. It runs android emulator with hardware acceleration in a container.

Features

  • Compatible with OpenSTF
  • 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):

$ docker run --rm --privileged -e ANDROID_ARCH="x86" -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:

$ docker run --rm --privileged -e ANDROID_ARCH="x86" -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

Building

$ export DOCKER_USER=user
$ export DOCKER_PASS=password
$ make PROXY=docker-registry-url/ build tag login push

License

docker-emulator-android is open source and available under the Apache License, Version 2.0.

Android SDK components are available under the Android Software Development Kit License

docker-emulator-android's People

Contributors

malinskiy avatar

Watchers

Seder(方进) avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.