From patchwork Wed Apr 3 17:33:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 10884277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C003F17E0 for ; Wed, 3 Apr 2019 17:36:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAC0127FA8 for ; Wed, 3 Apr 2019 17:36:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E34D288F4; Wed, 3 Apr 2019 17:36:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29BD9288F3 for ; Wed, 3 Apr 2019 17:36:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hBjmK-0003jH-QX; Wed, 03 Apr 2019 17:34:24 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hBjmJ-0003j9-8e for xen-devel@lists.xenproject.org; Wed, 03 Apr 2019 17:34:23 +0000 X-Inumbo-ID: b6013848-5636-11e9-953d-b7d51b62fc91 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id b6013848-5636-11e9-953d-b7d51b62fc91; Wed, 03 Apr 2019 17:34:19 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.60,305,1549929600"; d="scan'208";a="82645038" From: Anthony PERARD To: Date: Wed, 3 Apr 2019 18:33:58 +0100 Message-ID: <20190403173358.17718-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2] automation: Add Arch Linux container and build jobs X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Anthony PERARD , Doug Goldstein , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP One particularity of Arch Linux, /usr/bin/python is python3. Signed-off-by: Anthony PERARD Acked-by: Doug Goldstein --- 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" ;;