]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: add Dockerfile for Fedora 35
authorPavel Valena <pvalena@redhat.com>
Mon, 4 Apr 2022 04:40:08 +0000 (06:40 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 4 Apr 2022 05:50:52 +0000 (05:50 +0000)
test/container/Dockerfile-Fedora-35 [new file with mode: 0644]

diff --git a/test/container/Dockerfile-Fedora-35 b/test/container/Dockerfile-Fedora-35
new file mode 100644 (file)
index 0000000..0291a79
--- /dev/null
@@ -0,0 +1,55 @@
+FROM registry.fedoraproject.org/fedora:35
+
+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 \
+    shfmt \
+    && dnf -y update && dnf clean all
+
+# Set default command
+CMD ["/usr/bin/bash"]