automation: Adding ninja-build to some docker images
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 7 Jul 2021 16:40:00 +0000 (17:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Jul 2021 11:36:21 +0000 (12:36 +0100)
This is to allow building the latest version of QEMU.

fedora/29:
    In addition to adding "ninja", I've add to make some other
    changes: some `go build` failed with `mkdir /.cache` no
    permission, so I've created a user.
    (this was discovered while testing the new container with the
    script containerize.)

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/build/alpine/3.12.dockerfile
automation/build/fedora/29.dockerfile
automation/build/suse/opensuse-leap.dockerfile
automation/build/ubuntu/bionic.dockerfile
automation/build/ubuntu/focal.dockerfile

index bb8e5ece741422a25997835901df3e81d0fc03d4..4ee3ddc12e5262eda51549291f7dbca40cfb596d 100644 (file)
@@ -47,6 +47,7 @@ RUN \
   apk add glib-dev && \
   apk add libattr && \
   apk add libcap-ng-dev && \
+  apk add ninja && \
   apk add pixman-dev && \
   \
   # cleanup
index 027b93ceaf4e2c0015e13f18a35dce291cd2f88a..60a5d722668faca0fe18bec06897ce72a6a64815 100644 (file)
@@ -2,9 +2,6 @@ FROM fedora:29
 LABEL maintainer.name="The Xen Project" \
       maintainer.email="xen-devel@lists.xenproject.org"
 
-RUN mkdir /build
-WORKDIR /build
-
 # install Xen depends
 RUN dnf -y install \
         clang \
@@ -43,5 +40,11 @@ RUN dnf -y install \
         ocaml \
         ocaml-findlib \
         golang \
+        # QEMU
+        ninja-build \
     && dnf clean all && \
     rm -rf /var/cache/dnf
+
+RUN useradd --create-home user
+USER user
+WORKDIR /build
index 573fbd8ae47ebfea0318d4b445397ac3a3784679..03f8a7acad4f774965d0846ed7775d861a1bada1 100644 (file)
@@ -67,5 +67,7 @@ RUN zypper install -y --no-recommends \
         which \
         xz-devel \
         zlib-devel \
+        # QEMU
+        ninja \
         && \
         zypper clean -a
index 406a97494caf862be1cc19e6ab205a6cce10eca1..1e5a27c70f15c449aaee6777fd15acfc420dfba2 100644 (file)
@@ -45,6 +45,8 @@ RUN apt-get update && \
         wget \
         git \
         nasm \
+        # QEMU
+        ninja-build \
         && \
         apt-get autoremove -y && \
         apt-get clean && \
index 952a3172aa64769d263e58a43bc18998effed30f..74655b9876d227c649ef6355c4338ae048666041 100644 (file)
@@ -44,6 +44,8 @@ RUN apt-get update && \
         wget \
         git \
         nasm \
+        # QEMU
+        ninja-build \
         && \
         apt-get autoremove -y && \
         apt-get clean && \