Skip to content

Commit 1ab3841

Browse files
committed
Fetch cri-o RPMs to /tmp/rpms
1 parent 630db8c commit 1ab3841

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

entrypoint.sh

+10-5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ EXTENSION_RPMS=(
2121
unbound-libs
2222
python3-libs
2323
)
24+
CRIO_RPMS=(
25+
cri-o
26+
cri-tools
27+
)
2428
CRIO_VERSION="1.18"
2529

2630
# fetch binaries and configure working env, prow doesn't allow init containers or a second container
@@ -52,12 +56,8 @@ rm -rf /etc/yum.repos.d
5256
ostree --repo=/srv/repo checkout "${REF}" --subpath /usr/etc/yum.repos.d --user-mode /etc/yum.repos.d
5357
dnf clean all
5458

55-
# enable crio
56-
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/fedora-updates-testing-modular.repo
57-
dnf module enable -y cri-o:${CRIO_VERSION}
58-
5959
# prepare a list of repos to download packages from
60-
REPOLIST="--enablerepo=fedora --enablerepo=updates --enablerepo=updates-testing-modular"
60+
REPOLIST="--enablerepo=fedora --enablerepo=updates"
6161
for i in "${!REPOS[@]}"; do
6262
REPOLIST="${REPOLIST} --repofrompath=repo${i},${REPOS[$i]}"
6363
done
@@ -74,6 +74,11 @@ popd
7474
# inject cri-o, hyperkube RPMs and MCD binary in the ostree commit
7575
mkdir /tmp/working
7676
pushd /tmp/working
77+
# enable crio
78+
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/fedora-updates-testing-modular.repo
79+
dnf module enable -y cri-o:${CRIO_VERSION}
80+
yumdownloader --archlist=x86_64 --disablerepo='*' --destdir=/tmp/rpms --enablerepo=updates-testing-modular cri-o cri-tools
81+
7782
for i in $(find /tmp/rpms/ -iname *.rpm); do
7883
echo "Extracting $i ..."
7984
rpm2cpio $i | cpio -div

0 commit comments

Comments
 (0)