a collection of buildroot base images with the target arch rootfs preinstalled
This Dockerfile includes 2 stages:
base- just buildroot dependencies and sourcesrootfs- base plus a pre-compiled rootfs for a specific arch
# build the base image for your host
docker build . --build-arg BR_VERSION="2020.11" \
--target base -t buildroot-base
# build an amd64 rootfs image for your host
docker build . --build-arg BR_VERSION="2020.11" \
--build-arg ROOTFS_ARCH=amd64 -t buildroot-rootfs-amd64Requires docker login to authenticate with your provided IMAGE_REPO.
# enable qemu for multiarch builds
export DOCKER_CLI_EXPERIMENTAL=enabled
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use --driver docker-container
# select an image repo, buildroot release, and tag
export IMAGE_REPO="docker.io/klutchell"
export BR_VERSION="2020.11"
export IMAGE_TAG="2020.11"
# this part will take all day to build & push multiarch images
docker buildx bake --pushBefore building examples follow the instructions above to build rootfs images.
# mjpg-streamer
docker build ./app/mjpg-streamer -f app/Dockerfile -t mjpg-streamer
# unbound-dnscrypt
docker build ./app/unbound-dnscrypt -f app/Dockerfile -t unbound-dnscrypt