[LTP] [PATCH 1/1] travis: Temporary workaround for pull rate limit

Petr Vorel pvorel@suse.cz
Mon Jan 18 09:13:50 CET 2021


Use mirror.gcr.io mirror to temporary workaround pull rate limit in
docker registry. Correct solution is to migrate to Github Actions.

See also: #761

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

not a final solution for #761, just to get Travis quickly working.

Kind regards,
Petr

 .travis.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index edf627c33..245b790de 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -85,6 +85,14 @@ matrix:
 
 before_install:
     - df -hT
+    # pull rate limit workaround
+    - tmpdaemon=$(mktemp)
+    - sudo jq '."registry-mirrors" += ["https://mirror.gcr.io"]' /etc/docker/daemon.json > $tmpdaemon
+    - sudo mv $tmpdaemon /etc/docker/daemon.json
+    - sudo systemctl daemon-reload
+    - sudo systemctl restart docker
+    - docker system info
+    # ltp
     - DIR="/usr/src/ltp"
     - printf "FROM $DISTRO\nRUN mkdir -p $DIR\nWORKDIR $DIR\nCOPY . $DIR\n" > Dockerfile
     - cat Dockerfile
-- 
2.29.2



More information about the ltp mailing list