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

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