Skip to content

Commit

Permalink
Merge pull request #5 from andrcuns/container_health_check
Browse files Browse the repository at this point in the history
Container health check based on Android Emulator boot completion
  • Loading branch information
budtmo committed May 15, 2017
2 parents 7639375 + a7c9be6 commit 81e63fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,8 @@ COPY devices /root/devices
COPY src /root/src
COPY supervisord.conf /root/
RUN chmod -R +x /root/src && chmod +x /root/supervisord.conf

HEALTHCHECK --interval=2s --timeout=35s --retries=1 \
CMD adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done'

CMD /usr/bin/supervisord --configuration supervisord.conf

0 comments on commit 81e63fb

Please sign in to comment.