richardphibel / rpms / systemd

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