Posts: 36
Joined: Apr 2018
Reputation:
0
I've created python script which uses some dependencies, not available in Kodi/Libreelec.
As far as I know it possible to run it inside Kodi/Libreelec using docker container. But... I completely don't know how to do it. Are somewhere any instructions for that? Including basics of container creation if possible?
Posts: 36
Joined: Apr 2018
Reputation:
0
Maybe my question was not enough clear. I don't want to run KODI in container. I read 'somewhere' that its possible to pack my script with its dependencies into docker container and run this container inside of Kodi. Is that right?
My script drives basic voice control to Kodi (via json-rpc) and some other home devices (via mqtt). I can run it on my laptop, but I want it to work even if laptop is turned off.
It imports speech_recognition, gtts (both are google services related), pygame, io, paho... Those modules also import others. And the list will be updated some day, because I want to switch to piper/whisper instead of google.
Posts: 3,533
Joined: Jan 2011
Reputation:
376
pkscout
Team-Kodi Member
Posts: 3,533
Nope, that's not right. If you want to run something from Kodi, it has to be an addon, not a containerized script. If you want to run Docker on whatever machine you have Kodi on, then you need to find a forum for the OS and ask them how to run Docker. That is well outside the scope of this forum.
Posts: 10,678
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,678
Libreelec has docker support built in as it is a lightweight OS. So you're probably best in asking over at the Libreelec forum how to make use of it.