From cf3b1cf68321bca0a6869282252e11dcdf5a93aa Mon Sep 17 00:00:00 2001 From: Serghei Moret Date: Mon, 9 Jul 2018 18:06:58 +0200 Subject: [PATCH] Fix adb getting into the loop --- docker/Emulator_x86 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Emulator_x86 b/docker/Emulator_x86 index a524fd3..a30f489 100644 --- a/docker/Emulator_x86 +++ b/docker/Emulator_x86 @@ -151,6 +151,6 @@ COPY supervisord.conf /root/ RUN chmod -R +x /root/src && chmod +x /root/supervisord.conf HEALTHCHECK --interval=2s --timeout=40s --retries=1 \ - CMD adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done' + CMD timeout 40 adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done' CMD /usr/bin/supervisord --configuration supervisord.conf