Skip to content

Commit 213452b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "CI: Use Docker proxy for pulls" into stable/ussuri
2 parents 1720a5c + 51002b4 commit 213452b

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)