Skip to content

Commit 5811897

Browse files
committed
test: use copr build repo to upgrade bootc in container image
Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent 8d51287 commit 5811897

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

tests/e2e/bootc-install.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22
set -exuo pipefail
33

4-
# Debug PACKIT_COPR_PROJECT and PACKIT_COPR_RPMS
5-
echo "$PACKIT_COPR_PROJECT and $PACKIT_COPR_RPMS"
6-
74
source ./shared_lib.sh
85
dump_runner
96
deploy_libvirt_network
@@ -96,14 +93,19 @@ podman ps -a
9693
TEST_IMAGE_NAME="bootc-workflow-test"
9794
TEST_IMAGE_URL="${REGISTRY_IP}:${REGISTRY_PORT}/${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}"
9895

96+
# Debug PACKIT_COPR_PROJECT and PACKIT_COPR_RPMS
97+
echo "$PACKIT_COPR_PROJECT and $PACKIT_COPR_RPMS"
98+
99+
# Generate bootc copr repo file
100+
sed "s|REPLACE_COPR_PROJECT|${PACKIT_COPR_PROJECT}|; s|REPLACE_TEST_OS|${TEST_OS}|" files/bootc.repo.template | tee "${TEMPDIR}"/bootc.repo > /dev/null
101+
99102
# Configure continerfile
100103
greenprint "Create $TEST_OS installation Containerfile"
101104
tee "$INSTALL_CONTAINERFILE" > /dev/null << EOF
102105
FROM "$TIER1_IMAGE_URL"
103-
COPY build/bootc-2*.${ARCH}.rpm .
106+
COPY bootc.repo /etc/yum.repos.d/
104107
COPY domain.crt /etc/pki/ca-trust/source/anchors/
105-
RUN dnf -y update ./bootc-2*.${ARCH}.rpm && \
106-
rm -f ./bootc-2*.${ARCH}.rpm && \
108+
RUN dnf -y update bootc && \
107109
update-ca-trust
108110
EOF
109111

tests/e2e/files/bootc.repo.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bootc]
2+
name=bootc
3+
baseurl=https://download.copr.fedorainfracloud.org/results/REPLACE_COPR_PROJECT/REPLACE_TEST_OS-$basearch/
4+
enabled=1
5+
gpgcheck=0
6+
repo_gpgcheck=0

0 commit comments

Comments
 (0)