Skip to content

Commit

Permalink
Leverage mirror to avoid too many pull requests because of skopeo
Browse files Browse the repository at this point in the history
skopeo directly pulls from docker.io which easily reaches the pull
rate limit.

Please see shared_database and observability failing because of skopeo
(whatever the use of private mirror or mirror.gcr.io):
https://github.com/cnti-testcatalog/testsuite/actions/runs/12674901774/job/35470396257?pr=2203
https://github.com/cnti-testcatalog/testsuite/actions/runs/12674901774/job/35470398665?pr=2203

Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Jan 12, 2025
1 parent c4450f4 commit d646e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/platform/observability.cr
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ end

def skopeo_digest(image)
ClusterTools.install
resp = ClusterTools.exec("skopeo inspect docker://#{image}")
resp = ClusterTools.exec("skopeo inspect docker://#{image}".gsub("docker.io/", "mirror.gcr.io/"))
Log.info { resp[:output] }
parsed_json = JSON.parse(resp[:output])
parsed_json["Digest"]
end

def skopeo_tags(repo)
ClusterTools.install
resp = ClusterTools.exec("skopeo list-tags docker://#{repo}")
resp = ClusterTools.exec("skopeo list-tags docker://#{repo}".gsub("docker.io/", "mirror.gcr.io/"))
Log.info { resp[:output] }
parsed_json = JSON.parse(resp[:output])
parsed_json["Tags"]
Expand Down

0 comments on commit d646e49

Please sign in to comment.