示例#1
0
文件: compose.py 项目: fossabot/do
 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
示例#2
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
示例#3
0
def project_config(path):
    """
    docker-compose config
    """
    norm_path = normpath(path)
    return get_config_from_options(norm_path, dict())
示例#4
0
def project_config(path):
    """
    docker-compose config
    """
    return get_config_from_options(path, dict())