[GH-ISSUE #4] Emulator doesn't manage to boot in time in case of CI scenarios #3

Closed
opened 2026-03-01 15:39:05 +03:00 by kerem · 4 comments
Owner

Originally created by @andrcuns on GitHub (May 15, 2017).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/4

In case if this container is used in some sort of CI setup for automated test execution, tests start executing before the android in emulator is actually booted up.
It is possible to delay test execution within test set up it self but would not be so convenient if deploying multiple containers with selenium grid via docker-compose for example.
Would You consider adding a check for avd boot_complete during container start?

Originally created by @andrcuns on GitHub (May 15, 2017). Original GitHub issue: https://github.com/budtmo/docker-android/issues/4 In case if this container is used in some sort of CI setup for automated test execution, tests start executing before the android in emulator is actually booted up. It is possible to delay test execution within test set up it self but would not be so convenient if deploying multiple containers with selenium grid via docker-compose for example. Would You consider adding a check for avd boot_complete during container start?
kerem 2026-03-01 15:39:05 +03:00
Author
Owner

@elgalu commented on GitHub (May 15, 2017):

SGTM 👍 What I do in docker-selenium is to

docker exec grid wait_all_done 10s

This will active wait up to 10 seconds for the container to be ready for tests but will finish as soon as is ready. This script can also be used as a HEALTHCHECK instruction.

So you guys could do something similar for this image, e.g.

docker exec android-container healthcheck.sh 1m

And inside that healthcheck.sh you put all the logic to wait for what's needed, avd boot_complete and so on.

So users can be sure that after that the container is ready to be used for testing.

<!-- gh-comment-id:301413322 --> @elgalu commented on GitHub (May 15, 2017): SGTM :+1: What [I do in docker-selenium](https://github.com/elgalu/docker-selenium) is to docker exec grid wait_all_done 10s This will active wait up to 10 seconds for the container to be ready for tests but will finish as soon as is ready. This script can also be used as a HEALTHCHECK instruction. So you guys could do something similar for this image, e.g. docker exec android-container healthcheck.sh 1m And inside that `healthcheck.sh` you put all the logic to wait for what's needed, avd boot_complete and so on. So users can be sure that after that the container is ready to be used for testing.
Author
Owner

@budtmo commented on GitHub (May 15, 2017):

could you maybe help me to fix this issue? @andrcuns

<!-- gh-comment-id:301415033 --> @budtmo commented on GitHub (May 15, 2017): could you maybe help me to fix this issue? @andrcuns
Author
Owner

@andrcuns commented on GitHub (May 15, 2017):

I have some ideas based on @elgalu excellent suggestion. I will try to test it out :)

<!-- gh-comment-id:301415437 --> @andrcuns commented on GitHub (May 15, 2017): I have some ideas based on @elgalu excellent suggestion. I will try to test it out :)
Author
Owner

@budtmo commented on GitHub (May 19, 2017):

I will close this PR, I have already included the implementation in release 0.5

<!-- gh-comment-id:302671676 --> @budtmo commented on GitHub (May 19, 2017): I will close this PR, I have already included the implementation in release [0.5](https://github.com/butomo1989/docker-android/releases/tag/0.5)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#3
No description provided.