Skip to content

Commit

Permalink
update image to centos:stream9 used for testing rpm build on ci
Browse files Browse the repository at this point in the history
centos:stream8 has reached EOL as per:
https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/

the 'powertools' repository is now known as crb (code-ready-builder)
in centos stream 9
  • Loading branch information
anjannath authored and cfergeau committed Jun 6, 2024
1 parent f0dfdd0 commit 829e538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/rpmbuild/Containerfile.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM quay.io/centos/centos:stream8
FROM quay.io/centos/centos:stream9
WORKDIR $APP_ROOT/src
RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)' \
https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm \
https://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm
COPY . .
RUN mkdir -p ~/rpmbuild/SOURCES/ && \
git archive --format=tar --prefix=crc-__VERSION__-__OPENSHIFT_VERSION__/ HEAD | gzip >~/rpmbuild/SOURCES/crc-__VERSION__.tar.gz
RUN yum config-manager --set-enabled powertools && \
RUN yum config-manager --set-enabled crb && \
yum -y builddep packaging/rpm/crc.spec && \
rpmbuild -bb -v packaging/rpm/crc.spec

0 comments on commit 829e538

Please sign in to comment.