docker-android/README_GENYMOTION.md

26 lines
1.1 KiB
Markdown
Raw Normal View History

2018-09-13 16:46:14 +01:00
Genymotion Cloud
----------------
2018-09-04 11:01:47 +01:00
![Genymotion](images/logo_genymotion.png)
2018-09-13 16:46:14 +01:00
You can easily scale your Appium tests on Genymotion Android virtual devices in the cloud. They are available on SaaS or as virtual images on AWS, GCP or Alibaba Cloud.
2018-09-04 11:01:47 +01:00
2018-09-13 16:46:14 +01:00
1. On SaaS <br />
2018-09-04 11:01:47 +01:00
Use [device.json](genymotion/example/sample_devices/devices.json) to define the device to start. You can specify the port on which the device will start so you don't need to change the device name in your tests every time you need to run those tests. Then run following command
```bash
export USER="xxx"
export PASS="xxx"
2019-06-07 08:28:48 +01:00
docker run -it --rm -p 4723:4723 -v $PWD/genymotion/example/sample_devices:/root/tmp -e TYPE=SaaS -e USER=$USER -e PASS=$PASS budtmo/docker-android-genymotion
2018-09-04 11:01:47 +01:00
```
2018-09-13 16:46:14 +01:00
2. On PaaS (AWS) <br />
2018-09-04 11:01:47 +01:00
Use [aws.json](genymotion/example/sample_devices/aws.json) to define configuration of EC2 instance and run following command:
```bash
2019-01-30 13:58:31 +00:00
docker run -it --rm -p 4723:4723 -v $PWD/genymotion/example/sample_devices:/root/tmp -v ~/.aws:/root/.aws -e TYPE=aws budtmo/docker-android-genymotion
2018-09-04 11:01:47 +01:00
```
You can also use [this docker-compose file](genymotion/example/geny.yml).