-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
98 lines (96 loc) · 2.35 KB
/
docker-compose.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "4"
services:
android-emulator:
build:
context: .
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis
ports:
- 5554:5554
- 5555:5555
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
- MEMORY=16384
- CORES=16
privileged: true
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
- ./android_avd:/data
extra_hosts:
- "host.docker.internal:host-gateway"
android-emulator-cuda:
build:
context: .
dockerfile: ./Dockerfile.gpu
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis
ports:
- 5554:5554
- 5555:5555
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
- MEMORY=16384
- CORES=16
privileged: true
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
android-emulator-cuda-store:
build:
context: .
dockerfile: ./Dockerfile.gpu
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis_playstore
ports:
- 5554:5554
- 5555:5555
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
- MEMORY=16384
- CORES=16
privileged: true
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
# volumes:
# - ./:/mnt
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]