mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
The previous commit consolidated test content (nushell, cloud-init, etc.) into the base image. This completes that work by removing the separate `build-integration-test-image` target and updating all references. Now `just build` produces the complete test-ready image directly, simplifying the build pipeline and eliminating the intermediate `localhost/bootc-integration` image. Also adds SKIP_CONFIGS support for the coreos testing workflow, which skips LBIs, test kargs, and install configs that would conflict with FCOS. Signed-off-by: Colin Walters <walters@verbum.org>
43 lines
1.0 KiB
Docker
43 lines
1.0 KiB
Docker
# 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
|
|
|
|
ARG GATING
|
|
RUN <<EORUN
|
|
set -xeuo pipefail
|
|
. /usr/lib/os-release
|
|
if [[ $ID == "rhel" ]]; then
|
|
cp rhel.repo /etc/yum.repos.d/
|
|
fi
|
|
# 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
|
|
cp test-artifacts.repo /etc/yum.repos.d/
|
|
dnf -y update bootc
|
|
# Required by tmt avc checking after test
|
|
dnf -y install audit
|
|
./provision-derived.sh cloudinit
|
|
|
|
# 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
|