Skip to content

Commit

Permalink
packaging: add alternative basic deps with low prio for c10s
Browse files Browse the repository at this point in the history
Add alternative baseurl repos as We see some issues lately with
mirrorlink based repos. This should workaround it together with
skip_if_unavailable=True. If all repos are OK, this is doing
nothing. These were added for c9s but we need those for c10s, too.

Signed-off-by: Vladimír Beneš <[email protected]>
  • Loading branch information
vbenes authored and cathay4t committed Oct 22, 2024
1 parent 614c66d commit f16c81a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packaging/Dockerfile.c10s-nmstate-dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
FROM quay.io/centos/centos:stream10-development

RUN echo "2024-06-26" > /build_time
RUN echo "2024-10-17" > /build_time

# Add alter-baseos and alter-appstream repositories with lower priority
COPY c10s-alter-baseos.repo \
/etc/yum.repos.d/c10s-alter-baseos.repo
COPY c10s-alter-appstream.repo \
/etc/yum.repos.d/c10s-alter-appstream.repo

RUN grep -q "^skip_if_unavailable=" /etc/dnf/dnf.conf && \
sed -i 's/^skip_if_unavailable=.*/skip_if_unavailable=True/' /etc/dnf/dnf.conf || \
echo "skip_if_unavailable=True" >> /etc/dnf/dnf.conf

RUN dnf update -y && \
dnf -y install dnf-plugins-core && \
Expand Down
7 changes: 7 additions & 0 deletions packaging/c10s-alter-appstream.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[10-stream-alter-appstream]
name=CentOS Stream 10 - Alter AppStream
baseurl=https://mirror.stream.centos.org/10-stream/AppStream/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1
gpgcheck=1
priority=1000
7 changes: 7 additions & 0 deletions packaging/c10s-alter-baseos.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[10-stream-alter-baseos]
name=CentOS Stream 10 - Alter BaseOS
baseurl=https://mirror.stream.centos.org/10-stream/BaseOS/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1
gpgcheck=1
priority=1000

0 comments on commit f16c81a

Please sign in to comment.