-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose-android.yml
More file actions
48 lines (46 loc) · 1.77 KB
/
docker-compose-android.yml
File metadata and controls
48 lines (46 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Original: https://github.com/budtmo/docker-android
# Original: docker run -d -p 6080:6080 -e EMULATOR_DEVICE="Samsung Galaxy S10" -e WEB_VNC=true --device /dev/kvm --name android-container budtmo/docker-android:emulator_11.0
# Original: docker exec -it testar_dev_android_container_1 cat device_status
#
# Note: It requires docker-compose 1.13.0
# OS note: Android emultaror requires a Linux Host with KVM enabled
#
# Usage: docker-compose -f docker-compose-android.yml up
# Usage detach: docker-compose -f docker-compose-android.yml up -d
#
# ISSUE: Restart of container requires root (pro version https://github.com/budtmo/docker-android#pro-version)
# ISSUE: https://github.com/budtmo/docker-android/issues/364
# WORKAROUND: you can remove the running container and bring a new one
version: "3"
services:
# This is the docker image that contains the Android emulator + Appium server
android-container:
image: budtmo/docker-android:emulator_11.0
privileged: true
scale: 1
ports:
- 6080:6080
- 4723:4723
- 5555:5555
volumes:
- ./video-samsung_11.0:/tmp/video
# Available: https://github.com/budtmo/docker-android/blob/master/cli/src/constants/ENV.py
environment:
- EMULATOR_DEVICE=Samsung Galaxy S6
- APPIUM=true
- WEB_VNC=true
- APPIUM_ADDITIONAL_ARGS=--relaxed-security --base-path /wd/hub
devices:
- "/dev/kvm"
# This is the docker image that contains TESTAR
# Will not connect successfully if the Android emulator + Appium server are not running completely
testar:
image: testar
build:
context: ./
dockerfile: ./Dockerfile.android
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- type: bind
source: /home/testar/output
target: /testar/bin/output