Lakka-LibreELEC/tools/docker
Rudi Heitbaum 9c42e89149 tools/docker: update focal/Dockerfile to install golang-1.18
use recent release of golang for bootstrap builds.
updates from golang-1.13 to golang-1.18
2023-02-03 08:19:24 +00:00
..
bionic Dockerfiles: add zstd to docker dependencies 2021-08-11 18:16:56 +00:00
buster Dockerfiles: add zstd to docker dependencies 2021-08-11 18:16:56 +00:00
focal tools/docker: update focal/Dockerfile to install golang-1.18 2023-02-03 08:19:24 +00:00
jammy tools/docker: add jammy container 2022-10-22 05:07:01 +00:00
kinetic tools/docker: add kinetic container 2022-10-22 05:06:45 +00:00
sid Dockerfiles: add zstd to docker dependencies 2021-08-11 18:16:56 +00:00
stretch Dockerfiles: add zstd to docker dependencies 2021-08-11 18:16:56 +00:00
README.md tools/docker: update readme 2022-10-22 05:06:45 +00:00

Build container

Docker containers

  • Ubuntu
    • bionic (Ubuntu 18.04)
    • focal (Ubuntu 20.04)
    • jammy (Ubuntu 22.04)
    • kinetic (Ubuntu 22.10)
  • Debian
    • stretch (Debian 9.0)
    • buster (Debian 10.0)
    • sid (Debian unstable)

Build docker image

Use the following command to create a docker image and tag it with libreelec.

docker build --pull -t libreelec tools/docker/focal

See https://docs.docker.com/engine/reference/commandline/build/ for details on docker build usage.

Build LibreELEC image inside a container

Change to your LibreELEC.tv development directory that you checked out with
git clone https://github.com/myname/LibreELEC.tv.git

cd LibreELEC.tv

Then use the following command to build LibreELEC images inside a new container based on the docker image tagged with libreelec. (The pwd uses the current directory - which must have the LibeELEC Makefile in it.)

docker run --rm --log-driver none -v `pwd`:/build -w /build -it libreelec make image

Use --env, -e or --env-file to pass environment variables used by the LibreELEC buildsystem.

docker run --rm --log-driver none -v `pwd`:/build -w /build -it -e PROJECT=RPi -e DEVICE=RPi4 -e ARCH=arm libreelec make image

See https://docs.docker.com/engine/reference/commandline/run/ for details on docker run usage.

Note: dockerd is set to send all its logs to journald using the setting --log-driver=journald (so if you don't set the --log-driver none for your docker run these logs will be sent through to your log. Refer:

140ad28a25/packages/addons/service/docker/source/system.d/service.system.docker.service (L12)