compose/compose
Daniel Nephin 1f7faadc77 Remove name from config schema.
Refactors config validation of a service to use a ServiceConfig data object.
Instead of passing around a bunch of related scalars, we can use the
ServiceConfig object as a parameter to most of the service validation functions.

This allows for a fix to the config schema, where the name is a field in the
schema, but not actually in the configuration. My passing the name around as
part of the ServiceConfig object, we don't need to add it to the config options.
Fixes #2299

validate_against_service_schema() is moved from a conditional branch in
ServiceExtendsResolver() to happen as one of the last steps after all
configuration is merged. This schema only contains constraints which only need
to be true at the very end of merging.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 11:00:11 -05:00
..
cli Validate additional files before merging them. 2015-11-11 10:56:15 -05:00
config Remove name from config schema. 2015-11-11 11:00:11 -05:00
__init__.py Cherry-pick release notes froim 1.5.0 2015-11-05 10:25:46 -05:00
const.py Remove duplicate and re-order alphabetically 2015-10-01 16:06:57 +01:00
container.py Logs are available for all log drivers except for none. 2015-10-29 11:28:17 -04:00
legacy.py Remove flake8 ignores and wrap the longest lines to 140 char. 2015-08-26 12:53:11 -04:00
progress_stream.py Fix split buffer with inconsistently delimited json objects. 2015-10-06 10:43:07 -04:00
project.py Merge pull request #2341 from dnephin/dont_create_default_network_sometimes 2015-11-11 10:48:08 -05:00
service.py Added ulimits functionality to docker compose 2015-11-10 14:07:04 -05:00
state.py Implement smart recreate behind an experimental CLI flag 2015-05-18 18:39:18 +01:00
utils.py Merge pull request #2326 from dnephin/unicode_decode_error 2015-11-10 12:29:52 -05:00