docker-android/docker-compose.yml

115 lines
2.9 KiB
YAML
Raw Permalink Normal View History

2017-05-29 13:34:35 +01:00
# Note: It requires docker-compose 1.13.0
#
# Usage: docker-compose up -d
version: "2.2"
services:
# Selenium hub
selenium_hub:
image: selenium/hub:3.14.0-curium
2017-05-29 13:34:35 +01:00
ports:
2018-05-29 23:51:16 +01:00
- 4444:4444
2017-05-29 13:34:35 +01:00
2019-01-30 13:58:31 +00:00
# There is a bug for using appium. Issue: https://github.com/budtmo/docker-android/issues/73
# Real devices
#real_device:
2019-01-30 13:58:31 +00:00
# image: budtmo/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:
2018-06-20 22:28:41 +01:00
# - CONNECT_TO_GRID=true
# - APPIUM=true
# - SELENIUM_HOST=selenium_hub
2018-06-20 22:28:41 +01:00
# - AUTO_RECORD=true
# - BROWSER_NAME=chrome
# Using Appium Docker Android
real_device:
image: appium/appium
depends_on:
- selenium_hub
network_mode: "service:selenium_hub"
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
- ~/.android:/root/.android
- $PWD/example/sample_apk:/root/tmp
environment:
2018-06-20 22:28:41 +01:00
- CONNECT_TO_GRID=true
- SELENIUM_HOST=selenium_hub
# Enable it for msite testing
#- BROWSER_NAME=chrome
2017-05-29 13:34:35 +01:00
# Docker-Android for Android application testing
nexus_7.1.1:
2019-01-30 13:58:31 +00:00
image: budtmo/docker-android-x86-7.1.1
2017-05-29 13:34:35 +01:00
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
2017-05-29 13:34:35 +01:00
ports:
- 6080
2017-10-30 19:41:27 +00:00
# Change path of apk that you want to test. I use sample_apk that I provide in folder "example"
2017-07-14 19:40:14 +01:00
volumes:
2018-06-28 00:03:27 +01:00
- $PWD/example/sample_apk:/root/tmp/sample_apk
2017-07-14 19:40:14 +01:00
- ./video-nexus_7.1.1:/tmp/video
2017-05-29 13:34:35 +01:00
environment:
- DEVICE=Nexus 5
2018-06-20 22:28:41 +01:00
- CONNECT_TO_GRID=true
2017-05-29 13:34:35 +01:00
- APPIUM=true
- SELENIUM_HOST=selenium_hub
2018-06-20 22:28:41 +01:00
- AUTO_RECORD=true
2017-05-29 13:34:35 +01:00
# Docker-Android for mobile website testing with chrome browser
# Chrome browser exists only for version 7.0 and 7.1.1
samsung_galaxy_web_7.1.1:
2019-01-30 13:58:31 +00:00
image: budtmo/docker-android-x86-8.1
2017-05-29 13:34:35 +01:00
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
2017-05-29 13:34:35 +01:00
ports:
- 6080
2017-07-14 19:40:14 +01:00
volumes:
- ./video-samsung_7.1.1:/tmp/video
2017-05-29 13:34:35 +01:00
environment:
- DEVICE=Samsung Galaxy S6
2018-06-20 22:28:41 +01:00
- CONNECT_TO_GRID=true
2017-05-29 13:34:35 +01:00
- APPIUM=true
- SELENIUM_HOST=selenium_hub
2018-06-20 22:28:41 +01:00
- MOBILE_WEB_TEST=true
- AUTO_RECORD=true
2017-05-29 13:34:35 +01:00
# Docker-Android for mobile website testing with default browser
# Default browser exists only for version 5.0.1, 5.1.1 and 6.0
samsung_galaxy_web_5.1.1:
2019-01-30 13:58:31 +00:00
image: budtmo/docker-android-x86-5.1.1
2017-05-29 13:34:35 +01:00
privileged: true
# Increase scale number if needed
scale: 1
depends_on:
- selenium_hub
- real_device
2017-05-29 13:34:35 +01:00
ports:
- 6080
2017-07-14 19:40:14 +01:00
volumes:
- ./video-samsung_5.1.1:/tmp/video
2017-05-29 13:34:35 +01:00
environment:
- DEVICE=Samsung Galaxy S6
2018-06-20 22:28:41 +01:00
- CONNECT_TO_GRID=true
2017-05-29 13:34:35 +01:00
- APPIUM=true
- SELENIUM_HOST=selenium_hub
2018-06-20 22:28:41 +01:00
- MOBILE_WEB_TEST=true
- AUTO_RECORD=true