From: Laszlo Gombos Date: Sat, 12 Mar 2022 15:06:45 +0000 (+0000) Subject: ci: add Debian Linux to limited tests X-Git-Tag: 057~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=080f3e2e2908f1380e052c9c8b6fda58ca7bfd78;p=thirdparty%2Fdracut.git ci: add Debian Linux to limited tests --- diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index e1eb7c739..a4c3ae737 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -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 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 89310d445..336d63a18 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 index 000000000..558725877 --- /dev/null +++ b/test/container/Dockerfile-Debian @@ -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"]