2025-09-24 15:13:36 +08:00
|
|
|
# Build image for system-reinstall-bootc test
|
|
|
|
|
|
|
|
|
|
# Use centos-bootc:stream10 as default
|
|
|
|
|
FROM quay.io/centos-bootc/centos-bootc:stream10
|
|
|
|
|
|
|
|
|
|
WORKDIR /bootc-test
|
|
|
|
|
|
|
|
|
|
# Save testing farm run files
|
|
|
|
|
COPY ARTIFACTS /var/ARTIFACTS
|
|
|
|
|
# Copy bootc repo
|
|
|
|
|
COPY test-artifacts /var/share/test-artifacts
|
|
|
|
|
|
2025-10-08 11:47:44 +08:00
|
|
|
ARG GATING
|
2025-09-24 15:13:36 +08:00
|
|
|
RUN <<EORUN
|
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
. /usr/lib/os-release
|
|
|
|
|
if [[ $ID == "rhel" ]]; then
|
|
|
|
|
cp rhel.repo /etc/yum.repos.d/
|
|
|
|
|
fi
|
2025-11-05 09:34:18 +08:00
|
|
|
# OSCI uses /var/lib/tmt/scripts to save tmt-* commands
|
|
|
|
|
# Fedora CI and Packit use /usr/local/bin
|
|
|
|
|
if [[ -d scripts ]]; then
|
|
|
|
|
mkdir -p /var/lib/tmt
|
|
|
|
|
cp -r scripts /var/lib/tmt/
|
|
|
|
|
else
|
|
|
|
|
cp -r bin /usr/local
|
|
|
|
|
fi
|
2025-09-24 15:13:36 +08:00
|
|
|
cp test-artifacts.repo /etc/yum.repos.d/
|
|
|
|
|
dnf -y update bootc
|
2025-11-05 09:34:18 +08:00
|
|
|
# Required by tmt avc checking after test
|
|
|
|
|
dnf -y install audit
|
2026-01-06 14:56:15 -05:00
|
|
|
./provision-derived.sh cloudinit
|
2025-09-24 15:13:36 +08:00
|
|
|
|
|
|
|
|
# Remove bootc repo, bootc updated already
|
|
|
|
|
rm -rf /var/share/test-artifacts /etc/yum.repos.d/test-artifacts.repo
|
|
|
|
|
# Clean up dnf
|
|
|
|
|
dnf -y clean all
|
|
|
|
|
rm -rf /var/cache /var/lib/dnf
|
|
|
|
|
|
|
|
|
|
# Finally, test our own linting
|
|
|
|
|
# bootc container lint --fatal-warnings
|
|
|
|
|
EORUN
|