aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/centos/binary/kolla-ansible/Dockerfile2
-rw-r--r--docker_templates/kolla-ansible/Dockerfile.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/centos/binary/kolla-ansible/Dockerfile b/docker/centos/binary/kolla-ansible/Dockerfile
index 9368eb786..dab386109 100644
--- a/docker/centos/binary/kolla-ansible/Dockerfile
+++ b/docker/centos/binary/kolla-ansible/Dockerfile
@@ -16,7 +16,7 @@ RUN yum -y install \
RUN pip install -U pip wheel \
&& pip install python-openstackclient shade
-RUN git clone https://github.com/ansible/ansible.git \
+RUN git clone --depth 1 https://github.com/ansible/ansible.git \
&& cd ansible \
&& git submodule update --init --recursive \
&& pip install .
diff --git a/docker_templates/kolla-ansible/Dockerfile.j2 b/docker_templates/kolla-ansible/Dockerfile.j2
index 547694719..e95a90aa7 100644
--- a/docker_templates/kolla-ansible/Dockerfile.j2
+++ b/docker_templates/kolla-ansible/Dockerfile.j2
@@ -25,7 +25,7 @@ RUN apt-get install -y --no-install-recommends git
RUN pip install shade
-RUN git clone https://github.com/ansible/ansible.git \
+RUN git clone --depth 1 https://github.com/ansible/ansible.git \
&& cd ansible \
&& git submodule update --init --recursive \
&& pip install --install-option="--install-scripts=/usr/bin" .