Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local container image registry for CI to avoid docker.io ratelimits #318

Merged
merged 4 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions environments/.stackhpc/hooks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,19 @@
- "{{ 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
sjpb marked this conversation as resolved.
Show resolved Hide resolved
copy:
sjpb marked this conversation as resolved.
Show resolved Hide resolved
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
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 '' }}"
Loading