Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rgaidot
Created May 24, 2016 08:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rgaidot/bc2efc014cccabb926392e353708122a to your computer and use it in GitHub Desktop.
Save rgaidot/bc2efc014cccabb926392e353708122a to your computer and use it in GitHub Desktop.
Build RancherOS for Raspberry Pi
#!/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