2019-07-28 19:39:25 +00:00
|
|
|
Docker build client
|
|
|
|
===================
|
|
|
|
|
|
|
|
This directory builds a Docker container image for a Rockbox build
|
2019-07-21 22:17:37 +00:00
|
|
|
client with all toolchains except android.
|
|
|
|
|
|
|
|
There is a pre-built client available as built1n/rbclient on Docker
|
|
|
|
Hub if you would like to avoid having to build all the toolchains. See
|
2019-07-28 19:39:25 +00:00
|
|
|
below for how to pull and run it.
|
|
|
|
|
|
|
|
Building from scratch
|
|
|
|
=====================
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
1. Make sure you have Docker installed and running (i.e. `systemctl
|
|
|
|
start docker').
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
2. Build the image:
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
docker build . -t myclient
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
This will build the image and tag it as `myclient.' The build process
|
|
|
|
can take several hours, as it downloads and compiles every Rockbox
|
|
|
|
toolchain. Fortunately, Docker will cache intermediate images, saving
|
|
|
|
you work if you must rebuild.
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
3. Run your image:
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
docker run -e USER=your username -e PASS=anything -e NAME=clientname \
|
|
|
|
myclient
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
This will spin up a build image container in the background.
|
2019-07-21 22:17:37 +00:00
|
|
|
|
|
|
|
You can also run a bash shell interactively by issuing:
|
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
docker run -it myclient bash
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
This will drop you into a fully-equipped Rockbox development
|
2019-07-21 22:17:37 +00:00
|
|
|
environment.
|
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
Prebuilt image
|
|
|
|
==============
|
|
|
|
|
|
|
|
Run:
|
2019-07-21 22:17:37 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
docker pull built1n/rbclient
|
2019-07-28 19:31:30 +00:00
|
|
|
|
2019-07-28 19:39:25 +00:00
|
|
|
This will download a pre-built image from Docker Hub (fairly large,
|
|
|
|
will take some time). You can then use all the commands above, with
|
|
|
|
`myclient' replaced with `built1n/rbclient'.
|