Implement 'docker-compose push' and 'docker-compose bundle'

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-05-10 16:14:54 +01:00 committed by Daniel Nephin
parent 21f20cbc9b
commit 1ea9dda1d3
8 changed files with 296 additions and 20 deletions

View file

@ -35,6 +35,16 @@ def project_from_options(project_dir, options):
)
def get_config_from_options(base_dir, options):
environment = Environment.from_env_file(base_dir)
config_path = get_config_path_from_options(
base_dir, options, environment
)
return config.load(
config.find(base_dir, config_path, environment)
)
def get_config_path_from_options(base_dir, options, environment):
file_option = options.get('--file')
if file_option: