forked from dracutdevs/dracut
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: create a fedora rawhide container
Remove Fedora 34 for now, as it is fedora:latest
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |