Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ThroughTarget function to builder #121

Conversation

TomSweeneyRedHat
Copy link
Contributor

Signed-off-by: TomSweeneyRedHat [email protected]

docker build has a --target option that builds the stages from
stage 0 through and including the target specified. The current
ByTarget() function returns only the specified stage. The new
ThroughTarget function is heavily based on ByTarget and will now
return the targeted stage plus the prior stages emulating the
docker build --target functionality.

Added tests for both ByTarget and ThroughTarget

Signed-off-by: TomSweeneyRedHat [email protected]

Signed-off-by: TomSweeneyRedHat <[email protected]>

docker build has a --target option that builds the stages from
stage 0 through and including the target specified.  The current
ByTarget() function returns only the specified stage.  The new
ThroughTarget function is heavily based on ByTarget and will now
return the targeted stage plus the prior stages emulating the
docker build --target functionality.

Added tests for both ByTarget and ThroughTarget

Signed-off-by: TomSweeneyRedHat <[email protected]>
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TomSweeneyRedHat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 5, 2019
@TomSweeneyRedHat
Copy link
Contributor Author

@vrothberg
Copy link
Member

LGTM 👍

@rhatdan
Copy link
Contributor

rhatdan commented Feb 5, 2019

LGTM

@umohnani8
Copy link

LGTM

@openshift-bot
Copy link

/retest

@TomSweeneyRedHat
Copy link
Contributor Author

@nalind can you PTAL and merge if it's hip? I've a WIP Buildah PR waiting this one getting merged.

@nalind
Copy link
Member

nalind commented Feb 12, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2019
@openshift-merge-robot openshift-merge-robot merged commit 3682349 into openshift:master Feb 12, 2019
@TomSweeneyRedHat TomSweeneyRedHat deleted the dev/tsweeney/thrutarget branch February 12, 2019 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants