Exemplo 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
Exemplo n.º 2
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
Exemplo n.º 3
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
Exemplo n.º 4
0
def project_config(path):
    """
    docker-compose config
    """
    return get_config_from_options(path, dict())