Skip to content

Commit

Permalink
Mirror registry improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
noseka1 committed Mar 15, 2020
1 parent b09c8aa commit a73af7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inventory/group_vars/all/infra/mirror_registry.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mirror_registry:
credentials:
username: registry
password: password
container_image: docker.io/library/registry:2
container_image: docker.io/library/registry:2.7.1
# After the start, registry will be listening on 0.0.0.0:<listen_port>
# Using port 5001 to avoid conflict with haproxy that uses port 5000 already.
listen_port: 5001
Expand All @@ -27,7 +27,7 @@ mirror_registry:
mirror_repositories:
repo1:
mirror_from: quay.io/openshift-release-dev/ocp-release:4.3.0-x86_64
mirror_to: helper.mycluster.example.com:5001/ocp4/openshift4
mirror_to: helper.mycluster.example.com:5001/openshift-release-dev/ocp4
mirror_to_release: 4.3.0
# Which repo to use for the OpenShift installation?
openshift_install_repo: repo1
Expand Down
2 changes: 1 addition & 1 deletion roles/mirror_registry/tasks/mirror_sync_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
dest: '{{ helper.mirror_registry_dir }}/mirror_sync.{{ item.key }}.sh'
mode: '0755'

- name: Waiting since {{ lookup("pipe", "date +%r") }} for the sync of {{ item.value.mirror_from }} to complete
- name: Waiting since {{ lookup("pipe", "date +%r") }} for the sync of {{ item.value.mirror_from }} to {{ item.value.mirror_to }} to complete
command: '{{ helper.mirror_registry_dir }}/mirror_sync.{{ item.key }}.sh'
register: mirror_command

Expand Down

0 comments on commit a73af7d

Please sign in to comment.