]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: also run integration test on Ubuntu
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 21 Aug 2023 10:03:54 +0000 (12:03 +0200)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 21 Aug 2023 13:19:57 +0000 (15:19 +0200)
Add a Dockerfile for Ubuntu (very similar to Debian) and run the
integration tests also on Ubuntu.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
.github/workflows/container.yml
.github/workflows/integration.yml
.github/workflows/manualtest.yml
test/container/Dockerfile-Ubuntu [new file with mode: 0644]

index dcb99affb273e8c44a337b4fcf4dc995cad3aef9..d8c88089fe8101c527c2d74c041d8da4957a1942 100644 (file)
@@ -34,6 +34,7 @@ jobs:
                     - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest' }
                     - { dockerfile: 'Dockerfile-Debian',            tag: 'debian:latest' }
                     - { dockerfile: 'Dockerfile-Gentoo',            tag: 'gentoo:latest' }
+                    - { dockerfile: 'Dockerfile-Ubuntu',            tag: 'ubuntu:latest' }
         steps:
             -   name: Check out the repo
                 uses: actions/checkout@v3
index 727c2e3f20bb80157e048b4a97f3dba185d4e757..ab075b04538943ee8306341701ec3458b7bd0a30 100644 (file)
@@ -22,6 +22,7 @@ jobs:
                         "fedora:latest",
                         "gentoo:latest",
                         "opensuse:latest",
+                        "ubuntu:latest",
                 ]
                 test: [
                         "01",
index 9a64b9e7ddc8920ff972c478ccc8a064138f2dd9..b790dcf7c67b0ecda0829229ea91ebfd8e23b9d1 100644 (file)
@@ -15,6 +15,7 @@ on:
                     - "fedora"
                     - "arch"
                     - "debian"
+                    - "ubuntu"
                     - "opensuse"
                     - "gentoo"
 
diff --git a/test/container/Dockerfile-Ubuntu b/test/container/Dockerfile-Ubuntu
new file mode 100644 (file)
index 0000000..0fb7f20
--- /dev/null
@@ -0,0 +1,63 @@
+FROM docker.io/ubuntu:latest
+
+MAINTAINER https://github.com/dracutdevs/dracut
+
+# Install needed packages for the dracut CI container
+# The Linux kernel is only readable by root. See https://launchpad.net/bugs/759725
+RUN apt-get update -y -qq && apt-get upgrade -y -qq && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
+    asciidoc \
+    astyle \
+    btrfs-progs \
+    busybox-static \
+    bzip2 \
+    ca-certificates \
+    console-setup \
+    cpio \
+    cryptsetup \
+    curl \
+    dmraid \
+    docbook \
+    docbook-xml \
+    docbook-xsl \
+    fdisk \
+    g++ \
+    gawk \
+    git \
+    iputils-arping \
+    iputils-ping \
+    isc-dhcp-client \
+    isc-dhcp-server \
+    kmod \
+    less \
+    libdmraid-dev \
+    libkmod-dev \
+    linux-image-generic \
+    lvm2 \
+    make \
+    mdadm \
+    multipath-tools \
+    nbd-client \
+    nbd-server \
+    network-manager \
+    nfs-kernel-server \
+    ntfs-3g \
+    open-iscsi \
+    ovmf \
+    parted \
+    pigz \
+    pkg-config \
+    procps \
+    qemu-kvm \
+    shellcheck \
+    squashfs-tools \
+    strace \
+    sudo \
+    systemd \
+    tcpdump \
+    tgt \
+    thin-provisioning-tools \
+    vim \
+    wget \
+    && apt-get clean \
+    && chmod a+r /boot/vmlinu*