36 lines
993 B
YAML
36 lines
993 B
YAML
services:
|
|
wiremock:
|
|
image: wiremock/wiremock:3.9.1
|
|
volumes:
|
|
- ./wiremock:/home/wiremock
|
|
- ./wishlist-349317-5fd795.apk:/home/wiremock/__files/wishlist.apk:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/__admin/health | grep -q 'healthy'"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 12
|
|
|
|
android-emulator:
|
|
image: budtmo/docker-android:emulator_13.0
|
|
depends_on:
|
|
- wiremock
|
|
devices:
|
|
- /dev/kvm:/dev/kvm
|
|
ports:
|
|
- "4723:4723"
|
|
- "6080:6080"
|
|
environment:
|
|
- DEVICE=Pixel_5
|
|
- 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
|