Skip to content

Instantly share code, notes, and snippets.

@cdpb
Created November 5, 2016 09:34
Show Gist options
  • Save cdpb/f5fba7c67c27c45a397a15621dcc5044 to your computer and use it in GitHub Desktop.
Save cdpb/f5fba7c67c27c45a397a15621dcc5044 to your computer and use it in GitHub Desktop.
Build Debian / Raspbian ARM - Raspberry
#!/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