Skip to content

Commit 76be3d8

Browse files
authored
Merge pull request #318 from stackhpc/fix/dockerio-ratelimits
Use local container image registry for CI to avoid docker.io ratelimits
2 parents 089d85c + 18342ef commit 76be3d8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

environments/.stackhpc/hooks/pre.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,20 @@
1515
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/hosts"
1616
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/secrets.yml"
1717
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/test_user.yml"
18+
19+
- hosts: all:!builder
20+
become: yes
21+
gather_facts: false
22+
tags: podman
23+
tasks:
24+
- name: Configure container image registry for unqualified searches to avoid docker.io ratelimits
25+
copy:
26+
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
27+
content: |
28+
unqualified-search-registries = ['{{ podman_registry_address | split('/') | first }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
29+
30+
[[registry]]
31+
prefix = "{{ podman_registry_address }}"
32+
location = "{{ podman_registry_address }}"
33+
insecure = true
34+
when: "ci_cloud == 'ARCUS'"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
arcus_podman_registry_address: 192.168.3.95:5000
2+
podman_registry_address: "{{ arcus_podman_registry_address if ci_cloud == 'ARCUS' else '' }}"

0 commit comments

Comments
 (0)