This repository contains scripts to create Docker containers for OpenWrt. The scripts are run via an CI and upload such containers to docker.io.
Used variables are BRANCHES
, TARGETS
, DOCKER_USER
, DOCKER_PASS
and DOCKER_IMAGE
.
$BRANCHES
: space separated list of OpenWrt branches to build ("master 18.06.2 18.06.1")
$TARGETS
: space separated list of OpenWrt targets to build ("x86-64 ath79-generic")
$DOCKER_USER
: user to upload ("aparcar")
$DOCKER_PASS
: passwort to upload
$DOCKER_IMAGE
: image name ("sdk" or e.g. "openwrt-sdk")
$BRANCHES
and $TARGETS
unite to an build matrix.
See .circleci/config.yml
for the current setup.
An unpackaged version of OpenWrt's rootfs for different architectures. The
./rootfs
folder requires slight modifications to work within Docker,
additional files for the rootfs should be added there before building.
docker run --rm -it openwrt:x86-64
Enjoy a local OpenWrt container with internet access. Once closed the image is removed.
- x86-64
- armvirt-32
- armvirt-64
Contains the OpenWrt SDK based on a debian:latest
container with required
packages preinstalled. This can be usefull when building packages on MacOS X,
Windows or via CI.
docker run --rm -v ./bin/:/home/build/sdk/bin -it sdk:x86-64
# within the Docker container
./scripts/feeds update base
make defconfig
./scripts/feeds install firewall
make package/firewall/{clean,compile} -j$(nproc)
Enjoy a local OpenWrt SDK container building the firewall3
package and but the
binary in hosts ./bin
folder.
All currently available SDKs via lower case <target>-<subtarget>
Contains the OpenWrt ImageBuilder based on a debian:latest
container with
required packages preinstalled. This can be usefull when creating images on
MacOS X, Windows or via CI.
docker run --rm -v ./bin/:/home/build/imagebuilder/bin -it imagebuilder:x86-64
# within the Docker container
make image
Enjoy a local OpenWrt ImageBuilder container building an image for x86/64 and
store the binary in hosts ./bin
folder.
All currently available ImageBuilders via lower case <target>-<subtarget>