Created
November 5, 2016 09:34
-
-
Save cdpb/f5fba7c67c27c45a397a15621dcc5044 to your computer and use it in GitHub Desktop.
Build Debian / Raspbian ARM - Raspberry
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 | |
# Usage: ./mkimage.sh jessie | |
MIRROR="http://archive.raspbian.org/raspbian" | |
RELEASE="$1" | |
TAG="debian:$RELEASE" | |
DIR=$(mktemp -d) | |
debootstrap --variant=minbase $RELEASE $DIR $MIRROR | |
tar --numeric-owner -C $DIR -c . | docker import - $TAG | |
rm -r $DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment