docker-kodi icon indicating copy to clipboard operation
docker-kodi copied to clipboard

Kodi docker with LibreElec or Alpine image?

Open atharmian opened this issue 5 years ago β€’ 5 comments

Looks good...routed from your April 2018 post on Kodi forums.

But Ubuntu/other main distros docker images are huge, e.g , 120 MB for Ubuntu base.

How about using LibreElec or Alpine base ( 4MB)? https://nickjanetakis.com/blog/the-3-biggest-wins-when-using-alpine-as-a-base-docker-image

atharmian avatar Jul 24 '18 06:07 atharmian

Thanks for your suggestion. I love Alpine prefer to use it whenever possible. The only reason I went with Ubuntu thus far was because Kodi offered off-the-shelf support/docs for it and I was looking to minimize obstacles in getting it all to work.

That said, Alpine offers a Kodi package, so fingers-crossed it would be easy to just use that instead. Worst case scenario, would could always try to build Kodi from source on an Alpine image. I'll start to work on this and report updates here. But if you have any tips, insights, or suggestions please feel free to share!

ehough avatar Jul 24 '18 17:07 ehough

Eric,

Hi from Toronto and thanks for keeping up your good work.

Edit: Never mind. I believe that the task below can be accomplished by pulling an Alpine- Docker arm64 base image on top of LibreElec, and then adding router packages like dnsmasq to it with some entry points.

Unfortunately I am a total noob here looking for solutions myself ! So maybe you can help me here, actually πŸ‘ΊπŸ‘Ί

I am looking to run network router functions along with a lightweight Kodi distro like LibreElec which does run docker on top of it.

My target is arm64, i.e. , a generic s905/w Android Box with 1 GB RAM and 8 GB flash.

https://forum.libreelec.tv/thread/6721-linuxserver-io-docker-addons-and-general-docker-info/

https://cwilko.github.io/home%20automation/2017/02/28/Raspberry-Pi-Home-Server.html

It turns out that instead of going through the pain of configuring an OpenWrt docker Alpine container, I might be able to install OpenWrt and dnsmasq- et al on Alpine, in a container since Alpine too is a router distro:

apk install dnsmasq

https://thenewstack.io/alpine-linux-heart-docker/

So:

How do I accomplish that, any pointers? Will I need to compile something, any links?

Can you app install packages on Alpine based container at run time?

Cheers,

atharmian avatar Jul 24 '18 18:07 atharmian

Eric,

Just browsed through your links- will study the Kodi source but later, but unluckily for me, the Alpine Kodi package is for x86 not arm64 😈

  1. So this Alpine Kodi pack will need compiling for a docker container with Alpine base?

Of course a different package for arm64 would be needed.

  1. If above becomes a container (my assumption is you want to work on it), would it then run on Alpine+ kernel host?

Does this mean the Alpine-Kodi x86 package is a JeOS alt to LibreElec-Kodi?

That would be something...anything missing here compared with LibreElec?

  1. I am thinking if you could run Alpine-Kodi containers on top of Alpine+kernel host OS, you could simply install most your extra packages directly on the host OS itself easily with apk install. Basically any Linux package could be installed.

Then it would be a very efficient (multi) instance Kodi system whereby you eliminate the need for recompiling for additional packages and killing/creating containers every time you want to tweak the system.

atharmian avatar Jul 24 '18 19:07 atharmian

Any idea what this is?

https://hub.docker.com/r/jacekkow/kodi/

atharmian avatar Jul 29 '18 06:07 atharmian

I would suggest to keep the current base image. Alpine only has the kodi package itself basically, and nearly no addons. Like games, iptv etc. See https://pkgs.alpinelinux.org/packages?name=kodi*. And using prebuilts by Kodi team is for sure one of the best options.

gsantner avatar Jul 31 '20 06:07 gsantner