Skip to content

LibreELEC-in-Docker: Installs the latest nightly release of LibreELEC/Kodi into a docker container that currently runs on ROCKPro64/ROCK64 Debian/Ubuntu distributions -- desktop icon/launcher included.

Notifications You must be signed in to change notification settings

digitalsanity/libreelec-in-docker

Repository files navigation

libreelec-in-docker

Launch and play LibreELEC/Kodi (rockpro64/rock64 and Debian/Ubuntu host currently) via docker from your desktop. Xorg will close but your services will continue. Shutdown computer from Kodi to return to Xorg. Your settings are stored in $HOME/libreelec-share/

  • This pulls the latest nightly release and builds a docker container from the rootfs, allowing you to launch LibreELEC from most any debian/ubuntu host -- as long as the kernel rockchip version matches. (4.4.171 tested, with arm64 kernel and armhf userspace)

Steps

  1. cd to this directory.
  2. ./install.sh (not with sudo; if a folder pops up during install, close/ignore it; takes 10-15 minutes to complete)
  3. Launch LibreELEC from desktop application launcher (Media/Games/Video)

Run ./install.sh again at any time to update LibreELEC to the latest version. Your settings/files/add-ons will be retained in $HOME/libreelec-share/

Service/start on boot

If you want to boot directly into LibreELEC:

  • systemctl enable libreelec.service

Notes:

  1. When using the autostart service, selecting "Shutdown" from Kodi will exit the container and start X.
  2. Reboot from X or use the desktop icon to return to LibreELEC.
  3. You can also start that service manually at any time to stop your display-manager and switchback to LibreELEC.
  4. Rebooting from Kodi will do a soft-reboot of the system.

Debugging steps

  1. cd to this directory.
  2. ./build-prepare.sh - Install Docker and dependencies.
  3. ./build-rootfs.sh - Grab and build rootfs. There will be some rsync errors/warnings - it's OK.
  4. Optional: Review docker/rootfs and build-docker-from-rootfs.sh for files that will be removed. Review docker/startup.sh for how the image is booted.
  5. ./build-docker-from-rootfs.sh - Build docker from docker/rootfs.
  6. Launch LibreELEC or /usr/local/bin/libreelec-boot-stopx.sh from desktop, or close your desktop and launch /usr/local/bin/libreelec-boot.sh from tty1.

Working/tested

Should work

Other notes

  • There will be issues. Currently this is only for RockPro64 and pulls a specific release.

Regards,

  • Jason Fisher
  • jason dot fisher at gmail dot com

About

LibreELEC-in-Docker: Installs the latest nightly release of LibreELEC/Kodi into a docker container that currently runs on ROCKPro64/ROCK64 Debian/Ubuntu distributions -- desktop icon/launcher included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published