From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLP4s-00031H-U3 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 02:15:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLP4m-0006i7-FO for qemu-devel@nongnu.org; Fri, 08 Jul 2016 02:15:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLP4m-0006i1-9n for qemu-devel@nongnu.org; Fri, 08 Jul 2016 02:15:48 -0400 Date: Fri, 8 Jul 2016 14:15:45 +0800 From: Fam Zheng Message-ID: <20160708061545.GA8848@ad.usersys.redhat.com> References: <1467128564-13476-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1467128564-13476-1-git-send-email-alex.bennee@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 0/5] Support building qemu-user powered docker test images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: qemu-devel@nongnu.org, riku.voipio@linaro.org On Tue, 06/28 16:42, Alex Benn=E9e wrote: > This is the latest iteration of my qemu-user support inside Docker. > They apply directly on top of master. I've made the changes suggested > in the last review and split apart another patch. I've also added a > new update command so a tagged image can be updated with the latest > QEMU. >=20 > To use, first ensure you build the debian-bootstrap image: >=20 > DEB_ARCH=3Darmhf DEB_TYPE=3Dtesting \ > ./tests/docker/docker.py build qemu:debian-bootstrap \ > ./tests/docker/dockerfiles/debian-bootstrap.docker \ > --include-executable=3D./arm-linux-user/qemu-arm Alex, Sorry for the late reply. Is there a way to setup or detect the binfmt_misc configuration on the sy= stem? I think it's better to error out (and hint how to fix that) if qemu-arm i= s not registered. Now it only fails complaining about "wrong exec format" after= the long debootstrap process is done. Fam >=20 > And then run the test quick target: >=20 > make docker-test-quick@debian-bootstrap J=3D9 V=3D1 >=20 > To update the installed QEMU: >=20 > ./tests/docker/docker.py update qemu:debian-bootstrap \ > ./arm-linux-user/qemu-arm >=20 > To run a throwaway container: >=20 > docker run -t -i --rm qemu:debian-bootstrap >=20 > I'll leave it up to you how we cleanly integrate multi-arch builds > into the Make system ;-) >=20 > Alex Benn=E9e (5): > tests/docker/docker.py: docker_dir outside build > tests/docker/docker.py: support --include-executable > tests/docker/docker.py: check and run .pre script > tests/docker/dockerfiles: new debian-bootstrap.docker > tests/docker/docker.py: add update operation >=20 > tests/docker/docker.py | 144 +++++++++++++++= ++++++-- > tests/docker/dockerfiles/debian-bootstrap.docker | 21 ++++ > tests/docker/dockerfiles/debian-bootstrap.pre | 5 + > 3 files changed, 161 insertions(+), 9 deletions(-) > create mode 100644 tests/docker/dockerfiles/debian-bootstrap.docker > create mode 100755 tests/docker/dockerfiles/debian-bootstrap.pre >=20 > --=20 > 2.7.4 >=20