/docker-rpi-raspbian

Raspbian image for docker

Primary LanguageShell

rpi-raspbian

Raspbian image for docker on raspberry pi.

Generating

This image is built on a raspberry pi running raspbian. A chroot is created using debootstrap and compressed so docker can add the root filesystem during the build process. The compression requires xz-utils (or something similar) to be installed on the build machine.

mkimage-raspbian.sh is used to build and configure the chroot. This script heavily borrows from docker's mkimage.sh script.

Building

If you want to build this image yourself, run the following to generate the compressed chroot.

$ ./mkimage-raspbian.sh

Get some tacos.

$ mv raspbian.$(date +%Y.%m.%d).tar.xz raspbian.tar.xz 
$ docker build -t rpi-raspbian .

Running

This image does not do anything fancy, but if you want to test it out, run the following:

$ docker run --name raspbian -it aducastel/rpi-raspbian:latest /bin/bash