Skip to content

Commit 58ed1fd

Browse files
committed
revise to use Arcus staging pull-through cache
1 parent 63522fe commit 58ed1fd

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

environments/.stackhpc/hooks/pre.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,13 @@
1919
- hosts: all:!builder
2020
become: yes
2121
gather_facts: false
22-
name: Use local container image registry to avoid docker.io ratelimits
2322
tasks:
24-
- name: Copy registries.conf
23+
- name: Configure Azimuth staging pullthrough container image registry to avoid docker.io ratelimits
2524
copy:
26-
remote_src: true
27-
src: /etc/containers/registries.conf
28-
dest: /etc/containers/registries.conf.orig
29-
- name: Define local registry
30-
tags: podman
31-
blockinfile:
32-
path: /etc/containers/registries.conf
33-
block: |
25+
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
26+
content: |
27+
unqualified-search-registries = ['{{ podman_registry_address }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
28+
3429
[[registry]]
35-
prefix = "192.168.3.95:5000"
36-
location = "192.168.3.95:5000"
37-
insecure = true
38-
- name: Use local registry for unqualified searches
39-
tags: podman
40-
community.general.ini_file: # actually TOML but this is OK here
41-
path: /etc/containers/registries.conf
42-
section: null
43-
option: unqualified-search-registries
44-
value: ['192.168.3.95:5000', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
30+
prefix = "{{ podman_registry_address }}"
31+
location = "{{ podman_registry_address }}"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
arcus_podman_registry_address: registry.apps.128-232-222-81.sslip.io/v2/dockerhub-public
2+
podman_registry_address: "{{ arcus_podman_registry_address if ci_cloud == 'ARCUS' else '' }}"

0 commit comments

Comments
 (0)