1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder synced 2025-06-05 23:16:17 +00:00
2016-12-22 21:56:13 +01:00
2016-12-21 22:30:46 +01:00
2016-12-22 18:15:07 +01:00
2016-12-22 20:51:01 +01:00
2016-12-22 21:16:51 +01:00
2016-12-21 03:46:57 +01:00
2016-12-22 21:56:13 +01:00

OpenWRT builder

This image provides a toolchain to build OpenWRT for different hardware devices.

Get the docker image

Prepare a disk volume with 15Gb free to execute this image.

Pull a pre-built image

docker pull caligari/openwrt-builder:latest

Available image tags here.

From Dockerfile

git clone git@github.com:rafacouto/docker-openwrt-builder.git
docker build -t caligari/openwrt-builder:latest ./docker-openwrt-builder

Usage

Show the available targets to build:

docker run --rm caligari/openwrt-builder

ToDo: put here the current output of this command.

Build OpenWRT for a Raspberry Pi 3:

docker run --rm -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder

Docker volumes

/usr/local/openwrt/src

Directory where OpenWRT sources persist (>= 15Gb):

docker run \
    -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder \
    -v $(pwd)/src:/usr/local/openwrt/src

/usr/local/openwrt/src/bin

Directory with the binaries result of the build:

docker run \
    -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder \
    -v $(pwd)/binaries:/usr/local/openwrt/src/bin

Docker variables

docker run \
    -e OPENWRT_TARGET=rpi-3 \
    -e OPENWRT_RELEASE=master \
    -e JOBS=3 \
    caligari/openwrt-builder
  • OPENWRT_TARGET Device configuration you are building OpenWRT for.
  • OPENWRT_RELEASE OpenWRT version tag/branch to build (default is 'master').
  • JOBS Number of parallel jobs to launch with make.

Thanks

  • Javi Loureiro who had the idea for Raspberry Pi devices and provided config files for them.
  • OpenWRT community for the best embedded operating system based on the Linux kernel.
Description
No description provided
Readme GPL-3.0 60 KiB
Languages
Shell 65.7%
Dockerfile 34.3%