Created
May 24, 2016 08:52
-
-
Save rgaidot/bc2efc014cccabb926392e353708122a to your computer and use it in GitHub Desktop.
Build RancherOS for Raspberry Pi
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/zsh | |
git clone https://github.com/rancher/os.git | |
cd os/scripts/images/rpi-hypriot | |
docker build -f Dockerfile.dapper --pull -t rancheros/rpi . | |
docker run -ti --privileged -v `pwd`/scripts/build.sh:/source/scripts/build.sh -v `pwd`/dist:/source/dist rancheros/rpi | |
echo --- | |
echo Done! | |
echo Now you can unzip rancheros-rpi2.zip in os/scripts/images/rpi-hypriot/dist | |
echo ...and write img on your SD Card | |
echo sudo dd if=./build/rancheros-rpi2.img of=/dev/sdx bs=4k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment