Received: from eggs.gnu.org ([2001:4830:134:3::10]:34867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC0Za-0008WI-HP for qemu-devel@nongnu.org; Sun, 12 Jun 2016 04:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bC0ZU-0004sH-Ew for qemu-devel@nongnu.org; Sun, 12 Jun 2016 04:16:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC0ZU-0004s9-91 for qemu-devel@nongnu.org; Sun, 12 Jun 2016 04:16:40 -0400 Date: Sun, 12 Jun 2016 16:16:33 +0800 From: Fam Zheng Message-ID: <20160612081633.GO27167@ad.usersys.redhat.com> References: <1465403752-30348-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: <1465403752-30348-1-git-send-email-alex.bennee@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 0/3] 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 Wed, 06/08 17:35, Alex Benn=E9e wrote: > Hi, >=20 > This is a re-spin of the previous series built on top of > fam/docker.next. I've made the changes suggested in the last review > and split the first patch apart to separate (and fix) the build > directory changes first. >=20 > Now it no longer messes with the docker file you can actually > cross-build tests. 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 This can take long depending on the network - I had to explicitly use a c= lose mirror in the pre script to test this, not sure why the mirror redirector doesn't work. Eventually I get this error once the pre script succeeds an= d docker build starts: Sending build context to Docker daemon 235.1 MB Step 1 : FROM scratch --->=20 Step 2 : ADD . / ---> 807bfa810b0c Removing intermediate container e57ded00b227 Step 3 : RUN sed -i 's/in_target mount/echo not for docker in_target moun= t/g' /debootstrap/functions ---> Running in fd80232b38fc rpc error: code =3D 2 desc =3D "oci runtime error: exec format error" IIUC the sed is an armhf binary? Is something missing in the docker file?= I cannot find where the copied qemu-arm is used... Fam >=20 > And then run the test quick target: >=20 > make docker-test-quick@debian-bootstrap J=3D9 V=3D1 >=20 > I'll leave it up to you how we cleanly integrate multi-arch builds > into the Make system ;-) >=20 > Alex Benn=E9e (3): > tests/docker/docker.py: docker_dir outside build > tests/docker/docker.py: support --include-executable > add debian-bootstrap.docker target (and pre script) >=20 > tests/docker/docker.py | 68 ++++++++++++++++= +++++--- > tests/docker/dockerfiles/debian-bootstrap.docker | 21 ++++++++ > tests/docker/dockerfiles/debian-bootstrap.pre | 5 ++ > 3 files changed, 86 insertions(+), 8 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