[lxc-devel] [lxc-ci/master] Add Apertis image

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Sep 3 08:58:23 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 302 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190903/9ff74b0f/attachment.bin>
-------------- next part --------------
From a1fdaae25d1158de89d3f7338f8bf1fad5fcd459 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 3 Sep 2019 10:55:31 +0200
Subject: [PATCH 1/2] images: Add Apertis

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/apertis.yaml | 62 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 images/apertis.yaml

diff --git a/images/apertis.yaml b/images/apertis.yaml
new file mode 100644
index 0000000..a2214d9
--- /dev/null
+++ b/images/apertis.yaml
@@ -0,0 +1,62 @@
+image:
+  distribution: Apertis
+  description: Apertis {{ image.architecture }} {{ image.variant }} {{ image.release }} {{ image.serial }}
+  variant: minimal
+
+source:
+  downloader: apertis-http
+  url: https://images.apertis.org
+  variant: release
+
+targets:
+  lxc:
+    create-message: |
+      You just created an {{ image.distribution }} container (release={{ image.release }}, arch={{ image.architecture }})
+
+    config:
+      - type: all
+        before: 5
+        content: |-
+          lxc.include = LXC_TEMPLATE_CONFIG/debian.common.conf
+
+      - type: user
+        before: 5
+        content: |-
+          lxc.include = LXC_TEMPLATE_CONFIG/debian.userns.conf
+
+      - type: all
+        after: 4
+        content: |-
+          lxc.include = LXC_TEMPLATE_CONFIG/common.conf
+
+      - type: user
+        after: 4
+        content: |-
+          lxc.include = LXC_TEMPLATE_CONFIG/userns.conf
+
+      - type: all
+        content: |-
+          lxc.arch = {{ image.architecture_personality }}
+
+files:
+ - path: /etc/hostname
+   generator: hostname
+
+ - path: /etc/hosts
+   generator: hosts
+
+ - path: /etc/machine-id
+   generator: remove
+
+packages:
+  manager: apt
+  update: false
+  cleanup: false
+
+environment:
+  variables:
+    - key: TMPDIR
+      set: false
+
+mappings:
+  architecture_map: debian

From 43cadd3f3e9116172f511e8775a2682a0ae7fbfc Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 3 Sep 2019 10:55:55 +0200
Subject: [PATCH 2/2] jobs: Add Apertis

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 jenkins/jobs/image-apertis.yaml | 79 +++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 jenkins/jobs/image-apertis.yaml

diff --git a/jenkins/jobs/image-apertis.yaml b/jenkins/jobs/image-apertis.yaml
new file mode 100644
index 0000000..f32b589
--- /dev/null
+++ b/jenkins/jobs/image-apertis.yaml
@@ -0,0 +1,79 @@
+- job:
+    name: "image-apertis"
+    concurrent: false
+    description: Apertis images for LXC and LXD.
+    node: master
+    project-type: matrix
+
+    axes:
+    - axis:
+        name: architecture
+        type: slave
+        values:
+        - amd64
+        - arm64
+        - armhf
+
+    - axis:
+        name: release
+        type: user-defined
+        values:
+        - '17.12'
+        - '18.03'
+        - '18.06'
+        - '18.09'
+        - '18.12'
+        - v2019pre
+
+    - axis:
+        name: variant
+        type: user-defined
+        values:
+        - default
+
+    - axis:
+        name: restrict
+        type: slave
+        values:
+        - lxc-priv
+
+    builders:
+    - shell: |-
+        cd /lxc-ci
+        LXD_ARCHITECTURE="${architecture}"
+
+
+        exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/apertis.yaml \
+            ${LXD_ARCHITECTURE} 1800 ${WORKSPACE} \
+            -o image.architecture=${architecture} \
+            -o image.release=${release}
+
+    properties:
+    - build-discarder:
+        num-to-keep: 2
+
+    - raw:
+        !include: ../includes/webhook.yaml.inc
+
+    publishers:
+    - archive:
+        artifacts: "*.tar.xz,*.squashfs,image.yaml,serial"
+        only-if-success: true
+
+    - workspace-cleanup:
+        fail-build: false
+
+
+    - naginator:
+        rerun-unstable-builds: true
+        rerun-matrix-part: true
+        max-failed-builds: 3
+        progressive-delay-increment: 300
+        progressive-delay-maximum: 900
+
+    triggers:
+    - timed: '@daily'
+
+    wrappers:
+    - ansicolor:
+        colormap: xterm


More information about the lxc-devel mailing list