teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0497-ci-use-quay.io-instead-of-Docker-Hub-to-avoid-rate-l.patch

6136c1
From 2dd82aad646bde5a0d49df8562e2578c8b3d04f4 Mon Sep 17 00:00:00 2001
6136c1
From: Frantisek Sumsal <frantisek@sumsal.cz>
6136c1
Date: Fri, 15 Jan 2021 13:00:33 +0100
6136c1
Subject: [PATCH] ci: use quay.io instead of Docker Hub to avoid rate limits
6136c1
6136c1
Docker Hub introduced rate limits for anonymous users (100 requests per
6136c1
six hours), which break our CI in the busier periods. Let's try to use
6136c1
the quay.io CentOS image to mitigate this.
6136c1
6136c1
rhel-only
6136c1
Related: #1871827
6136c1
---
6136c1
 ci/travis-centos-rhel8.sh | 4 ++--
6136c1
 1 file changed, 2 insertions(+), 2 deletions(-)
6136c1
6136c1
diff --git a/ci/travis-centos-rhel8.sh b/ci/travis-centos-rhel8.sh
6136c1
index 43e2cb2585..ffe5813b1a 100755
6136c1
--- a/ci/travis-centos-rhel8.sh
6136c1
+++ b/ci/travis-centos-rhel8.sh
6136c1
@@ -81,11 +81,11 @@ for phase in "${PHASES[@]}"; do
6136c1
             info "Setup phase"
6136c1
             info "Using Travis $CENTOS_RELEASE"
6136c1
             # Pull a Docker image and start a new container
6136c1
-            docker pull centos:$CENTOS_RELEASE
6136c1
+            docker pull quay.io/centos/centos:$CENTOS_RELEASE
6136c1
             info "Starting container $CONT_NAME"
6136c1
             $DOCKER_RUN -v $REPO_ROOT:/build:rw \
6136c1
                         -w /build --privileged=true --name $CONT_NAME \
6136c1
-                        -dit --net=host centos:$CENTOS_RELEASE /sbin/init
6136c1
+                        -dit --net=host quay.io/centos/centos:$CENTOS_RELEASE /sbin/init
6136c1
             # Beautiful workaround for Fedora's version of Docker
6136c1
             sleep 1
6136c1
             $DOCKER_EXEC dnf makecache