Skip to content

Commit ec970ce

Browse files
CI: rockylinux (9/10) is updated to stabilization (#118)
A direct, official CDN is used instead a mirror.
1 parent 7622f1f commit ec970ce

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎Dockerfile--rockylinux_10.tmpl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ ARG PYTHON_VERSION=3
99
# --------------------------------------------- base1
1010
FROM rockylinux/rockylinux:10 AS base1
1111

12+
# STEP 1: Fix the root cause (unstable mirrors). Switch to the official CDN.
13+
RUN sed -i 's/mirrorlist=/ #mirrorlist=/g' /etc/yum.repos.d/rocky*.repo && \
14+
sed -i 's/#baseurl=http:\/\/dl.rockylinux.org/baseurl=https:\/\/dl.rockylinux.org/g' /etc/yum.repos.d/rocky*.repo
15+
1216
# In RHEL 9/10, the repository for dev packages is called CRB (instead of powertools)
1317
RUN dnf install -y 'dnf-command(config-manager)' && \
1418
dnf config-manager --set-enabled crb

‎Dockerfile--rockylinux_9.tmpl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ RUN /usr/libexec/openssh/sshd-keygen rsa && \
4040
# --------------------------------------------- base2_with_python-3
4141
FROM base1 AS base2_with_python-3
4242

43+
# STEP 1: Fix the root cause (unstable mirrors). Switch to the official CDN.
44+
RUN sed -i 's/mirrorlist=/ #mirrorlist=/g' /etc/yum.repos.d/rocky*.repo && \
45+
sed -i 's/#baseurl=http:\/\/dl.rockylinux.org/baseurl=https:\/\/dl.rockylinux.org/g' /etc/yum.repos.d/rocky*.repo
46+
4347
# Rocky 9/10 installs python3.9 or higher (depending on the repository)
4448
RUN dnf install -y --setopt=retries=10 --setopt=max_parallel_downloads=10 --allowerasing \
4549
python3 \

0 commit comments

Comments
 (0)