Last active
May 5, 2016 06:10
-
-
Save juniorz/3663ea20dc2f9741b689e77634882a77 to your computer and use it in GitHub Desktop.
Building a Raspbian Docker Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM scratch | |
ADD rootfs.tar.xz / | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment