Alex, This is the result of my fiddling around docker + qemu-user in the weekend. It can do most of the work except the injection of qemu-user binary from host build. We can try to integrate your "docker.py update" into Makefile to do that, but an open question is how to handle the dependency cleanly: we intentionally allow "make docker-foo" w/o configure or build, but the qemu-user case is very different.
The major change is using "FROM debian" and build thing in the container so that qemu-arm, fakeroot and debootstrap are not required on the system (the docker file installs qemu-user-static). This way the pre script is not needed. The upside is debootstrap can make use of docker cache, so updating is easy, but we have to handle chroot in run script, before running the test command. This seems cleaner in host side dependencies to me, what do you think? Fam Fam Zheng (4): docker: More sensible run script docker: Fix exit code if $CMD failed docker: Support "QEMU_CHROOT" in dockerfiles docker: Add debootstrap-arm image tests/docker/Makefile.include | 5 ++-- tests/docker/dockerfiles/debootstrap-arm.docker | 35 +++++++++++++++++++++++++ tests/docker/run | 28 +++++++++++++++++--- 3 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 tests/docker/dockerfiles/debootstrap-arm.docker -- 2.7.4