Hi Dario, On Sun, Nov 18, 2018 at 10:54 PM Dario Faggioli <dfaggi...@suse.com> wrote: > > On Sun, 2018-11-18 at 19:47 +0000, Alex Bennée wrote: > > Dario Faggioli <dfaggi...@suse.com> writes: > > > > > Dockerfile for building an openSUSE Leap container. > > > > > > Tracks the latest release (at the time of writing this > > > patch, it is Leap 15). > > > > > > Signed-off-by: Dario Faggioli <dfaggi...@suse.com> > > > --- > > > Cc: "Alex Bennée" <alex.ben...@linaro.org> > > > Cc: Fam Zheng <f...@redhat.com> > > > Cc: "Philippe Mathieu-Daudé" <f4...@amsat.org> > > > --- > > > tests/docker/dockerfiles/opensuse-leap.docker | 62 > > > +++++++++++++++++++++++++ > > > 1 file changed, 62 insertions(+) > > > create mode 100644 tests/docker/dockerfiles/opensuse-leap.docker > > > > > > diff --git a/tests/docker/dockerfiles/opensuse-leap.docker > > > b/tests/docker/dockerfiles/opensuse-leap.docker > > > new file mode 100644 > > > index 0000000000..9d00861e66 > > > --- /dev/null > > > +++ b/tests/docker/dockerfiles/opensuse-leap.docker > > > @@ -0,0 +1,62 @@ > > > +FROM opensuse/leap > > > +ENV PACKAGES \ > > <snip> > > > + tar \ > > > + usbredir-devel \ > > > + virglrenderer-devel \ > > > + vte-devel \ > > > + which \ > > > + xen-devel > > > + zlib-devel \ > > > > This hasn't been tested because the docker image fails to build due > > to > > continuation breakage. > > > It is indeed broken. > > Basically, I tested it thoroughly, and I'm quite sure it works ok > (although, I'm no docker expert).
I quickly fixed/tried it. First this package list pulls many unuseful system packages. I added '--no-recommends' to reduce a bit: RUN zypper ref && \ zypper up -y && \ zypper install -y --no-recommends $PACKAGES This still install a bunch of unnecessary stuffs: Creating group systemd-journal with gid 485. Creating group systemd-network with gid 484. Creating user systemd-network (systemd Network Management) with uid 484 and gid 484. Creating group systemd-coredump with gid 483. Creating user systemd-coredump (systemd Core Dumper) with uid 483 and gid 483. Creating group systemd-timesync with gid 482. Creating user systemd-timesync (systemd Time Synchronization) with uid 482 and gid 482. Failed to connect to bus: No such file or directory Then the resulting image takes the same than without --no-recommends: 1.1GB. No idea why. At some point some package tried to talk to the network manager via DBus to start sshd... Second, while this works on x86_64, it fails on aarch64: Problem: libcurl-devel-7.59.0-lp150.1.2.aarch64 requires libcurl4 = 7.59.0, but this requirement cannot be provided not installable providers: libcurl4-7.59.0-lp150.1.2.aarch64[repo-oss] Solution 1: downgrade of libcurl4-7.60.0-lp150.2.15.1.aarch64 to libcurl4-7.59.0-lp150.1.2.aarch64 Solution 2: do not install libcurl-devel-7.59.0-lp150.1.2.aarch64 Solution 3: break libcurl-devel-7.59.0-lp150.1.2.aarch64 by ignoring some of its dependencies Not your fault. So I suppose you are planning to use this image to compile QEMU for openSUSE/x86_64 only, is this correct? Regards, Phil. > > Then, when I was about to send the mail, I saw in another commit that > it was best to have the package list sorted; so I did that, and forgot > to adjust the continuation. :-( > > Sorry. > > I'll send a v2 with this fixed. > > Thanks and Regards, > Dario > -- > <<This happens because I choose it to happen!>> (Raistlin Majere) > ----------------------------------------------------------------- > Dario Faggioli, Ph.D, http://about.me/dario.faggioli > Software Engineer @ SUSE https://www.suse.com/