diff --git a/Dockerfile.plugin b/Dockerfile.plugin index 81a281f..e0e3235 100644 --- a/Dockerfile.plugin +++ b/Dockerfile.plugin @@ -116,15 +116,15 @@ ENV USER root ENV MIMIC_DIR /tmp/mycroft/cache/tts/Mimic3TTSPlugin # Start relevant services: -# 1. Start message bus, wait for ready message in log -# 2. Start audio service, wait for ready message in log +# 1. Start message bus, wait for ready message in log (1 min timeout) +# 2. Start audio service, wait for ready message in log (1 min timeout) # 3. Run mycroft-speak with sample text # 4. Watch cache directory for a file creation (5 min timeout) # 5. Copy first WAV file to known location RUN mycroft-core/bin/mycroft-start bus && \ - tail -f /var/log/mycroft/bus.log | grep -iq 'message bus service started' && \ + timeout 60 tail -f /var/log/mycroft/bus.log | grep -iq 'message bus service started' && \ mycroft-core/bin/mycroft-start audio && \ - tail -f /var/log/mycroft/audio.log | grep -iq 'audio service is ready' && \ + timeout 60 tail -f /var/log/mycroft/audio.log | grep -iq 'audio service is ready' && \ xargs -a tests/apope_sample.txt mycroft-core/bin/mycroft-speak && \ mkdir -p "${MIMIC_DIR}" && \ for i in $(seq 1 300); do \