Skip to content

Introduce profiles for services#110

Merged
ndeloof merged 1 commit into
compose-spec:masterfrom
acran:profiles
Nov 10, 2020
Merged

Introduce profiles for services#110
ndeloof merged 1 commit into
compose-spec:masterfrom
acran:profiles

Conversation

@acran

@acran acran commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Introduce profiles in compose schema and specification.
This is based on the PR #98 by @ndeloof and the discussion in #97. It diverges from #98 by:

Automatically enabling the profiles of explicitly targeted service is the minimal amount of "magic" required here to allow for a sane UX when targeting services with dependencies in non-default profiles. But at the same time it still forces the users to specify a valid compose model where all dependencies share a common profile.

Which issue(s) this PR fixes:
Fixes #97
see also #98
Fixes #87

@acran
acran marked this pull request as draft October 21, 2020 20:22
@acran
acran marked this pull request as ready for review October 21, 2020 20:24
@acran acran mentioned this pull request Oct 21, 2020
Comment thread spec.md

@EricHripko EricHripko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like an awesome start 🙌 I've left a few comments inline 💬

Comment thread spec.md
Comment thread spec.md Outdated
Comment thread spec.md Outdated
Comment thread spec.md
Comment thread spec.md Outdated
Comment thread spec.md Outdated
Comment thread spec.md
@acran

acran commented Oct 23, 2020

Copy link
Copy Markdown
Contributor Author

I updated the PR with @EricHripko comments and added/clarified some examples.
But it already feels a bit bloated with that many examples and like over-explaining every single case in detail?

@acran

acran commented Oct 30, 2020

Copy link
Copy Markdown
Contributor Author

So, any further comments on the updated PR, or can this be moved forward?

@EricHripko EricHripko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

2 minor wording suggestions - otherwise this looks good to go 🙌

Comment thread spec.md Outdated
Comment thread spec.md
Comment thread spec.md Outdated
implements compose-spec#97
also solves compose-spec#87

Signed-off-by: Roman Anasal <[email protected]>
@acran

acran commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

Thanks @EricHripko
I now fixed the two typos and also proof-read again, should be fine now 🎉

@EricHripko EricHripko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks great ✅ Thank you for picking up and finishing the initial draft of this proposal 👍

@ndeloof ndeloof added the Approved 👍 Approved by community meeting label Nov 5, 2020
@ndeloof
ndeloof merged commit 974e81d into compose-spec:master Nov 10, 2020
acran added a commit to acran/compose that referenced this pull request Nov 15, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539
acran added a commit to acran/compose that referenced this pull request Nov 15, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
acran added a commit to acran/compose that referenced this pull request Nov 16, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
acran added a commit to acran/compose that referenced this pull request Nov 30, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
acran added a commit to acran/compose that referenced this pull request Dec 1, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
acran added a commit to acran/compose that referenced this pull request Dec 1, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
acran added a commit to acran/compose that referenced this pull request Dec 2, 2020
Implement profiles as introduced in compose-spec/compose-spec#110
fixes docker#7919
closes docker#1896
closes docker#6742
closes docker#7539

Signed-off-by: Roman Anasal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved 👍 Approved by community meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: profiles Add option to specify services to be started by default

3 participants