Android docker prerequisites
What's this?
Virtual environment for making Qt package testing on Android a bit easy.
Essentially this is a Dockerfile that produces an image that contain all nessary prerequisites for working with Android in C++/Qt.
The pre-build image for some sdk/ndk combination is located under https://hub.docker.com/r/ttqtc/android_prerequisites_sdk26_ndk21,
For building you own copy simple do
docker built -t android_cppdev_prerequisites .
to use pre-build image directly you can do
docker run -p 5903:5903 -p 5901:5901 --privileged tqtc/android_prerequisites_sdk26_ndk21
Or
docker run -p 5903:5903 -p 5901:5901 --privileged <your_image>
Container then can be accessed
- via noVNC session via http://localhost:5901/vnc.html (password:123456)
- by any vncviewer on localhost:3
Creating c++ apps in two steps
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 current image will contain
- Java 8
- SDK26 + tools, platform-tools, build-tools
- NDK 21
- Emulator and some basic device
- Qt installer
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>