]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: create a fedora rawhide container
authorHarald Hoyer <harald@redhat.com>
Fri, 14 May 2021 10:33:41 +0000 (12:33 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 14 May 2021 10:39:40 +0000 (12:39 +0200)
Remove Fedora 34 for now, as it is fedora:latest

.github/workflows/container.yml
test/container/Dockerfile-Fedora-rawhide [new file with mode: 0644]

index 2381b3e5233e8d21b965bf851556648185d34b4a..0706bf480b5510174eaedb6ecc3e60cbedc8a575 100644 (file)
@@ -29,8 +29,8 @@ jobs:
             matrix:
                 config:
                     - { dockerfile: 'Dockerfile-Fedora-33',         tag: 'fedora:33' }
-                    - { dockerfile: 'Dockerfile-Fedora-34',         tag: 'fedora:34' }
                     - { dockerfile: 'Dockerfile-Fedora-latest',     tag: 'fedora:latest' }
+                    - { dockerfile: 'Dockerfile-Fedora-rawhide',    tag: 'fedora:rawhide' }
                     - { dockerfile: 'Dockerfile-OpenSuse-latest',   tag: 'opensuse:latest' }
                     - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest' }
         steps:
diff --git a/test/container/Dockerfile-Fedora-rawhide b/test/container/Dockerfile-Fedora-rawhide
new file mode 100644 (file)
index 0000000..bd75e61
--- /dev/null
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora:rawhide
+
+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 dnf -y install --setopt=install_weak_deps=False \
+    dash \
+    pigz \
+    asciidoc \
+    mdadm \
+    lvm2 \
+    dmraid \
+    cryptsetup \
+    nfs-utils \
+    nbd \
+    dhcp-server \
+    scsi-target-utils \
+    iscsi-initiator-utils \
+    strace \
+    btrfs-progs \
+    kmod-devel \
+    gcc \
+    bzip2 \
+    xz \
+    tar \
+    wget \
+    rpm-build \
+    make \
+    git \
+    bash-completion \
+    sudo \
+    kernel \
+    dhcp-client \
+    /usr/bin/qemu-kvm \
+    /usr/bin/qemu-system-$(uname -i) \
+    e2fsprogs \
+    tcpdump \
+    iproute \
+    iputils \
+    dbus-daemon \
+    kbd \
+    NetworkManager \
+    python3-imgcreate \
+    which \
+    ShellCheck \
+    && dnf -y update && dnf clean all
+
+# Set default command
+CMD ["/usr/bin/bash"]