Fix regression in docker-compose up

When an upstream dependency (e.g. a db) has a container but a downstream
service (e.g. a web app) doesn't, a web container is not created on
`docker-compose up`.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-05-21 20:03:02 +01:00
commit 4795fd874f
3 changed files with 17 additions and 6 deletions

View file

@ -248,10 +248,13 @@ class Project(object):
if updated_dependencies:
log.debug(
'%s has not changed but its dependencies (%s) have, so recreating',
'%s has upstream changes (%s)',
service.name, ", ".join(updated_dependencies),
)
plan = service.recreate_plan()
plan = service.convergence_plan(
allow_recreate=allow_recreate,
smart_recreate=False,
)
else:
plan = service.convergence_plan(
allow_recreate=allow_recreate,