Skip to content

Commit 3d422a3

Browse files
authored
Install python3-dnf on Fedora images (#144)
This is required to actually run Chef Infra Client. Signed-off-by: Lance Albertson <lance@osuosl.org> # Description Please describe what this change achieves ## Issues Resolved List any existing issues this PR resolves, or any Discourse or StackOverflow discussions that are relevant ## Type of Change Our release process assumes you are using [Conventional Commit messages](https://www.conventionalcommits.org/en/v1.0.0/). The most important prefixes you should have in mind are: - `_fix_`: which represents bug fixes, and correlates to a SemVer patch. - `_feat_`: which represents a new feature, and correlates to a SemVer minor. - `_feat!_`:, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the !) and will result in a major version change. If you have not included a conventional commit message this can be fixed on merge. ## Check List - [ ] New functionality includes tests - [ ] All tests pass - [ ] Commit message includes a [Conventional Commit Message](https://www.conventionalcommits.org/en/v1.0.0) Signed-off-by: Lance Albertson <lance@osuosl.org>
1 parent ad271c6 commit 3d422a3

3 files changed

Lines changed: 105 additions & 102 deletions

File tree

fedora-41/Dockerfile

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,57 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
1313

1414
# hadolint ignore=DL3041
1515
RUN mkdir /var/cache/libdnf5 && \
16-
dnf -y install \
17-
binutils \
18-
ca-certificates \
19-
cronie \
20-
curl \
21-
dmidecode \
22-
ethtool \
23-
file \
24-
fipscheck \
25-
gnupg2 \
26-
hostname \
27-
initscripts \
28-
iproute \
29-
iptables \
30-
iputils \
31-
less \
32-
lsof \
33-
nc \
34-
net-tools \
35-
nmap \
36-
openssl \
37-
passwd \
38-
procps \
39-
strace \
40-
sudo \
41-
systemd-sysv \
42-
systemd-udev \
43-
tcpdump \
44-
telnet \
45-
util-linux \
46-
vim-minimal \
47-
wget \
48-
libxcrypt-compat \
49-
which && \
50-
dnf upgrade -y && \
51-
dnf clean all && \
52-
rm -rf /var/log/* && \
53-
# Don't start any optional services.
54-
find /etc/systemd/system \
55-
/lib/systemd/system \
56-
-path '*.wants/*' \
57-
\( -name '*getty*' \
58-
-or -name '*systemd-logind*' \
59-
-or -name '*systemd-vconsole-setup*' \
60-
-or -name '*systemd-readahead*' \
61-
-or -name '*kdump*' \
62-
-or -name '*dnf-makecache*' \
63-
-or -name '*udev*' \) \
64-
-exec rm -v {} \; && \
65-
systemctl set-default multi-user.target && \
66-
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
16+
dnf -y install \
17+
binutils \
18+
ca-certificates \
19+
cronie \
20+
curl \
21+
dmidecode \
22+
ethtool \
23+
file \
24+
fipscheck \
25+
gnupg2 \
26+
hostname \
27+
initscripts \
28+
iproute \
29+
iptables \
30+
iputils \
31+
less \
32+
lsof \
33+
nc \
34+
net-tools \
35+
nmap \
36+
openssl \
37+
passwd \
38+
procps \
39+
python3-dnf \
40+
strace \
41+
sudo \
42+
systemd-sysv \
43+
systemd-udev \
44+
tcpdump \
45+
telnet \
46+
util-linux \
47+
vim-minimal \
48+
wget \
49+
libxcrypt-compat \
50+
which && \
51+
dnf upgrade -y && \
52+
dnf clean all && \
53+
rm -rf /var/log/* && \
54+
# Don't start any optional services.
55+
find /etc/systemd/system \
56+
/lib/systemd/system \
57+
-path '*.wants/*' \
58+
\( -name '*getty*' \
59+
-or -name '*systemd-logind*' \
60+
-or -name '*systemd-vconsole-setup*' \
61+
-or -name '*systemd-readahead*' \
62+
-or -name '*kdump*' \
63+
-or -name '*dnf-makecache*' \
64+
-or -name '*udev*' \) \
65+
-exec rm -v {} \; && \
66+
systemctl set-default multi-user.target && \
67+
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
6768

6869
CMD [ "/usr/lib/systemd/systemd" ]

fedora-42/Dockerfile

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,57 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
1313

1414
# hadolint ignore=DL3041
1515
RUN mkdir /var/cache/libdnf5 && \
16-
dnf -y install \
17-
binutils \
18-
ca-certificates \
19-
cronie \
20-
curl \
21-
dmidecode \
22-
ethtool \
23-
file \
24-
fipscheck \
25-
gnupg2 \
26-
hostname \
27-
initscripts \
28-
iproute \
29-
iptables \
30-
iputils \
31-
less \
32-
lsof \
33-
nc \
34-
net-tools \
35-
nmap \
36-
openssl \
37-
passwd \
38-
procps \
39-
strace \
40-
sudo \
41-
systemd-sysv \
42-
systemd-udev \
43-
tcpdump \
44-
telnet \
45-
util-linux \
46-
vim-minimal \
47-
wget \
48-
libxcrypt-compat \
49-
which && \
50-
dnf upgrade -y && \
51-
dnf clean all && \
52-
rm -rf /var/log/* && \
53-
# Don't start any optional services.
54-
find /etc/systemd/system \
55-
/lib/systemd/system \
56-
-path '*.wants/*' \
57-
\( -name '*getty*' \
58-
-or -name '*systemd-logind*' \
59-
-or -name '*systemd-vconsole-setup*' \
60-
-or -name '*systemd-readahead*' \
61-
-or -name '*kdump*' \
62-
-or -name '*dnf-makecache*' \
63-
-or -name '*udev*' \) \
64-
-exec rm -v {} \; && \
65-
systemctl set-default multi-user.target && \
66-
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
16+
dnf -y install \
17+
binutils \
18+
ca-certificates \
19+
cronie \
20+
curl \
21+
dmidecode \
22+
ethtool \
23+
file \
24+
fipscheck \
25+
gnupg2 \
26+
hostname \
27+
initscripts \
28+
iproute \
29+
iptables \
30+
iputils \
31+
less \
32+
lsof \
33+
nc \
34+
net-tools \
35+
nmap \
36+
openssl \
37+
passwd \
38+
procps \
39+
python3-dnf \
40+
strace \
41+
sudo \
42+
systemd-sysv \
43+
systemd-udev \
44+
tcpdump \
45+
telnet \
46+
util-linux \
47+
vim-minimal \
48+
wget \
49+
libxcrypt-compat \
50+
which && \
51+
dnf upgrade -y && \
52+
dnf clean all && \
53+
rm -rf /var/log/* && \
54+
# Don't start any optional services.
55+
find /etc/systemd/system \
56+
/lib/systemd/system \
57+
-path '*.wants/*' \
58+
\( -name '*getty*' \
59+
-or -name '*systemd-logind*' \
60+
-or -name '*systemd-vconsole-setup*' \
61+
-or -name '*systemd-readahead*' \
62+
-or -name '*kdump*' \
63+
-or -name '*dnf-makecache*' \
64+
-or -name '*udev*' \) \
65+
-exec rm -v {} \; && \
66+
systemctl set-default multi-user.target && \
67+
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
6768

6869
CMD [ "/usr/lib/systemd/systemd" ]

fedora-latest/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ RUN dnf -y install \
3535
openssl \
3636
passwd \
3737
procps \
38+
python3-dnf \
3839
strace \
3940
sudo \
4041
systemd-sysv \

0 commit comments

Comments
 (0)