Merge pull request #5 from andrcuns/container_health_check

Container health check based on Android Emulator boot completion
This commit is contained in:
budi utomo 2017-05-15 16:15:23 +02:00 committed by GitHub
commit 81e63fb88e

View file

@ -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