Skip to content

Add docker-compose create command. - #2547

Merged
aanand merged 1 commit into
docker:masterfrom
seguins:1125-docker-compose-create
Dec 21, 2015
Merged

aanand merged 1 commit into
docker:masterfrom
seguins:1125-docker-compose-create

Conversation

@seguins

@seguins seguins commented Dec 14, 2015

Copy link
Copy Markdown

Adds a new command for creating a service without starting it.

Closes #1125

@aanand

aanand commented Dec 16, 2015

Copy link
Copy Markdown

LGTM

Comment thread compose/project.py Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think this is right, there could be more than one container at some point.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Indeed, it will be removed and fixed by the call to service.execute_convergence_plan

@seguins
seguins force-pushed the 1125-docker-compose-create branch from c8d20db to 75c04a1 Compare December 16, 2015 22:49
@seguins

seguins commented Dec 16, 2015

Copy link
Copy Markdown
Author

@dnephin thanks for the review.
I updated the commit :

  • project.create uses now service.execute_convergence_plan
  • I removed two acceptance tests and add new integration tests

Comment thread compose/project.py Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just one more small thing, I think we want to avoid calling attach here (it's an unnecessary API call), so this should add detached=True as well

@dnephin

dnephin commented Dec 17, 2015

Copy link
Copy Markdown

Looks good, just one more small thing

Closes docker#1125

Signed-off-by: Stéphane Seguin <[email protected]>
@seguins
seguins force-pushed the 1125-docker-compose-create branch from 75c04a1 to 3c76d5a Compare December 18, 2015 07:54
@seguins

seguins commented Dec 18, 2015

Copy link
Copy Markdown
Author

Done

@dnephin dnephin added this to the 1.6.0 milestone Dec 18, 2015
@dnephin

dnephin commented Dec 18, 2015

Copy link
Copy Markdown

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

@seguins looks like this needs a rebase 😢

@thaJeztah

Copy link
Copy Markdown
Member

Oh, maybe not, it doesn't say "merge conflict", it's probably github being over restrictive (sorry for the noise 😄)

aanand added a commit that referenced this pull request Dec 21, 2015
@aanand
aanand merged commit a2d2915 into docker:master Dec 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants