VKCOM / docker-emulator-android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Emulator for Android

docker-emulator-android is an essential component of the android-farm project. It empowers you to run an Android emulator with hardware acceleration within a Docker container.

Key Features

  • High-Performance Configuration: docker-emulator-android employs a high-performance default vCPU and RAM configuration based on recommendations from this presentation and this presentation on performance.

  • Preparatory Manipulations via ADB: The project performs necessary preparatory manipulations with the Android device using the Android Debug Bridge (ADB), ensuring readiness to work with settings and applications.

  • Predefined Values: All required values and configurations are predefined in the config.ini file, simplifying the setup process.

  • Structured Setup Steps: All necessary steps for configuration and project launch are structured as Bash scripts, making deployment and management straightforward.

  • Liveness Probe: docker-emulator-android includes a liveness probe mechanism, ensuring reliable and automatic detection of the container and emulator's state.

Current android tools

commandlinetools linux - 10406996

Building

To build the project, follow these steps:

$ docker build -t emulator-30 .

Usage

To illustrate, here's how to run the default emulator settings with Android API 30:

$ docker run --rm --privileged -e ANDROID_ARCH="x86" -v /dev/kvm:/dev/kvm docker-emulator-android-30:1

For a comprehensive list of available options, please refer to the official documentation.

License

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

Please note that Android SDK components are governed by the Android Software Development Kit License.

About

License:Apache License 2.0


Languages

Language:Dockerfile 43.8%Language:Shell 34.4%Language:Python 21.7%