Do not perform build context switch when content trust is not enabled.#19099
Merged
tiborvass merged 1 commit intomoby:masterfrom Jan 6, 2016
Merged
Conversation
8a49035 to
4a66433
Compare
Member
|
SGTM |
Member
|
SGTM as a workaround for now |
api/client/build.go
Outdated
Contributor
There was a problem hiding this comment.
There is another way of enabling DCT, by providing --disable-content-trust=false. I'm pretty sure there is a helper method to decide if DCT is on somewhere.
Signed-off-by: David Calavera <david.calavera@gmail.com>
4a66433 to
18d15ba
Compare
Contributor
|
LGTM |
Member
|
got a failed test on experimental, not sure if it's related here, or just a hiccup 😄; |
Contributor
Author
|
@thaJeztah it looks like it was a temporary issue with the registry. It's all 💚 now. |
Contributor
|
LGTM |
1 similar comment
Contributor
|
LGTM |
tiborvass
added a commit
that referenced
this pull request
Jan 6, 2016
…bled Do not perform build context switch when content trust is not enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does not fix #15785 but it mitigates its impact for 1.10.
There is a great discussion going on on that issue about better ways to do the dockerfile context switch that we should consider.
Given that we're slightly time constrained, I think we should at least try to mitigate the issue as much as possible.
We don't need that context switch when TRUST is not enabled, therefore we should not do it.
Signed-off-by: David Calavera david.calavera@gmail.com