Sign inSign up

agusalex/docker-openwrt-builder

By agusalex

•Updated over 5 years ago

Image
0

333

agusalex/docker-openwrt-builder repository overview

⁠Docker OpenWrt Builder

Build OpenWrt⁠ images in a Docker container. Build tested:

It does not build the old LEDE images.

⁠Prerequisites

  • Docker installed
  • running Docker daemon
  • build Docker image:
git clone https://github.com/mwarning/docker-openwrt-builder.git
cd docker-openwrt-builder
docker build -t openwrt_builder .

Now the docker image is available. These steps only need to be done once.

⁠Usage GNU/Linux

Create a build folder and link it into a new docker container:

mkdir ~/mybuild
docker run -v ~/mybuild:/home/user -it openwrt_builder /bin/bash

In the container console, enter:

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j4

After the build, the images will be inside ~/mybuild/openwrt/bin/target/.

⁠Usage MacOSX

OpenWrt requires a case-sensitive filesystem while MacOSX uses a case-insensitive filesystem by default.

Create a disk image:

hdiutil create -size 20g -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.dmg hdiutil attach OpenWrt.dmg

Then run:

docker run -v /volumes/openwrt:/home/user -it openwrt_builder /bin/bash

(Source⁠)

⁠Other Projects

Other, but very similar projects:

Tag summary

Content type

Image

Digest

Size

356 MB

Last updated

over 5 years ago

docker pull agusalex/docker-openwrt-builder