Skip to contentSkip to conversation

travis: Temporary workaround for pull rate limit

PATCH New Petr Vorel 3 participants 5 messages Jan 18, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 travis: Temporary workaround for pull rate limit

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

---
Hi,

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

Kind regards,
Petr

 .travis.yml | 8 ++++++++
 1 file changed, 8 insertions(+)
.travis.yml +8 -0
index edf627c33..245b790de 100644
@@ -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
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 travis: Temporary workaround for pull rate limit

Hi Petr
I think using gcr.io mirror as a temporary solution is OK. But why we not migrate into Github Actions directly? Now, it is time to this release and do we should apply it before release?

Best Regards
Yang Xu

Quoted 36 lines

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

---
Hi,

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

Kind regards,
Petr

  .travis.yml | 8 ++++++++
  1 file changed, 8 insertions(+)
.travis.yml +8 -0
index edf627c33..245b790de 100644
@@ -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
author
#2 lore raw

PATCH 1/1 travis: Temporary workaround for pull rate limit

Hi Xu,

Quoted 4 lines

Hi Petr
I think using gcr.io mirror as a temporary solution is OK. But why we not migrate into Github Actions directly? Now, it is time to this release and do we should apply it before release?

Lack of time on my side (working on other fixes before release).

Quoted 2 lines

Best Regards
Yang Xu

Kind regards,
Petr

#3 lore raw

PATCH 1/1 travis: Temporary workaround for pull rate limit

Hi!

Quoted 4 lines
Quoted 3 lines

I think using gcr.io mirror as a temporary solution is OK. But why we not migrate into Github Actions directly? Now, it is time to this release and do we should apply it before release?

Lack of time on my side (working on other fixes before release).

Let's push this now, since it's important to have travis working when we are finalizing the release.

Signature · 2 lines
Cyril Hrubis
[email protected]
author
#4 lore raw

PATCH 1/1 travis: Temporary workaround for pull rate limit

Quoted 2 lines

Let's push this now, since it's important to have travis working when we are finalizing the release.

Thanks! Pushed with your and Xu ack.

Kind regards,
Petr