Last active
July 19, 2020 10:38
-
-
Save prashanth-sams/255d97a2c29775f1950ab2f8d1c9b20b to your computer and use it in GitHub Desktop.
Appium Selenium Grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: android | |
namespace: selenium | |
labels: | |
app: selenium | |
environment: stg | |
role: qa | |
service: selenium | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: android | |
template: | |
metadata: | |
labels: | |
app: android | |
spec: | |
containers: | |
- name: android | |
image: butomo1989/docker-android-x86-7.1.1 | |
resources: | |
limits: | |
memory: "2048Mi" | |
cpu: "500m" | |
securityContext: | |
privileged: true | |
ports: | |
- containerPort: 6080 | |
name: port1 | |
- containerPort: 4723 | |
name: port2 | |
- containerPort: 5554 | |
name: port3 | |
- containerPort: 5555 | |
name: port4 | |
- containerPort: 5037 | |
name: port5 | |
env: | |
- name: DEVICE | |
value: "Nexus 5" | |
- name: APPIUM | |
value: "true" | |
- name: CONNECT_TO_GRID | |
value: " true" | |
- name: APPIUM_HOST | |
value: "android.selenium" | |
- name: APPIUM_PORT | |
value: "4723" | |
- name: SELENIUM_HOST | |
value: "selenium-selenium-hub.selenium" | |
- name: SELENIUM_PORT | |
value: "4444" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android: | |
image: budtmo/docker-android-x86-9.0 | |
privileged: true | |
links: | |
- app:example.com | |
depends_on: | |
- hub | |
ports: | |
- 6080:6080 | |
environment: | |
- DEVICE=Samsung Galaxy S7 Edge | |
- CONNECT_TO_GRID=true | |
- APPIUM=true | |
- SELENIUM_HOST=hub | |
- MOBILE_WEB_TEST=true | |
- AUTO_RECORD=false |
Author
prashanth-sams
commented
Jul 16, 2020
•
KVM is must for docker-android - Kernel based virtual machine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment