]> git.ipfire.org Git - thirdparty/dracut.git/blob - test/container/Dockerfile-Debian
ci: add dmraid to Debian and Gentoo container to run test 14
[thirdparty/dracut.git] / test / container / Dockerfile-Debian
1 FROM docker.io/debian:latest
2
3 MAINTAINER https://github.com/dracutdevs/dracut
4
5 ENV container docker
6 LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
7
8 RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
9
10 # Install needed packages for the dracut CI container
11 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 \
12 asciidoc \
13 astyle \
14 btrfs-progs \
15 busybox-static \
16 bzip2 \
17 ca-certificates \
18 console-setup \
19 cpio \
20 cryptsetup \
21 curl \
22 dash \
23 debhelper \
24 debhelper-compat \
25 docbook \
26 docbook-xml \
27 docbook-xsl \
28 fdisk \
29 g++ \
30 git \
31 iputils-arping \
32 iputils-ping \
33 isc-dhcp-client \
34 isc-dhcp-server \
35 kmod \
36 less \
37 libdmraid-dev \
38 libkmod-dev \
39 linux-image-generic \
40 lvm2 \
41 make \
42 mdadm \
43 multipath-tools \
44 nbd-client \
45 network-manager \
46 nfs-kernel-server \
47 ntfs-3g \
48 open-iscsi \
49 parted \
50 pigz \
51 pkg-config \
52 procps \
53 qemu-system-x86 \
54 quilt \
55 shellcheck \
56 squashfs-tools \
57 strace \
58 sudo \
59 tcpdump \
60 vim \
61 wget \
62 && apt-get clean
63
64 # workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962300
65 RUN DEBIAN_FRONTEND=noninteractive apt-get download dmraid \
66 && DEBIAN_FRONTEND=noninteractive dpkg --unpack dmraid*.deb \
67 && rm -rf /var/lib/dpkg/info/dmraid.postinst -f \
68 && DEBIAN_FRONTEND=noninteractive dpkg --configure dmraid \
69 && apt-get install -yf \
70 && apt-get clean
71
72 # Set default command
73 CMD ["/usr/bin/bash"]