This is an Arch Linux based docker container for the OpenWrt buildroot.
Derived from noonien
Because the build system requires that its commands are not executed by root, the user openwrt was created.
The buildroot can be found in /home/openwrt/openwrt
.
git clone https://github.com/jannispinter/arch-openwrt-buildroot.git
cd arch-openwrt-buildroot
docker build -t="arch-openwrt-buildroot:trunk" .
The dot at the end indicates that docker build
will use the current directory to find the Dockerfile
.
docker run -i -t arch-openwrt-buildroot:trunk
./scripts/feeds install -a
make menuconfig
Follow the official OpenWrt Buildroot instructions: http://wiki.openwrt.org/doc/howto/build
You can use docker cp
to copy the binary image out of the container to your host system.
docker cp <containerId>:/home/openwrt/openwrt/bin/<arch>/<imagefile.bin> /host/path/target