Added integration with Genymotion in AWS

This commit is contained in:
butomo1989
2018-08-11 19:38:47 +02:00
parent d7c9730712
commit dd7ef41590
6 changed files with 196 additions and 17 deletions
+26 -5
View File
@@ -11,10 +11,11 @@ services:
- 4444:4444
# Please stop this container by using docker stop instead of docker-compose stop
genymotion:
cloud:
image: butomo1989/docker-android-genymotion
depends_on:
- selenium_hub
privileged: true
ports:
- 6080:6080
- 4723:4723
@@ -22,8 +23,28 @@ services:
- $PWD/sample_apk:/root/tmp/sample_apk
- $PWD/sample_devices:/root/tmp
environment:
- GENY_TEMPLATE=/root/tmp/devices.json
- USER=xxx
- PASS=xxx
- LICENSE=xxx
- TYPE=genycloud
- TEMPLATE=/root/tmp/devices.json
- USER=$USER
- PASS=$PASS
- LICENSE=$LICENSE
- CONNECT_TO_GRID=true
# Please stop this container by using docker stop instead of docker-compose stop
# The implementation still in progress
aws:
image: butomo1989/docker-android-genymotion
depends_on:
- selenium_hub
privileged: true
ports:
- 6080:6080
- 4723:4723
volumes:
- ~/.aws:/root/.aws
- $PWD/sample_apk:/root/tmp/sample_apk
- $PWD/sample_devices:/root/tmp
environment:
- TYPE=aws
- TEMPLATE=/root/tmp/aws.json
#TODO - CONNECT_TO_GRID=true
+12
View File
@@ -0,0 +1,12 @@
[
{
"region": "eu-west-1",
"ami": "ami-861125ff",
"instance": "t2.small"
},
{
"region": "eu-west-1",
"ami": "ami-861125ff",
"instance": "t2.small"
}
]
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
(export USER=$USER && export PASS=$PASS && export LICENSE=$LICENSE && docker-compose -f geny.yml up -d)