Docker based build environment for Gluon.
292
Docker based build environment for Gluon. At the moment this image just supplies a consistent build environment. More automation and a more user friendly handling is planned.
Build the docker image:
docker build -t build-gluon - < Dockerfile
Start a container with a shell prompt:
docker run -it -v $(pwd)/lede:/gluon/lede -v $(pwd)/output:/gluon/output build-gluon
This command maps the directories lede and output in your current working directory to the according directories inside the container. lede will contain the files that are created during the build process whereas output will contain your built images. Reusing lede is recommended as it will speed up the build process significantly when building previous targets again.
You can use different paths of course, this is just an example. Just replace $(pwd)/lede and $(pwd)/output with paths to your liking.
Next steps for a successful build:
cd to /gluon and run a git pull (not strictly necessary if you just built the docker image since the build process cloned the most recent version, however, I'd recommend making it a habit)git checkout v2017.1.xmake update GLUON_RELEASE=<your release name>, e. g. make update GLUON_RELEASE=2017.1.xmake GLUON_TARGET=<your target> GLUON_RELEASE=<your release name>. I'd recommend adding -j, followed by the number of threads your CPU has, in order to make use of multithreading and speed up the build process. An example build command could be make -j4 GLUON_TARGET=ar71xx-tiny GLUON_RELEASE=2017.1.x.Notes:
make -C lede dirclean can be necessary in order to remove an old toolchain.ar71xx needs around 11 GB. The other targets require similar amounts.Fore more information visit https://gluon.readthedocs.io/.
Content type
Image
Digest
Size
128.8 MB
Last updated
over 8 years ago
docker pull handle/build-gluon