This repository contains scripts to create Docker containers hosting OpenWrt. https://hub.docker.com/r/openwrtorg/rootfs
 
Go to file
Paul Spooren cdf2ada5e3 refactor to common/download/upload scripts
docker-download.sh - Downloads FILE_DOWNLOAD from FILE_HOST and verifies

docker-upload.sh - Uploads the created docker images to docker.io

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-08-01 09:11:32 +02:00
.circleci CI: add pull request test 2019-08-01 02:07:52 +02:00
rootfs/etc init 2019-07-09 14:42:14 +02:00
.gitignore init 2019-07-09 14:42:14 +02:00
Dockerfile.imagebuilder Dockerfile: install python3 2019-07-31 20:19:14 +02:00
Dockerfile.rootfs init 2019-07-09 14:42:14 +02:00
Dockerfile.sdk Dockerfile: install python3 2019-07-31 20:19:14 +02:00
LICENSE Add a copy of the license 2019-07-10 12:12:27 +02:00
README.md Add badges 2019-07-10 12:13:43 +02:00
docker-common.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00
docker-download.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00
docker-imagebuilder.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00
docker-rootfs.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00
docker-sdk.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00
docker-upload.sh refactor to common/download/upload scripts 2019-08-01 09:11:32 +02:00

README.md

OpenWrt Docker repository

GPL-2.0-only License Circle CI Docker Hub

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 $DOCKER_PASS: passwort to upload $DOCKER_IMAGE: image name

$BRANCHES and $TARGETS unite to a build matrix.

See .circleci/config.yml for the current setup.

rootfs

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.

Example

docker run --rm -it openwrtorg/rootfs:x86-64

Enjoy a local OpenWrt container with internet access. Once closed the image is removed.

Tags

  • x86-64
  • armvirt-32
  • armvirt-64

sdk

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.

Example

docker run --rm -v "$(pwd)"/bin/:/home/build/sdk/bin -it openwrtorg/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.

Tags

All currently available SDKs via lower case <target>-<subtarget>

imagebuilder

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.

Example

docker run --rm -v "$(pwd)"/bin/:/home/build/imagebuilder/bin -it openwrtorg/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.

Tags

All currently available ImageBuilders via lower case <target>-<subtarget>