| My investigation ended with following: I used docker image from https://github.com/ljishen/docker-vnc-android-studio, to prove if it's possible to run Android Emulator in OpenShift. Checklist of what I did OpenShift Android Emulator.txt , it was running on m4.xlarge instance on https://ci-rhos.centralci.eng.rdu2.redhat.com (Red Hat only) It's possible, but so far with these problems:
- `/dev/kvm` is acessible only in privileged container
- possibly this can be solved by `--device` option for docker container, but so far not supported by Kubernetes - https://github.com/kubernetes/kubernetes/issues/5607
- current container is set up to be run as root, that's very dangerous to allow it in privileged mode
- even with `/dev/kvm` emulator was still very slow when running from OpenShift on OpenStack, though on my computer running just in docker it was quite fast
Current Jenkins Wendy uses Jenkins slaves running in OpenShift and it's fine for building and for non-device related testing. Full E2E test would however require fully running Android. We discussed with Adam Saleh, that it's possible to connect physical Jenkins slaves and have the tests running there. We need to do that for iOS for sure, so it needs to be done anyway. |