Building kolla-ansible Image Takes a Long Time when github is Slow
Bug #1488744 reported by
Zhou Zheng Sheng
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Zhou Zheng Sheng |
Bug Description
When building kolla images, I noticed it spent much time on kolla-ansible, specifically on cloning ansible repository.
My Internet access is not very fast, and sometimes interfered by ISP firewall. I think there is no need to clone the whole ansible repository. It would be nice if we add '--depth 1' option to 'git clone' command, since we just need the code, not the commit history.
Changed in kolla: | |
importance: | Undecided → Medium |
milestone: | none → liberty-3 |
assignee: | nobody → Zhou Zheng Sheng (edwardbadboy) |
Changed in kolla: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/216948 /git.openstack. org/cgit/ stackforge/ kolla/commit/ ?id=32d48e6fb78 910a39472e46ca1 ff729dfe0e8530
Committed: https:/
Submitter: Jenkins
Branch: master
commit 32d48e6fb78910a 39472e46ca1ff72 9dfe0e8530
Author: Zhou Zheng Sheng <email address hidden>
Date: Mon Aug 24 13:11:11 2015 +0800
Speedup Git Cloning Ansible Repository
When building kolla-ansible image, it clones ansible source code from
github. Since we just need the source code but not the commit history,
there is no need to download all the commit log objects. This patch adds
"--depth 1" option to git clone command. This will speedup kolla-ansible
image building a lot, especially in countries with slow Internet access.
Change-Id: I834f83a1273504 15a5861a2f5b298 2df3d3e3f5a
Closes-Bug: #1488744