From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLRrb-0008Hm-HP for qemu-devel@nongnu.org; Fri, 08 Jul 2016 05:14:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLRrW-0006Ad-L9 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 05:14:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLRrW-0006AT-FI for qemu-devel@nongnu.org; Fri, 08 Jul 2016 05:14:18 -0400 Date: Fri, 8 Jul 2016 17:14:16 +0800 From: Fam Zheng Message-ID: <20160708091416.GB8848@ad.usersys.redhat.com> References: <1467128564-13476-1-git-send-email-alex.bennee@linaro.org> <20160708061545.GA8848@ad.usersys.redhat.com> <8737nkmup5.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <8737nkmup5.fsf@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 Fri, 07/08 08:53, Alex Benn=E9e wrote: >=20 > Fam Zheng writes: >=20 > > 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 suggeste= d > >> 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. > >> > >> To use, first ensure you build the debian-bootstrap image: > >> > >> 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 th= e > > system? >=20 > The trick is doing this in a distribution agnostic way. Certainly > Debian-a-like systems have scripts that allow you to query the state of > binmfmt_misc. What about changing the docker file from "FROM scratch" to "FROM debian"?= Then I think you can query the state in the container. (What is the query comm= and called, BTW?) In addition, what about the idea I proposed in v2: moving the debootstrap command to a dockerfile "RUN" directive? Does it work? I can experiment = with that in this weekend, but if you know that already, that's even better. I= think one hurdle in this series is the required build step. Fam