Skip to contentSkip to conversation

automation: add Fedora image and build jobs

PATCH In review Wei Liu 2 participants 5 messages Apr 4, 2019

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

cover automation: add Fedora image and build jobs

Wei Liu (3):
automation: add a Fedora image
automation: add Fedora image to containerize script
gitlab-ci: add fedora gcc build jobs

 automation/build/fedora/latest.dockerfile | 43 +++++++++++++++++++++++
 automation/gitlab-ci/build.yaml           | 10 ++++++
 automation/scripts/containerize           |  5 +--
 3 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/fedora/latest.dockerfile
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
author
#1 lore raw

PATCH 1/3 automation: add a Fedora image

Use the latest and greatest.

---
 automation/build/fedora/latest.dockerfile | 43 +++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 automation/build/fedora/latest.dockerfile
automation/build/fedora/latest.dockerfile new file +43 -0
new file mode 100644
index 0000000000..e0db7afad8
@@ -0,0 +1,43 @@
+FROM fedora:latest
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="[email protected]"
+
+RUN mkdir /build
+WORKDIR /build
+
+# install Xen depends
+RUN dnf -y install \
+        clang \
+        gcc \
+        gcc-c++ \
+        ncurses-devel \
+        zlib-devel \
+        openssl-devel \
+        python-devel \
+        libuuid-devel \
+        pkgconfig \
+        gettext \
+        flex \
+        bison \
+        libaio-devel \
+        glib2-devel \
+        yajl-devel \
+        pixman-devel \
+        glibc-devel \
+        glibc-devel.i686 \
+        make \
+        binutils \
+        git \
+        wget \
+        acpica-tools \
+        python-markdown \
+        patch \
+        checkpolicy \
+        dev86 \
+        xz-devel \
+        bzip2 \
+        nasm \
+        ocaml \
+        ocaml-findlib \
+    && dnf clean all && \
+    rm -rf /var/cache/dnf
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
author
#2 lore raw

PATCH 2/3 automation: add Fedora image to containerize script

In reply to Wei Liu

At the same time sort the list alphabetically.

---
 automation/scripts/containerize | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
automation/scripts/containerize +3 -2
index 01c44da93c..a7809b3010 100755
@@ -19,10 +19,11 @@ case "_${CONTAINER}" in
     _centos6) CONTAINER="${BASE}/centos:6" ;;
     _centos7) CONTAINER="${BASE}/centos:7" ;;
     _centos72) CONTAINER="${BASE}/centos:7.2" ;;
-    _trusty) CONTAINER="${BASE}/ubuntu:trusty" ;;
-    _xenial) CONTAINER="${BASE}/ubuntu:xenial" ;;
+    _fedora) CONTAINER="${BASE}/fedora:latest";;
     _jessie) CONTAINER="${BASE}/debian:jessie" ;;
     _stretch|_) CONTAINER="${BASE}/debian:stretch" ;;
+    _trusty) CONTAINER="${BASE}/ubuntu:trusty" ;;
+    _xenial) CONTAINER="${BASE}/ubuntu:xenial" ;;
 esac
 
 # Use this variable to control whehter root should be used
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
author
#3 lore raw

PATCH 3/3 gitlab-ci: add fedora gcc build jobs

In reply to Wei Liu

Although the image comes with clang, clang builds don't work yet.

---
 automation/gitlab-ci/build.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
automation/gitlab-ci/build.yaml +10 -0
index c29a76e9ff..dd5722a5bb 100644
@@ -301,6 +301,16 @@ debian-unstable-32-gcc-debug:
   variables:
     CONTAINER: debian:unstable-i386
 
+fedora-gcc:
+  extends: .gcc-x86-64-build
+  variables:
+    CONTAINER: fedora:latest
+
+fedora-gcc-debug:
+  extends: .gcc-x86-64-build-debug
+  variables:
+    CONTAINER: fedora:latest
+
 # Ubuntu Trusty's Clang is 3.4 while Xen requires 3.5
 
 ubuntu-trusty-gcc:
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel