Skip to content

Instantly share code, notes, and snippets.

@juniorz
Last active May 5, 2016 06:10
Show Gist options
  • Save juniorz/3663ea20dc2f9741b689e77634882a77 to your computer and use it in GitHub Desktop.
Save juniorz/3663ea20dc2f9741b689e77634882a77 to your computer and use it in GitHub Desktop.
Building a Raspbian Docker Image
#!/bin/bash
# You MUST run this from your raspberry-pi and have docker installed on it.
# You can use http://blog.hypriot.com/getting-started-with-docker-on-your-arm-device to install docker.
sudo apt-get -y update && sudo apt-get -y install git debootstrap xz-utils
git clone https://github.com/docker/docker
cd docker/contrib/
sudo ./mkimage.sh -d ./ -t raspbian/raspbian-jessie debootstrap \
--no-check-gpg --arch=armhf --verbose --variant='minbase' \
--include='iproute,iputils-ping' jessie http://archive.raspbian.org/raspbian
FROM scratch
ADD rootfs.tar.xz /
CMD ["/bin/bash"]
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment