Skip to content

Commit 51002b4

Browse files
mnasiadkayoctozepto
authored andcommitted
CI: Use Docker proxy for pulls
Change-Id: I0c4d5e1ea16c6677813a334b38b3a22ad811531d (cherry picked from commit a8c12de)
1 parent 817af15 commit 51002b4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/playbooks/pre.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,26 @@
7878
when: ansible_os_family == "RedHat"
7979
become: true
8080

81+
- name: Ensure /etc/docker exists
82+
become: true
83+
file:
84+
path: /etc/docker
85+
state: directory
86+
mode: 0755
87+
88+
- name: Configure registry-mirror in daemon.json
89+
become: true
90+
copy:
91+
dest: /etc/docker/daemon.json
92+
content: |
93+
{
94+
"registry-mirrors": [
95+
"http://{{ zuul_site_mirror_fqdn }}:8082/"
96+
]
97+
}
98+
99+
# NOTE(yoctozepto): We configure Docker before installing it because Debuntu starts services
100+
# during installation.
81101
- name: Install Docker
82102
package:
83103
name: docker-ce

0 commit comments

Comments
 (0)