]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: add Debian Linux to limited tests
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 12 Mar 2022 15:06:45 +0000 (15:06 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 29 Apr 2022 22:10:44 +0000 (22:10 +0000)
.github/workflows/container.yml
.github/workflows/integration.yml
test/container/Dockerfile-Debian [new file with mode: 0644]

index e1eb7c73979aab85ba9481c222c0c6578a94c47a..a4c3ae73725133de9071483e16a21cd6673aae58 100644 (file)
@@ -32,6 +32,7 @@ jobs:
                     - { dockerfile: 'Dockerfile-Fedora-rawhide',    tag: 'fedora:rawhide' }
                     - { dockerfile: 'Dockerfile-OpenSuse-latest',   tag: 'opensuse:latest' }
                     - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest' }
+                    - { dockerfile: 'Dockerfile-Debian',            tag: 'debian:latest' }
         steps:
             -   name: Check out the repo
                 uses: actions/checkout@v2
index 89310d445de8f648c1d2ef95bfcc4e766f1ce324..336d63a1886c39762896b74e6cbd5e812164c617 100644 (file)
@@ -18,6 +18,7 @@ jobs:
                         "fedora:rawhide",
                         "opensuse:latest",
                         "arch:latest",
+                        "debian:latest",
                 ]
                 test: [
                         "04",
diff --git a/test/container/Dockerfile-Debian b/test/container/Dockerfile-Debian
new file mode 100644 (file)
index 0000000..5587258
--- /dev/null
@@ -0,0 +1,54 @@
+FROM docker.io/debian:latest
+
+MAINTAINER https://github.com/dracutdevs/dracut
+
+ENV container docker
+LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
+
+RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
+
+# Install needed packages for the dracut CI container
+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 \
+    dash \
+    debhelper \
+    debhelper-compat \
+    docbook \
+    docbook-xml \
+    docbook-xsl \
+    g++ \
+    git \
+    isc-dhcp-client \
+    kmod \
+    libkmod-dev \
+    lvm2 \
+    make \
+    mdadm \
+    multipath-tools \
+    nbd-client \
+    network-manager \
+    nfs-common \
+    open-iscsi \
+    pigz \
+    pkg-config \
+    qemu \
+    quilt \
+    shellcheck \
+    squashfs-tools \
+    strace \
+    tcpdump \
+    vim \
+    wget \
+    && apt-get clean
+
+# Set default command
+CMD ["/usr/bin/bash"]