All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Anthony PERARD <anthony.perard@citrix.com>,
	Doug Goldstein <cardoe@cardoe.com>, Wei Liu <wei.liu2@citrix.com>
Subject: [PATCH v2] automation: Add Arch Linux container and build jobs
Date: Wed, 3 Apr 2019 18:33:58 +0100	[thread overview]
Message-ID: <20190403173358.17718-1-anthony.perard@citrix.com> (raw)

One particularity of Arch Linux, /usr/bin/python is python3.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---

Notes:
    v2:
    - Add the gitlab build stuff
    - update containerize with new shortcut
    - This time, the container is already pushed to the registry
    one pipeline with the archlinux-* jobs:
    https://gitlab.com/xen-project/people/anthonyper/xen/pipelines/55061669

 automation/build/archlinux/current.dockerfile | 52 +++++++++++++++++++
 automation/gitlab-ci/build.yaml               | 10 ++++
 automation/scripts/containerize               |  1 +
 3 files changed, 63 insertions(+)
 create mode 100644 automation/build/archlinux/current.dockerfile

diff --git a/automation/build/archlinux/current.dockerfile b/automation/build/archlinux/current.dockerfile
new file mode 100644
index 0000000000..9af5d66afc
--- /dev/null
+++ b/automation/build/archlinux/current.dockerfile
@@ -0,0 +1,52 @@
+FROM archlinux/base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="xen-devel@lists.xenproject.org"
+
+# Enable multilib repo, for dev86 package
+RUN echo $'[multilib]\nInclude = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf
+
+RUN pacman -S --refresh --sysupgrade --noconfirm --noprogressbar --needed \
+        base-devel \
+        bin86 \
+        bridge-utils \
+        bzip2 \
+        dev86 \
+        dtc \
+        e2fsprogs \
+        ghostscript \
+        git \
+        gnutls \
+        iasl \
+        inetutils \
+        iproute \
+        libaio \
+        libcacard \
+        libgl \
+        libjpeg-turbo \
+        libnl \
+        libpng \
+        libseccomp \
+        markdown \
+        net-tools \
+        nss \
+        perl \
+        pixman \
+        pkgconfig \
+        python \
+        sdl \
+        sdl2 \
+        spice \
+        spice-protocol \
+        systemd \
+        transfig \
+        usbredir \
+        wget \
+        xz \
+        yajl \
+        zlib
+
+ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
+
+RUN useradd --create-home user
+USER user
+WORKDIR /build
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index b70797e82d..c29a76e9ff 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -129,6 +129,16 @@
 
 # Jobs below this line
 
+archlinux-gcc:
+  extends: .gcc-x86-64-build
+  variables:
+    CONTAINER: archlinux:current
+
+archlinux-gcc-debug:
+  extends: .gcc-x86-64-build-debug
+  variables:
+    CONTAINER: archlinux:current
+
 centos-7-2-gcc:
   extends: .gcc-x86-64-build
   variables:
diff --git a/automation/scripts/containerize b/automation/scripts/containerize
index 09d130bbd6..01c44da93c 100755
--- a/automation/scripts/containerize
+++ b/automation/scripts/containerize
@@ -15,6 +15,7 @@ die() {
 #
 BASE="registry.gitlab.com/xen-project/xen"
 case "_${CONTAINER}" in
+    _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
     _centos6) CONTAINER="${BASE}/centos:6" ;;
     _centos7) CONTAINER="${BASE}/centos:7" ;;
     _centos72) CONTAINER="${BASE}/centos:7.2" ;;
-- 
Anthony PERARD


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2019-04-03 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03 17:33 Anthony PERARD [this message]
2019-04-03 23:31 ` [PATCH v2] automation: Add Arch Linux container and build jobs Doug Goldstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190403173358.17718-1-anthony.perard@citrix.com \
    --to=anthony.perard@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.