Skip to content

Commit

Permalink
Merge pull request #318 from stackhpc/fix/dockerio-ratelimits
Browse files Browse the repository at this point in the history
Use local container image registry for CI to avoid docker.io ratelimits
  • Loading branch information
sjpb authored Oct 20, 2023
2 parents 089d85c + 18342ef commit 76be3d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions environments/.stackhpc/hooks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/hosts"
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/secrets.yml"
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/test_user.yml"

- hosts: all:!builder
become: yes
gather_facts: false
tags: podman
tasks:
- name: Configure container image registry for unqualified searches to avoid docker.io ratelimits
copy:
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
content: |
unqualified-search-registries = ['{{ podman_registry_address | split('/') | first }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
[[registry]]
prefix = "{{ podman_registry_address }}"
location = "{{ podman_registry_address }}"
insecure = true
when: "ci_cloud == 'ARCUS'"
2 changes: 2 additions & 0 deletions environments/.stackhpc/inventory/group_vars/all/podman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
arcus_podman_registry_address: 192.168.3.95:5000
podman_registry_address: "{{ arcus_podman_registry_address if ci_cloud == 'ARCUS' else '' }}"

0 comments on commit 76be3d8

Please sign in to comment.