Message ID | 20200124204026.2107-11-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show |
Series | docker multiarch awareness | expand |
On 1/24/20 9:40 PM, Alex Bennée wrote: > This is a new dockerfile which can build the native architecture QEMU > on a Debian 10 based image whatever architecture that may be. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > --- > .../dockerfiles/debian10-native-qemu-build.docker | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 tests/docker/dockerfiles/debian10-native-qemu-build.docker > > diff --git a/tests/docker/dockerfiles/debian10-native-qemu-build.docker b/tests/docker/dockerfiles/debian10-native-qemu-build.docker > new file mode 100644 > index 0000000000..71bd2b1d83 > --- /dev/null > +++ b/tests/docker/dockerfiles/debian10-native-qemu-build.docker > @@ -0,0 +1,15 @@ > +# > +# Debain Native Build > +# > +# This docker target builds on the Debian Buster base image. It is > +# deliberatly architecture agnostic as it can build on any Debian > +# supported architecture. > +# > +FROM qemu:debian10 > +MAINTAINER Alex Bennée <alex.bennee@linaro.org> > + > +# We use --arch-only as not all hosts have what's needed to build all > +# the binpkg's that come with QEMU (roms etc). > +RUN apt update && \ > + DEBIAN_FRONTEND=noninteractive eatmydata \ > + apt build-dep --arch-only -yy qemu > Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff --git a/tests/docker/dockerfiles/debian10-native-qemu-build.docker b/tests/docker/dockerfiles/debian10-native-qemu-build.docker new file mode 100644 index 0000000000..71bd2b1d83 --- /dev/null +++ b/tests/docker/dockerfiles/debian10-native-qemu-build.docker @@ -0,0 +1,15 @@ +# +# Debain Native Build +# +# This docker target builds on the Debian Buster base image. It is +# deliberatly architecture agnostic as it can build on any Debian +# supported architecture. +# +FROM qemu:debian10 +MAINTAINER Alex Bennée <alex.bennee@linaro.org> + +# We use --arch-only as not all hosts have what's needed to build all +# the binpkg's that come with QEMU (roms etc). +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt build-dep --arch-only -yy qemu
This is a new dockerfile which can build the native architecture QEMU on a Debian 10 based image whatever architecture that may be. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- .../dockerfiles/debian10-native-qemu-build.docker | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/docker/dockerfiles/debian10-native-qemu-build.docker