Skip to content

Commit

Permalink
ci: fix packit config
Browse files Browse the repository at this point in the history
also add C10s containerfile.
  • Loading branch information
pvalena committed Jul 4, 2024
1 parent 6cb58e8 commit c8a1c69
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 506 deletions.
25 changes: 12 additions & 13 deletions .packit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,28 @@ downstream_package_name: dracut
# - "cp pkgbuild/dracut.spec ."

jobs:
# Build test
- job: upstream_koji_build
trigger: pull_request
scratch: true
targets:
- fedora-rawhide-x86_64
- fedora-eln-x86_64
#- job: upstream_koji_build
# trigger: pull_request
# scratch: true
# targets:
# - fedora-rawhide-x86_64
# - fedora-eln-x86_64

- job: copr_build
trigger: pull_request
targets:
- fedora-rawhide-x86_64
- fedora-eln-x86_64
- centos-stream-10-x86_64
- centos-stream-10-aarch64

# Run tests (via testing farm)
- job: tests
trigger: pull_request
targets:
- fedora-rawhide-x86_64
# - fedora-eln-x86_64
- centos-stream-10-x86_64
- centos-stream-10-aarch64

## Create fedora PR
## Create PR
#- job: propose_downstream
# trigger: release
# dist_git_branches:
# - rawhide
# -
52 changes: 0 additions & 52 deletions test/container/Dockerfile-Arch

This file was deleted.

56 changes: 56 additions & 0 deletions test/container/Dockerfile-CentOS-10-Stream
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM quay.io/centos/centos:stream10

MAINTAINER https://github.com/redhat-plumbers/dracut-rhel10

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
# FIXME: properly re-add dash once C10S EPEL is available
# http://mirrors.kernel.org/fedora/releases/34/Everything/x86_64/os/Packages/d/dash-0.5.10.2-8.fc34.x86_64.rpm \
RUN dnf -y install --enablerepo crb --setopt=install_weak_deps=False \
qemu-kvm \
NetworkManager \
asciidoc \
bash-completion \
bzip2 \
cryptsetup \
dbus-daemon \
dhcp-client \
dhcp-server \
e2fsprogs \
gcc \
git \
iproute \
iputils \
iscsi-initiator-utils \
kbd \
kernel \
kmod-devel \
lvm2 \
make \
mdadm \
nfs-utils \
parted \
pigz \
rpm-build \
squashfs-tools \
strace \
sudo \
tar \
tcpdump \
wget \
which \
xz \
&& dnf -y update && dnf clean all

# C10S ships only qemu-kvm, but it disables the KVM accel when it's not
# available
RUN ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-kvm && \
ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m)

# Set default command
CMD ["/usr/bin/bash"]

66 changes: 0 additions & 66 deletions test/container/Dockerfile-Debian

This file was deleted.

71 changes: 0 additions & 71 deletions test/container/Dockerfile-Fedora-latest

This file was deleted.

59 changes: 0 additions & 59 deletions test/container/Dockerfile-Gentoo

This file was deleted.

Loading

0 comments on commit c8a1c69

Please sign in to comment.