Docker image to automate building OpenWRT images. It is intended to be used with a .config
file
with all desired settings preconfigured.
docker run --rm -v /tmp/patches:/patches -v /tmp/output:/output -v /tmp/config:/config jbequinn/openwrt-builder
In case you need to do some extra operations before building images
docker run --rm -it -v /tmp/patches:/patches -v /tmp/output:/output -v /tmp/config:/config jbequinn/openwrt-builder /bin/bash
/patches
: any *.patch files mounted in this directory will be applied as git patches./config
: OpenWRT.config
file will be copied from here. Otherwise, a default one will be generated./output
: compiled images will be copied to this directory.
VERBOSE
: defaults tofalse
. Set to true to use make withV=s
.CPUS
: number of CPUs to use during compilation, or all available if not specified.PATCHES
: defaults to/patches
. Directory to use for git patches.CONFIG
: defaults to/config
. Directory where to look for the.config
file.OPENWRT_REPO
: Defaults to/home/openwrt/openwrt
. OpenWRT repo directory to use for compiling images. The official OpenWRT repo (master branch) will be used if this directory does not exist.
docker build . --no-cache --pull --tag openwrt-builder