Added real device configuration in docker-compose

This commit is contained in:
butomo1989 2018-02-12 11:07:37 +01:00
parent 905f2c723b
commit 366aa8b3b3

View file

@ -10,12 +10,33 @@ services:
ports: ports:
- "4444:4444" - "4444:4444"
# Real devices
real_device:
image: butomo1989/docker-android-real-device
privileged: true
depends_on:
- selenium_hub
ports:
- 6080:6080
volumes:
- ./video-real-device:/tmp/video
- /dev/bus/usb:/dev/bus/usb
- ~/.android:/root/.android
environment:
- CONNECT_TO_GRID=True
- APPIUM=true
- SELENIUM_HOST=selenium_hub
- AUTO_RECORD=True
# Docker-Android for Android application testing # Docker-Android for Android application testing
nexus_7.1.1: nexus_7.1.1:
image: butomo1989/docker-android-x86-7.1.1 image: butomo1989/docker-android-x86-7.1.1
privileged: true privileged: true
# Increase scale number if needed # Increase scale number if needed
scale: 1 scale: 1
depends_on:
- selenium_hub
- real_device
ports: ports:
- 6080 - 6080
# Change path of apk that you want to test. I use sample_apk that I provide in folder "example" # Change path of apk that you want to test. I use sample_apk that I provide in folder "example"
@ -36,6 +57,9 @@ services:
privileged: true privileged: true
# Increase scale number if needed # Increase scale number if needed
scale: 1 scale: 1
depends_on:
- selenium_hub
- real_device
ports: ports:
- 6080 - 6080
volumes: volumes:
@ -55,6 +79,9 @@ services:
privileged: true privileged: true
# Increase scale number if needed # Increase scale number if needed
scale: 1 scale: 1
depends_on:
- selenium_hub
- real_device
ports: ports:
- 6080 - 6080
volumes: volumes: