tools/docker: update readme

This commit is contained in:
Jonas Karlman 2020-05-30 10:18:09 +00:00
parent b1f259b9f3
commit d7312385e0

View File

@ -1,17 +1,27 @@
# Build container # Build container
**Clone repo** **Build docker image**
* `cd ~/` Use the following command to create a docker image and tag it with `libreelec`.
* `git clone https://github.com/LibreELEC/LibreELEC.tv.git LibreELEC`
**Build container** ```
docker build --pull -t libreelec tools/docker/focal
```
* `cd ~/LibreELEC` See https://docs.docker.com/engine/reference/commandline/build/ for details on `docker build` usage.
* `docker build --pull -t libreelec tools/docker/bionic`
**Build image inside container** **Build LibreELEC image inside a container**
* `docker run -v ~/:/home/docker -h libreelec -it libreelec` Use the following command to build LibreELEC images inside a new container based on the docker image tagged with `libreelec`.
* `cd ~/LibreELEC`
* `make image` ```
docker run --rm -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 -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.