Skip to content

load project from files when explicitly set by user#10062

Merged
glours merged 1 commit into
docker:v2from
ndeloof:9554
Dec 15, 2022
Merged

load project from files when explicitly set by user#10062
glours merged 1 commit into
docker:v2from
ndeloof:9554

Conversation

@ndeloof

@ndeloof ndeloof commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

As a user run docker compose --file foo.yaml --project-name bar ..., parse the provided compose file as source of truth for the compose model the command will execute upon. Project should only be built from actual resources when there's no explicit compose file being set and we only rely on a project name.

Related issue
fixes #9554

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@codecov

codecov Bot commented Dec 9, 2022

Copy link
Copy Markdown

Codecov Report

Base: 76.98% // Head: 76.98% // No change to project coverage 👍

Coverage data is based on head (8498486) compared to base (1b1f783).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2   #10062   +/-   ##
=======================================
  Coverage   76.98%   76.98%           
=======================================
  Files           2        2           
  Lines         252      252           
=======================================
  Hits          194      194           
  Misses         51       51           
  Partials        7        7           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ndeloof
ndeloof force-pushed the 9554 branch 4 times, most recently from 4c4e54a to 7267957 Compare December 15, 2022 11:15

@glours glours left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milas milas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely more predictable behavior-wise this way!

@glours
glours enabled auto-merge December 15, 2022 14:38
@glours
glours merged commit aa0720f into docker:v2 Dec 15, 2022
@ndeloof
ndeloof deleted the 9554 branch December 15, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker compose V2 stops all containers related to project

3 participants