This is a docker container for the OpenWRT / LEDE SDK.
To run a shell as openwrt
user in the SDK container, execute the following command:
$ docker run -i -t -u openwrt -w /home/openwrt/sdk -v $PWD:/work yhnw/openwrt-sdk:17.01-ar71xx /bin/bash
Then you can build packages as follows:
$ ./scripts/feeds update -a
$ ./scripts/feeds install php7
$ make package/php7/compile V=s
$ ls -la bin/packages/mips_24kc/packages/php7-cli*
-rw-r--r-- 1 openwrt openwrt 1457137 Sep 19 06:30 bin/packages/mips_24kc/packages/php7-cli_7.1.1-1_mips_24kc.ipk
More information on how to use the SDK tool-chain can be found on the OpenWRT wiki.
- Using the SDK OpenWrt Wiki
- Using the SDK LEDE docs