From 7c085db7a3afe1c481e117c3617e9fef9e2e3580 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Fri, 5 Oct 2018 11:12:55 -0400 Subject: [PATCH 1/2] Add Cloud instructions for GCE --- README_CLOUD.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README_CLOUD.md b/README_CLOUD.md index ed3b9d7..ef4a564 100644 --- a/README_CLOUD.md +++ b/README_CLOUD.md @@ -8,3 +8,8 @@ AWS ----- Make sure that containers for your emulators are generated within a EC2 Bare Metal Instance(i3.metal) Reference: https://aws.amazon.com/jp/blogs/aws/new-amazon-ec2-bare-metal-instances-with-direct-access-to-hardware/ + +Google Cloud (GCE) +------------------ +Make sure your instances for your emulators have Nested Virtualization enabled +Reference: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances#enablenestedvirt From fd4a5a0763956daf652b21f1638cb2d7ad890392 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Fri, 5 Oct 2018 14:47:17 -0400 Subject: [PATCH 2/2] Add a bit more verbosity --- README_CLOUD.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README_CLOUD.md b/README_CLOUD.md index ef4a564..16766d9 100644 --- a/README_CLOUD.md +++ b/README_CLOUD.md @@ -12,4 +12,14 @@ Reference: https://aws.amazon.com/jp/blogs/aws/new-amazon-ec2-bare-metal-instanc Google Cloud (GCE) ------------------ Make sure your instances for your emulators have Nested Virtualization enabled -Reference: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances#enablenestedvirt +Reference: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances + +One the disk and instance are created as [specified here](https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances#enablenestedvirt), +the emulator can be brought up as follows: + + # Assume app.apk is in /tmp + docker run --privileged -d -e DEVICE="Samsung Galaxy S6" --volume /tmp:/APK \ + --name android_em butomo1989/docker-android-x86-8.1 + + docker exec android_em adb wait-for-device + docker exec android_em adb install /APK/app.apk