Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Last active February 19, 2020 10:59
Show Gist options
  • Save aamsur-mkt/cb16119b228d9282037fa778398c3f7d to your computer and use it in GitHub Desktop.
Save aamsur-mkt/cb16119b228d9282037fa778398c3f7d to your computer and use it in GitHub Desktop.
Docker Android Seleniun RnD Notes
===DOCKER COMPOSE===
version: '3'
services:
selenium_hub:
image: selenium/hub
ports:
- "4444:4444"
emulator:
image: budtmo/docker-android-x86-9.0
privileged: true
depends_on:
- selenium_hub
ports:
- 6080:6080
- 4723:4723
- 5554:5554
- 5555:5555
volumes:
- $PWD/sample.apk:/root/tmp
environment:
- DEVICE=Samsung Galaxy S6
- CONNECT_TO_GRID=True
- APPIUM=true
- SELENIUM_HOST=selenium_hub
- AUTO_RECORD=false
- BROWSER=chrome
=== create custom emulator armeabi ===
./avdmanager create avd --name NEXUS5 --abi google_apis/armeabi-v7a --device "Nexus 5" -k "system-images;android-21;google_apis;armeabi-v7a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment