-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
run: add support --no-build, --pull flags #12032
base: main
Are you sure you want to change the base?
Conversation
1f0f5aa
to
abfbd7c
Compare
95e5968
to
a675a1e
Compare
a675a1e
to
837e020
Compare
@@ -81,6 +82,12 @@ func (options runOptions) apply(project *types.Project) (*types.Project, error) | |||
} | |||
|
|||
target.Tty = !options.noTty | |||
if options.noBuild { |
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 configure build is no-build was requested?
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.
The idea here is that:
- If
--no-build
is passed, we do not want to build, so clear the existing build configuration from the service. Build.Pull
andBuild.Tags
may affect behavior outside of the actual build, so we selectively preserve those.
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.
@ndeloof Looping back here! Does this makes sense or do you think it should behave differently? Should I add some clarification in comments or docs...?
837e020
to
b1d0495
Compare
b1d0495
to
0694340
Compare
0694340
to
18ce4fc
Compare
18ce4fc
to
3d5a2b1
Compare
3d5a2b1
to
c012a59
Compare
c012a59
to
fed83d8
Compare
Allows setting build- and pull policies for `compose run` like for `docker run` and `compose up`. Signed-off-by: legobt <[email protected]>
fed83d8
to
22efc5a
Compare
Allows setting build- and pull policies for
docker-compose run
like fordocker run
anddocker-compose up
.