Mycroft and Docker images, a different approach

Hi,

i did some updates to the Docker images, please find the list below:

  • Implement precise-lite plugin from OpenVoiceOS, fooprint of mycroft_voice container reduced by 50% for CPU [1], memory [2] and fastest wakeword detection
  • Usage of tmpfs for /tmp/mycroft to reduce IO activity on the disk (mostly useful for Raspberry PI and it’s SD card), overall IOPS on the Raspberry Pi have been reduced by 50% [3]
  • Reduce the Docker volume usage to mycroft_skill* only
  • Use of environment files (.env*) with docker-compose to simplify the usage and the configuration of it
  • numpy Python library has been integrated to the mycroft_base image because it is now used by mycroft_voice and mycroft_skills containers. This speedup a lot the starting process after the pairing by not having to compile the library (especially on a Raspberry Pi… :scream:)
  • Documentation updates :paperclips:

[1] CPU usage for mycroft_voice container (6 hours sample):

[2] Memory usage for mycroft_voice container (6 hours sample):

[3] Disk IOPS usage for on the whole Raspberry Pi (24 hours sample):
image

Let me know if you got any issues. :heart_eyes:

2 Likes