Esempio n. 1
0
 def config(self):
     try:
         compose_output_tuple = get_config_from_options('.', self.options)
         # NOTE: for compatibility with docker-compose > 1.13
         # services is always the second element
         services_list = compose_output_tuple[1]
     except conferrors.ConfigurationError as e:
         log.exit("Wrong compose configuration:\n{}", e)
     else:
         return services_list
Esempio n. 2
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
Esempio n. 3
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
Esempio n. 4
0
def project_config(path):
    """
    docker-compose config
    """
    return get_config_from_options(path, dict())