tests/docker/dockerfiles: new debian-bootstrap.docker
commit95c975013a15405a5ab257deae843ecd2eea20ec
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 19 Jul 2016 13:20:39 +0000 (19 21:20 +0800)
committerFam Zheng <famz@redhat.com>
Wed, 20 Jul 2016 11:19:43 +0000 (20 19:19 +0800)
tree9af73b1fb7de6d2e101034bf4b38915f8eeac251
parent920776ea5ea3d9f243d266581da5345e5d7b2306
tests/docker/dockerfiles: new debian-bootstrap.docker

Together with the debian-bootstrap.pre script can now build an arbitrary
architecture of Debian using debootstrap. This allows debootstrap to set
up its first stage before the container is built.

To build a container you need a command line like:

  DEB_ARCH=armhf DEB_TYPE=testing \
    ./tests/docker/docker.py build \
    --include-executable=arm-linux-user/qemu-arm debian:armhf \
    ./tests/docker/dockerfiles/debian-bootstrap.docker

Although a number of non-debian systems package the debootstrap script
it is fairly portable in itself. Assuming we have some sort of fakeroot
implementation we can just clone the upstream repository and use the
script from there.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1468934445-32183-5-git-send-email-famz@redhat.com
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/dockerfiles/debian-bootstrap.docker [new file with mode: 0644]
tests/docker/dockerfiles/debian-bootstrap.pre [new file with mode: 0755]