homework_7: add dual emulator run and cleanup

This commit is contained in:
2026-04-12 17:23:43 +03:00
parent 8857b4feff
commit ea52943000
7 changed files with 47 additions and 17 deletions
+25 -1
View File
@@ -10,7 +10,7 @@ services:
timeout: 5s
retries: 12
android-emulator:
android-emulator-1:
image: budtmo/docker-android:emulator_13.0
depends_on:
- wiremock
@@ -33,3 +33,27 @@ services:
timeout: 5s
retries: 40
start_period: 30s
android-emulator-2:
image: budtmo/docker-android:emulator_12.0
depends_on:
- wiremock
devices:
- /dev/kvm:/dev/kvm
ports:
- "4725:4723"
- "6081:6080"
environment:
- DEVICE=Pixel_4
- APPIUM=true
- WEB_VNC=true
- ENABLE_VNC=true
- AUTO_GRANT_PERMISSIONS=true
- EMULATOR_PARAMS=-no-window -no-audio -gpu swiftshader_indirect -no-snapshot -no-boot-anim
shm_size: 2gb
healthcheck:
test: ["CMD-SHELL", "[ \"$(cat /home/androidusr/device_status 2>/dev/null)\" = \"READY\" ]"]
interval: 15s
timeout: 5s
retries: 40
start_period: 30s