-
Notifications
You must be signed in to change notification settings - Fork 68
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
Handle COPY --from=${number} #195
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other then one question.
dockerclient/client.go
Outdated
@@ -163,6 +168,7 @@ func (e *ClientExecutor) WithName(name string) *ClientExecutor { | |||
|
|||
child := &copied | |||
e.Named[name] = child | |||
e.Named[fmt.Sprintf("%d", position)] = child |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use strconf.Itoa() it is supposed to be more efficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only that I forgot about that function. Changing it.
Handle COPY --from=${stage} where the referred-to stage is referred to by its order in the build, and add a couple of test Dockerfiles that test COPY --from=${stage}, where ${stage} is a number. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
c735af9
to
49da39a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nalind, rhatdan 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 |
Handle COPY --from=${stage} where the referred-to stage is referred to by its order in the build, and add a couple of test Dockerfiles that test COPY --from=${stage}, where ${stage} is a number. Conformance tests don't currently handle multi-stage builds, but we add a couple of samples for manual smoke testers.