From 8e9d89d9c05b4ad1d70a508a604c0b1745c1b17f Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 21 Aug 2023 12:03:54 +0200 Subject: [PATCH] ci: also run integration test on Ubuntu Add a Dockerfile for Ubuntu (very similar to Debian) and run the integration tests also on Ubuntu. Signed-off-by: Benjamin Drung --- .github/workflows/container.yml | 1 + .github/workflows/integration.yml | 1 + .github/workflows/manualtest.yml | 1 + test/container/Dockerfile-Ubuntu | 63 +++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 test/container/Dockerfile-Ubuntu diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index dcb99affb2..d8c88089fe 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -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 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 727c2e3f20..ab075b0453 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -22,6 +22,7 @@ jobs: "fedora:latest", "gentoo:latest", "opensuse:latest", + "ubuntu:latest", ] test: [ "01", diff --git a/.github/workflows/manualtest.yml b/.github/workflows/manualtest.yml index 9a64b9e7dd..b790dcf7c6 100644 --- a/.github/workflows/manualtest.yml +++ b/.github/workflows/manualtest.yml @@ -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 index 0000000000..0fb7f2027a --- /dev/null +++ b/test/container/Dockerfile-Ubuntu @@ -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*