Skip to content

Commit 6ac14c3

Browse files
Try an US mirror for OpenEuler
Given that public runners are hosted in US https://github.com/orgs/community/discussions/24969
1 parent 6cdbda1 commit 6ac14c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ci_build_images/centos.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ LABEL maintainer="MariaDB Buildbot maintainers"
99

1010
# Install updates and required packages
1111
# hadolint ignore=SC2086
12-
RUN dnf -y install 'dnf-command(config-manager)' \
12+
RUN source /etc/os-release \
13+
&& if [ "$ID" == "openEuler" ]; then sed -i 's#http://repo.openeuler.org#https://mirrors.ocf.berkeley.edu/openeuler#g' /etc/yum.repos.d/openEuler.repo; fi \
14+
&& dnf -y install 'dnf-command(config-manager)' \
1315
&& source /etc/os-release \
1416
&& ARCH=$(rpm --query --queryformat='%{ARCH}' rpm) \
1517
&& case "$PLATFORM_ID" in \
@@ -43,7 +45,6 @@ RUN dnf -y install 'dnf-command(config-manager)' \
4345
# remove . from between the version to correspond to
4446
# the galera repository name.
4547
VERSION_ID=-${VERSION_ID%.*}${VERSION_ID#*.}; \
46-
sed -i 's#http://repo.openeuler.org#https://mirrors.dotsrc.org/openeuler#g' /etc/yum.repos.d/openEuler.repo; \
4748
;; \
4849
"rocky") \
4950
ID=rockylinux; \

0 commit comments

Comments
 (0)