Fix env_file and environment when used with extends.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
2f20dfe508
commit
1e8f76767f
3 changed files with 60 additions and 13 deletions
|
|
@ -46,7 +46,8 @@ class DockerClientTestCase(unittest.TestCase):
|
|||
|
||||
service_config = ServiceConfig('.', None, name, kwargs)
|
||||
options = process_service(service_config)
|
||||
options['environment'] = resolve_environment('.', kwargs)
|
||||
options['environment'] = resolve_environment(
|
||||
service_config._replace(config=options))
|
||||
labels = options.setdefault('labels', {})
|
||||
labels['com.docker.compose.test-name'] = self.id()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue