File: Dockerfile-fedora

package info (click to toggle)
dracut 109-9
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,872 kB
  • sloc: sh: 24,527; ansic: 5,234; makefile: 346; perl: 186; python: 48; javascript: 19
file content (103 lines) | stat: -rw-r--r-- 2,214 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Test coverage provided by this container:
# - arm64
# - strict hostonly
# - xfs
# - memstrack
# - ndctl (for nvdimm)
# - fcoe-utils (Fibre Channel over Ethernet)
# - curl (url-lib)
# - cifs-utils (cifs)
# - openssh (ssh-client)
# - rsyslog (syslog)
# - libkcapi-hmaccalc (fido)
# - nss-softokn, kdumpbase out of tree dracut modules
# - fips
# - ignition
# - dbus-broker
# - network: network-manager

ARG DISTRIBUTION=fedora
ARG REGISTRY=registry.fedoraproject.org

FROM ${REGISTRY}/${DISTRIBUTION}

# export ARG
ARG DISTRIBUTION

# prefer running tests with xfs
ENV TEST_FSTYPE=xfs

RUN \
if [[ "${DISTRIBUTION}" =~ "centos:" ]]; then \
    dnf config-manager --set-enabled crb; \
    dnf -y install epel-release; \
else \
    dnf -y install --setopt=install_weak_deps=False \
    btrfs-progs \
    dhcp-server \
    nbd \
    qemu \
    scsi-target-utils \
; fi

RUN dnf -y install --setopt=install_weak_deps=False \
    asciidoctor \
    bash-completion \
    bluez \
    cargo \
    cifs-utils \
    cryptsetup \
    crypto-policies-scripts \
    device-mapper-multipath \
    dnsmasq \
    dracut-live \
    e2fsprogs \
    erofs-utils \
    fcoe-utils \
    fuse3 \
    gcc \
    ignition \
    iproute \
    iputils \
    iscsi-initiator-utils \
    jq \
    kbd \
    kdump-utils \
    kernel \
    kmod-devel \
    libfido2 \
    libkcapi-hmaccalc \
    libselinux-utils \
    lvm2 \
    make \
    mdadm \
    memstrack \
    ndctl \
    NetworkManager \
    nfs-utils \
    nvme-cli \
    parted \
    pcsc-lite \
    plymouth \
    qemu-kvm \
    rng-tools \
    rsyslog \
    squashfs-tools \
    swtpm \
    systemd-boot-unsigned \
    systemd-container \
    systemd-devel \
    systemd-resolved \
    systemd-ukify \
    tpm2-tools \
    xfsprogs \
    xorriso \
    && dnf -y update && dnf clean all

# CentOS Stream ships only qemu-kvm, but it disables the KVM accel when it's not available
RUN \
if [[ "${DISTRIBUTION}" =~ "centos:" ]]; then \
    [[ -e /usr/bin/qemu-kvm ]] || ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-kvm ;\
    [[ -e /usr/bin/qemu-system-$(uname -m) ]] || ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m) ;\
fi ;\
update-crypto-policies --no-reload --set FIPS