Skip to content

levibyte/android_docker_cpp_prerequisites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Android for C++ prerequisites docker image

What's this?

Dockerfile that produces an image the contain all nessary prerequisites for working with Android in C++/Qt

What's included

Currently this docker file is non parametrized but there are plans to make it generic as much as possible Here is what the image contains

  • Java 8
  • SDK26 + tools, platform-tools, build-tools
  • NDK 21
  • Emulator and some basic device
  • Qt installer
  • noVNC
noVNC session in chrome tab showing openGL example running on Android emulator (thats running inside docker container)

img

Usage

You can build image yourself via Dockerfile or pull the build image from dockerhub

docker pull hopar/android_prerequisites_sdk26_ndk21

To build image yourself

  docker built -t android_cppdev_prerequisites .

To run, simply do

  docker run -p 5903:5903 -p 5901:5901 --privileged android_cppdev_prerequisites

Container then can be accessed via vnc connection ( password:123456 )

running on real devices

Its also possible to deploy c++ applications to real devices. There are rwo approaches

  • running via shared USB
  docker run -p 5903:5903 -p 5901:5901 --privileged -v /dev/bus/usb:/dev/bus/usb <img> 
  • running by running ADB on host ( requires same version platform-tools on host and starting adb on host first )
  docker run -p 5903:5903 -p 5901:5901 --privileged --network=host <img> 

Releases

No releases published

Packages

No packages published