docker: debian-bootstrap.pre: print helpful message if DEB_ARCH/DEB_TYPE unset
commit341edc0c47eb0c27bfe530c064b123e0c00ae2be
authorSascha Silbe <silbe@linux.vnet.ibm.com>
Tue, 6 Sep 2016 20:05:47 +0000 (6 22:05 +0200)
committerFam Zheng <famz@redhat.com>
Thu, 8 Sep 2016 11:56:34 +0000 (8 19:56 +0800)
tree9bd58990c3fe77eddb4510948ad4279197ec40ec
parentb5dc88ce24d2b57970f502dd666ca126f0e3ad7f
docker: debian-bootstrap.pre: print helpful message if DEB_ARCH/DEB_TYPE unset

The debian-bootstrap image doesn't choose a default architecture and
distribution version, instead the user has to set both DEB_ARCH and
DEB_TYPE in the environment. Print a reasonably helpful message if
either of them isn't set instead of complaining about "qemu-" being
missing or erroring out because we cannot cd to the mirror URL.

Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Message-Id: <1473192351-601-5-git-send-email-silbe@linux.vnet.ibm.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/dockerfiles/debian-bootstrap.pre