Container health check based on Android Emulator boot completion

This commit is contained in:
Andrejs Cunskis 2017-05-15 14:28:52 +03:00
parent 76393754fb
commit a7c9be6fc3

View file

@ -175,4 +175,8 @@ COPY devices /root/devices
COPY src /root/src COPY src /root/src
COPY supervisord.conf /root/ COPY supervisord.conf /root/
RUN chmod -R +x /root/src && chmod +x /root/supervisord.conf 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 CMD /usr/bin/supervisord --configuration supervisord.conf