This is a Docker container for Buildroot for building root file systems (rootfs). It was created to support the Docker nano project.
The configuration for this repository builds an empty rootfs because it is intended to serve as a template for your own configurations. Get started building your own product by cloning the template repository.
To build the rootfs follow these steps.
./nano build
– Build the Docker image locally and tag as buildroot../nano run
– Removes any previous container started by this script and runs a new interactive container named Buildroot from the local buildroot image.buildroot-configure
– Configure Buildroot to install desired packages.buildroot
– Build new rootfs.- [Ctrl]+[D] – Exit container.
./nano pull rootfs
– Copies the compressed rootfs tarball from the Buildroot container to the working directory../nano pull config
– Copies the Buildroot configuration if changes have been made.
A rootfs tarball can be directly imported as a new Docker image using the following command, where foo is the name of the image.
docker import - foo < rootfs.tar.xz
The image can be run normally using a command similar to the following.
docker run -it foo /usr/bin/bar