diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2023-02-21 15:13:55 +0100 |
|---|---|---|
| committer | Bartosz Bezak <bartosz@stackhpc.com> | 2023-02-28 14:38:10 +0000 |
| commit | 575a090af222a6e07520570690e63a9ca7af5434 (patch) | |
| tree | 3b183312961bdf30126bde9af5707a8387ef5fb8 /docker | |
| parent | 35088cf281da2c883b1444fa6cc76013ceba5eac (diff) | |
| download | kolla-575a090af222a6e07520570690e63a9ca7af5434.tar.gz kolla-575a090af222a6e07520570690e63a9ca7af5434.zip | |
toolbox: Increase galaxy timeout and retry download
Change-Id: I6e66aea5dc0af61fbc074b4c8ed3910435c98dbd
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/kolla-toolbox/Dockerfile.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index d38a1937f..b3d147458 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -87,7 +87,8 @@ RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \ && mkdir -p /etc/ansible /usr/share/ansible \ && echo 'localhost ansible_connection=local ansible_python_interpreter={{ virtualenv_path }}/bin/python' > /etc/ansible/hosts \ && sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }} \ - && ansible-galaxy collection install -p /usr/share/ansible/collections -r /var/lib/ansible/requirements.yml + && for i in {1..5}; do ansible-galaxy collection install --timeout 120 -p /usr/share/ansible/collections -r /var/lib/ansible/requirements.yml \ + && break || sleep 15; done ENV ANSIBLE_LIBRARY /usr/share/ansible:$ANSIBLE_LIBRARY |
