Allow specifying recursion depth when building images

Registered by Qiu Yu

Kolla image build tool go through the image dependency chain, to make sure every image in the path are built in order

However, either in dev or real production case, sometimes there's a small fix needed for the final image (e.g swift-object-replicator), but don't want touching the entire dependency chain (s.g swift-object-replicator -> swift-object-base -> swift-base -> openstack-base).

Because overtime, parent images can change due to upstream package update, source update etc. For the purpose of small change in children image (swift-object-replicator), it will cost too much time to build and potentially can introduce breaking changes).

The idea is to allow user specify depth level (similar to git clone --depth), so that once specified, build tool never go deeper beyond this level.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Qiu Yu
Direction:
Needs approval
Assignee:
Qiu Yu
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Mark Goddard
Completed by
Mark Goddard

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/image-build-depth,n,z

Addressed by: https://review.openstack.org/271045
    Add --depth option for build tool

Addressed by: https://review.openstack.org/426322
    Allow the use of previously built parent images

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.